Render
@param array $breadcrumb
@throws \Nette\Application\UI\InvalidLinkException
490038
public function render(array $breadcrumb) : void
    {
        $admin = ['link' => ':Base:Admin:Dashboard', 'title' => 'Admin'];

        if ($this->presenter->isLinkCurrent(':Base:Admin:Dashboard'))
        {
            $admin = ['title' => 'Admin'];
        }

        array_unshift($breadcrumb, $admin);

        $this->template->breadcrumb = $breadcrumb;

        $this->template->setFile(__DIR__ . '/templates/breadcrumb.latte');
        $this->template->render();
    }
280667
public function renderItem( $item ) {

        $label      = null;
        $url        = isset( $item[ 'url' ] ) ? $item[ 'url' ] : null;
		$urlOptions	= isset( $item[ 'urlOptions' ] ) ? $item[ 'urlOptions' ] : null;
        $options    = [];

		// Check whether label is required
		if( $this->label ) {

	        if( !isset( $item[ 'label' ] ) ) {

	            throw new InvalidConfigException( "The 'label' option is required." );
	        }

	        $label = $item[ 'label' ];
		}

		// Check whether icon is required
		if( $this->icon ) {

	        if( !isset( $item[ 'icon' ] ) ) {

	            throw new InvalidConfigException( "The 'icon' option is required." );
	        }

			$icon	= Html::tag( 'i', null, [ 'class' =>  $item[ 'icon' ] ] );
			$label	= "<span class='wrap-icon'>$icon</span><span class='wrap-text'>$label</span>";
		}

		if( isset( $item[ 'options' ] ) ) {

			$options = $item[ 'options' ];
		}

		if( isset( $url ) ) {

			$link = Html::a( $label, $url, $urlOptions );
		}

		// Custom Links
		if( isset( $options[ 'action' ] ) ) {

			$urlOptions[ 'link' ] = $url;

			$link = Html::tag( 'span', $label, $urlOptions );
		}

		// Custom HTML
		if( isset( $options[ 'html' ] ) ) {

			$link = $options[ 'html' ];

			unset( $options[ 'html' ] );
		}

        return Html::tag( 'li', $link, $options );
    }
253584
public function breadcrumbs(array $args = [])
    {
        global $post;

        $defaults = [
            'containerEl'    => 'div',
            'containerId'    => 'breadcrumbs-container',
            'containerClass' => 'breadcrumbs-container container',
            'listEl'         => 'ol',
            'listId'         => 'breadcrumb',
            'listClass'      => 'breadcrumb',
            'crumbEl'        => 'li',
            'activeEl'       => null,
            'activeClass'    => 'active'
        ];

        $args = wp_parse_args($args, $defaults);
        extract($args, EXTR_SKIP);

        if ($activeEl) {
            $openActive = sprintf('<%s><%s class="%s">', $crumbEl, $activeEl, $activeClass);
            $closeActive = sprintf('</%s></%s>', $activeEl, $crumbEl);
        } else {
            $openActive = sprintf('<%s class="%s">', $crumbEl, $activeClass);
            $closeActive = sprintf('</%s>', $crumbEl);
        }

        $output = [];
        $output[] = sprintf('<%s id="%s" class="%s">', $containerEl, $containerId, $containerClass);
        $output[] = PHP_EOL.str_repeat('    ', 2);
        $output[] = sprintf('<%s id="%s" class="%s">', $listEl, $listId, $listClass);
        $output[] = sprintf(
            '<%s><a href="%s">%s</a></%s>',
            $crumbEl,
            esc_url(home_url('/')),
            __('Home', 'novusopress'),
            $crumbEl
        );

        if (is_home() && get_option('page_for_posts')) {
            $blogPageId = get_option('page_for_posts');
            $blogPage = get_page($blogPageId);
            $output[] = $openActive;
            $output[] = $blogPage->post_title;
            $output[] = $closeActive;
        } elseif (is_category()) {
            if (get_option('page_for_posts')) {
                $blogPageId = get_option('page_for_posts');
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    get_permalink($blogPageId),
                    get_the_title($blogPageId),
                    $crumbEl
                );
            }

            $cat = get_category(get_query_var('cat'), false);

            if ($cat->parent != 0) {
                $parents = get_category_parents($cat->parent, true, sprintf('</%s><%s>', $crumbEl, $crumbEl));
                $parents = preg_replace('# title=".*"#', '', $parents);
                $output[] = mb_substr(sprintf('<%s>%s', $crumbEl, $parents), 0, -4);
            }

            $output[] = $openActive;
            $output[] = single_cat_title('', false);
            $output[] = $closeActive;
        } elseif (is_search()) {
            $output[] = $openActive;
            $output[] = get_search_query();
            $output[] = $closeActive;
        } elseif (is_day()) {
            if (get_option('page_for_posts')) {
                $blogPageId = get_option('page_for_posts');
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    get_permalink($blogPageId),
                    get_the_title($blogPageId),
                    $crumbEl
                );
            }

            $output[] = sprintf(
                '<%s><a href="%s">%s</a></%s>',
                $crumbEl,
                get_year_link(get_the_time('Y')),
                get_the_time('Y'),
                $crumbEl
            );

            $output[] = sprintf(
                '<%s><a href="%s">%s</a></%s>',
                $crumbEl,
                get_month_link(get_the_time('Y'), get_the_time('m')),
                get_the_time('F'),
                $crumbEl
            );

            $output[] = $openActive;
            $output[] = get_the_time('d');
            $output[] = $closeActive;
        } elseif (is_month()) {
            if (get_option('page_for_posts')) {
                $blogPageId = get_option('page_for_posts');
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    get_permalink($blogPageId),
                    get_the_title($blogPageId),
                    $crumbEl
                );
            }

            $output[] = sprintf(
                '<%s><a href="%s">%s</a></%s>',
                $crumbEl,
                get_year_link(get_the_time('Y')),
                get_the_time('Y'),
                $crumbEl
            );

            $output[] = $openActive;
            $output[] = get_the_time('F');
            $output[] = $closeActive;
        } elseif (is_year()) {
            if (get_option('page_for_posts')) {
                $blogPageId = get_option('page_for_posts');
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    get_permalink($blogPageId),
                    get_the_title($blogPageId),
                    $crumbEl
                );
            }

            $output[] = $openActive;
            $output[] = get_the_time('Y');
            $output[] = $closeActive;
        } elseif (is_single() && !is_attachment()) {
            if ('post' !== get_post_type()) {
                $postType = get_post_type_object(get_post_type());
                $typeSlug = $postType->rewrite;
                $typeLink = trailingslashit(esc_url(home_url('/')).$typeSlug['slug']);
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    $typeLink,
                    $postType->labels->singular_name,
                    $crumbEl
                );
            } else {
                if (get_option('page_for_posts')) {
                    $blogPageId = get_option('page_for_posts');
                    $output[] = sprintf(
                        '<%s><a href="%s">%s</a></%s>',
                        $crumbEl,
                        get_permalink($blogPageId),
                        get_the_title($blogPageId),
                        $crumbEl
                    );
                }

                $cat = get_the_category();

                if (isset($cat[0])) {
                    $cat = $cat[0];
                    $parents = get_category_parents($cat, true, sprintf('</%s><%s>', $crumbEl, $crumbEl));
                    $parents = preg_replace('# title=".*"#', '', $parents);
                    $output[] = mb_substr(sprintf('<%s>%s', $crumbEl, $parents), 0, -4);
                }
            }

            $output[] = $openActive;
            $output[] = get_the_title();
            $output[] = $closeActive;
        } elseif (!is_single() && !is_page() && get_post_type() != 'post' && !is_404()) {
            $postType = get_post_type_object(get_post_type());
            $output[] = $openActive;
            $output[] = $postType->labels->singular_name;
            $output[] = $closeActive;
        } elseif (is_attachment()) {
            if (get_option('page_for_posts')) {
                $blogPageId = get_option('page_for_posts');
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    get_permalink($blogPageId),
                    get_the_title($blogPageId),
                    $crumbEl
                );
            }

            $parent = get_post($post->post_parent);
            $cat = get_the_category($parent->ID);

            if (isset($cat[0])) {
                $cat = $cat[0];
                $parents = get_category_parents($cat, true, sprintf('</%s><%s>', $crumbEl, $crumbEl));
                $parents = preg_replace('# title=".*"#', '', $parents);
                $output[] = mb_substr(sprintf('<%s>%s', $crumbEl, $parents), 0, -4);
            }

            $output[] = sprintf(
                '<%s><a href="%s">%s</a></%s>',
                $crumbEl,
                get_permalink($parent),
                $parent->post_title,
                $crumbEl
            );

            $output[] = $openActive;
            $output[] = get_the_title();
            $output[] = $closeActive;
        } elseif (is_page() && !$post->post_parent) {
            $output[] = $openActive;
            $output[] = get_the_title();
            $output[] = $closeActive;
        } elseif (is_page() && $post->post_parent) {
            $parentId = $post->post_parent;
            $frontId = get_option('page_on_front');

            if ($parentId != $frontId) {
                $breadcrumbs = [];

                while ($parentId) {
                    $page = get_page($parentId);

                    if ($parentId != $frontId) {
                        $breadcrumbs[] = sprintf(
                            '<%s><a href="%s">%s</a></%s>',
                            $crumbEl,
                            get_permalink($page->ID),
                            get_the_title($page->ID),
                            $crumbEl
                        );
                    }

                    $parentId = $page->post_parent;
                }

                for ($i = count($breadcrumbs) - 1; $i >= 0; $i--) {
                    $output[] = $breadcrumbs[$i];
                }
            }

            $output[] = $openActive;
            $output[] = get_the_title();
            $output[] = $closeActive;
        } elseif (is_tag()) {
            if (get_option('page_for_posts')) {
                $blogPageId = get_option('page_for_posts');
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    get_permalink($blogPageId),
                    get_the_title($blogPageId),
                    $crumbEl
                );
            }

            $output[] = $openActive;
            $output[] = single_tag_title('', false);
            $output[] = $closeActive;
        } elseif (is_author()) {
            global $author;

            if (get_option('page_for_posts')) {
                $blogPageId = get_option('page_for_posts');
                $output[] = sprintf(
                    '<%s><a href="%s">%s</a></%s>',
                    $crumbEl,
                    get_permalink($blogPageId),
                    get_the_title($blogPageId),
                    $crumbEl
                );
            }

            $userdata = get_userdata($author);
            $output[] = $openActive;
            $output[] = $userdata->display_name;
            $output[] = $closeActive;
        } elseif (is_404()) {
            $output[] = $openActive;
            $output[] = __('Error 404', 'novusopress');
            $output[] = $closeActive;
        } elseif (has_post_format() && !is_singular()) {
            $output[] = $openActive;
            $output[] = get_post_format_string(get_post_format());
            $output[] = $closeActive;
        }

        $output[] = sprintf('</%s>', $listEl);
        $output[] = PHP_EOL.'    ';
        $output[] = sprintf('</%s><!-- #%s -->', $containerEl, $containerId);

        $output = implode('', $output);

        return apply_filters('novusopress_view_breadcrumbs_output', $output);
    }
972120
function addBreadCrumb($route_name, $params = [], $replacements = []) {
        $url        = route($route_name, $params, false);
        $title                   = \LaraPage::pageTitle($route_name, $replacements);
        $h1                      = \LaraPage::pageH1($route_name, $replacements);
        $h1_ext                  = \LaraPage::pageH1Ext($route_name, $replacements);
        $description             = \LaraPage::pageH1Ext($route_name, $replacements);
        $icon                    = Route::routeIcons($route_name);
        $this->breadcrumbs[$url] = compact('title', 'icon');
        $this->setUrl($url);
        $_title = [];
        foreach($this->breadcrumbs as $url => $breadcrumb) {
            $_title[] = Arr::get($breadcrumb, 'title');
        }
        $_title = array_reverse($_title);
        $this->setTitle(implode(', ', $_title))->setDescription($description);

        return $this;
    }
1324905
public function renderBreadcrumb($class = 'breadcrumb', $itemClass = 'breadcrumb-item', $list = true) {
        $breadcrumb = new Breadcrumb();
        $breadcrumb->navArray = $this->navigation;
        return $breadcrumb->setBreacrumbLinks($this->currentArray)->createBreadcrumb($class, $itemClass, $list);
    }
1159447
function breadcrumb() {
        const $breadcrumb = $(`.${namespace}-breadcrumbs`).empty();

        chain().each(function () {
            const $crumb = $(this);
            $(`<span class="${namespace}-breadcrumb">`).text($crumb.text().trim()).click(function () {
                $crumb.click();
            }).appendTo($breadcrumb);
        });
    }
861540
public function render(string $view, Collection $breadcrumbs): HtmlString
    {
        return new HtmlString(
            $this->makeView($view, $breadcrumbs)->render()
        );
    }
356327
public function renderPhp(): void
	{
		$this->addBreadcrumbLink('dockbar.info.php');
		$this->template->php = $this->app->info->phpInfo;
	}
1199458
public static function breadcrumbsAdmin(array $links)
    {
        foreach ($links as $name => $url) {
            if ($name != '' && $url != '') {
                $tmp[] = '<span><a href="' . $url . '">'.Utils::escape($name).'</a></span>';
            } else {
                $tmp[] = '<span>'.__('Deleted').'</span>';
                return implode(' » ', $tmp);
            }
        }
        return implode(' » ', $tmp);
    }
867084
protected function renderBreadcrumb(EnvironmentInterface $environment)
    {
        $event = new GetBreadcrumbEvent($environment);
        $environment->getEventDispatcher()->dispatch($event::NAME, $event);
        $elements = $event->getElements();
        if (empty($elements)) {
            return null;
        }

        $GLOBALS['TL_CSS']['cca.dc-general.breadcrumb'] = 'system/modules/dc-general/html/css/generalBreadcrumb.css';

        $template = new ContaoBackendViewTemplate('dcbe_general_breadcrumb');
        $template->set('elements', $elements);

        return $template->parse();
    }
109494
public function run()
    {
        // todo: consider adding control property for displaying breadcrumbs even when empty.
        if (!empty($this->links)) {
            $links = array();
            if ($this->homeLabel !== false) {
                $label = $this->homeLabel !== null ? $this->homeLabel : TbHtml::icon('home');
                $links[$label] = $this->homeUrl !== null ? $this->homeUrl : Yii::app()->homeUrl;
            }
            foreach ($this->links as $label => $url) {
                if (is_string($label)) {
                    if ($this->encodeLabel) {
                        $label = CHtml::encode($label);
                    }
                    $links[$label] = $url;
                } else {
                    $links[] = $this->encodeLabel ? CHtml::encode($url) : $url;
                }
            }
            echo TbHtml::breadcrumbs($links, $this->htmlOptions);
        }
    }
1256734
public function setBreadcrumb(array $breadcrumb)
    {
        $key = '_breadcrumbs';

        if (!isset($this->data[$key])) {
            $this->data[$key] = array();
        }

        $this->data[$key][] = $breadcrumb;
    }
276268
public function breadcrumbs(array $links) {

        $out = '<div class="breadcrumbs">' . "\n" . '<ol>' . "\n";
        foreach ($links as $url => $label) {
            $out .= "\t<li>{$this->view->htmlLink($url, $label)}</li>\n";
        }
        $out .= "</ol>\n</div>";
        return $out;
    }
1205527
public function render($context = [])
    {
        if ($this->getElement()->hasAttribute('value')) {
            $this->getElement()->getAttributes()->remove('value');
        }
        return parent::render($context);
    }
459864
protected function appendBreadcrumb($name, $label, $route = null, array $parameters = [])
    {
        $this->container->get('ekyna_admin.menu.builder')->breadcrumbAppend($name, $label, $route, $parameters);
    }
60841
public static function breadcrumbs($links, $htmlOptions = array())
    {
        $divider = TbArray::popValue('divider', $htmlOptions, '/');
        self::addCssClass('breadcrumb', $htmlOptions);
        $output = self::openTag('ul', $htmlOptions);
        foreach ($links as $label => $url) {
            if (is_string($label)) {
                $output .= self::openTag('li');
                $output .= self::link($label, $url);
                $output .= self::tag('span', array('class' => 'divider'), $divider);
                $output .= '</li>';
            } else {
                $output .= self::tag('li', array('class' => 'active'), $url);
            }
        }
        $output .= '</ul>';
        return $output;
    }
471807
protected function makeView(string $view, Collection $breadcrumbs): View
    {
        return $this->factory->make($view, compact('breadcrumbs'));
    }