Outputs the html for the breadcrumb
@return void
188397
public static function outputBreadcrumbs()
    {
        global $post;

        if (!is_a($post, 'WP_Post')) {
            return;
        }

        $title = get_the_title();
        $post_type = get_post_type_object($post->post_type);
        $output = array();

        echo '<ol class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">';

        if (!is_front_page()) {
            $int = 1;
            $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                            <a itemprop="item" href="' . get_home_url() . '" title="' . __('Home') . '">
                            <span itemprop="name">' . __('Home') . '</span><meta itemprop="position" content="' . $int++ . '"></a>
                        </li>';

            if (is_single() && $post_type->has_archive) {
                $cpt_archive_link = (is_string($post_type->has_archive)) ? get_permalink(get_page_by_path($post_type->has_archive)) : get_post_type_archive_link($post_type->name);

                $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                <a itemprop="item" href="' . $cpt_archive_link . '" title="' .  $post_type->label . '">
                                <span itemprop="name">' .  $post_type->label . '</span><meta itemprop="position" content="' . $int++ . '"></a>
                            </li>';
            }

            if (is_page() || (is_single() && $post_type->hierarchical == true)) {
                if ($post->post_parent) {
                    $anc = array_reverse(get_post_ancestors($post->ID));
                    $title = get_the_title();

                    foreach ($anc as $ancestor) {
                        if (get_post_status($ancestor) != 'private') {
                            $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                            <a itemprop="item" href="' . get_permalink($ancestor) . '" title="' . get_the_title($ancestor) . '">
                                                <span itemprop="name">' . get_the_title($ancestor) . '</span>
                                                <meta itemprop="position" content="' . $int++ . '" />
                                            </a>
                                       </li>';
                        }
                    }

                    $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                    <span itemprop="name" class="breadcrumbs-current" title="' . $title . '">' . $title . '</span>
                                    <meta itemprop="position" content="' . ($int++) . '" />
                                </li>';
                } else {
                    $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                    <span itemprop="name" class="breadcrumbs-current">' . get_the_title() . '</span>
                                    <meta itemprop="position" content="1" />
                                </li>';
                }
            } else {
                if (is_home()) {
                    $title = single_post_title("", false);
                } elseif (is_tax()) {
                    $title = single_cat_title(null, false);
                } elseif (is_category() && $title = get_the_category()) {
                    $title = $title[0]->name;
                } elseif (is_archive()) {
                    $title = post_type_archive_title(null, false);
                } else {
                    $title = get_the_title();
                }
                $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                <span itemprop="name">' . $title . '</span><meta itemprop="position" content="' . $int++ . '" />
                            </li>';
            }
        }

        $output = apply_filters('Municipio/Breadcrumbs/Items', $output, get_queried_object());

        echo implode("\n", $output);
        echo '</ol>';
    }
170671
public function render()
    {
        // Run only in case there are breadcrumbs
        if ($this->breadcrumbBag->has()) {
            $ulClass = $this->getOption('ulClass', 'breadcrumb');
            return $this->renderList($ulClass, $this->createBreadcrumbItems());
        }
    }
148994
protected function renderCss()
    {
        $html = "";

        foreach( $this->css as $item )
        {
            $html .= sprintf( MPageController::CSS_TEMPLATE, $item["rel"], $item["href"], $item["media"] ) . "\n";
        }

        $domQuery = $this->qp->find( "head" );
        if( $domQuery->count() <= 0 )
        {
            trigger_error( 'head tag not found in page', E_USER_WARNING );
        }
        else
        {
            $domQuery->append( $html );
        }
    }
1040730
public function render()
    {
        $items = [
            'header'      => $this->header,
            'description' => $this->description,
            'breadcrumb'  => $this->breadcrumb,
            'content'     => $this->build(),
        ];

        return view('merchant::content', $items)->render();
    }
592036
protected function outputOpeningTag()
    {
        echo '<', htmlspecialchars($this->_tag);
        foreach ($this->_attributes as $name => $value) {
            echo ' ', htmlspecialchars($name), '="', htmlspecialchars($value), '"';
        }
        echo '>';
        if ($this->_tag == 'html' || $this->_tag == 'head' || $this->_tag == 'body') {
            echo "\n";
        }
    }
1117833
protected function output()
    {
        $listItems = '';

        foreach ($this->lines as $li) {
            $icon = $this->buildIcon($li[0]);

            $listItems .= sprintf(self::LI_HTML, $icon, $li[1]);
        }

        return sprintf(self::UL_HTML, $listItems);
    }
1109168
public function showAction()
    {
        $this->setPageTitle(sprintf($this->_('Show %s'), $this->getTopic()));

        $model    = $this->getModel();
        // NEAR FUTURE:
        // $this->addSnippet('ModelVerticalTableSnippet', 'model', $model, 'class', 'displayer');
        $repeater = $model->loadRepeatable();
        $table    = $this->getShowTable();
        $table->setOnEmpty(sprintf($this->_('Unknown %s.'), $this->getTopic(1)));
        $table->setRepeater($repeater);
        $table->tfrow($this->createMenuLinks($this->menuShowIncludeLevel), array('class' => 'centerAlign'));

        if ($menuItem = $this->findAllowedMenuItem('edit')) {
            $table->tbody()->onclick = array('location.href=\'', $menuItem->toHRefAttribute($this->getRequest()), '\';');
        }

        $tableContainer = \MUtil_Html::create('div', array('class' => 'table-container'), $table);
        $this->html[] = $tableContainer;
    }
689608
public function createBreadcrumb()
    {
        if (null === $this->breadcrumb) {
            $this->createBreadcrumbRoot();

            // Retrieve the current page.
            $currentPage = $this->pageHelper->getCurrent();

            // If not found look for a parent
            if (null === $currentPage && null !== $request = $this->pageHelper->getRequest()) {
                // TODO create a route finder ? (same in AdminBundle ResourceHelper)
                $routeName = $request->attributes->get('_route');
                $i18nRouterClass = 'JMS\I18nRoutingBundle\Router\I18nRouterInterface';
                if (interface_exists($i18nRouterClass) && $this->router instanceof $i18nRouterClass) {
                    $route = $this->router->getOriginalRouteCollection()->get($routeName);
                } else {
                    $route = $this->router->getRouteCollection()->get($routeName);
                }
                if (null !== $route) {
                    $cmsOptions = $route->getOption('_cms');
                    if (null !== $cmsOptions
                        && array_key_exists('parent', $cmsOptions)
                        && 0 < strlen($cmsOptions['parent'])
                    ) {
                        $currentPage = $this->pageHelper->findByRoute($cmsOptions['parent']);
                    }
                }
            }

            // If found, build the breadcrumb
            if (null !== $currentPage) {
                $repository = $this->pageHelper->getPageRepository();
                $pages = $repository->findParentsForBreadcrumb($currentPage);

                // Fill the menu
                foreach ($pages as $page) {
                    if ($page['dynamicPath']) {
                        $params = ['uri' => null];
                    } else {
                        $params = ['route' => $page['route']];
                    }
                    $this->breadcrumb
                        ->addChild('page-' . $page['id'], $params)
                        ->setLabel($page['breadcrumb']);
                    $this->tagManager->addTags(sprintf('%s[id:%s]', $repository->getCachePrefix(), $page['id']));
                }
            }
        }

        return $this->breadcrumb;
    }
441413
public function getBreadcrumbsTemplate()
    {
        if ($template = $this->owner->config()->breadcrumbs_template) {
            return $template;
        }
        
        return $this->owner->config()->default_breadcrumbs_template;
    }
29373
public function Breadcrumbs()
    {
        $basePath = str_replace(Director::protocolAndHost(), '', Director::absoluteBaseURL());
        $relPath = parse_url(
            substr($_SERVER['REQUEST_URI'], strlen($basePath), strlen($_SERVER['REQUEST_URI'])),
            PHP_URL_PATH
        );
        $parts = explode('/', $relPath);
        $base = Director::absoluteBaseURL();
        $pathPart = "";
        $pathLinks = array();
        foreach ($parts as $part) {
            if ($part != '') {
                $pathPart .= "$part/";
                $pathLinks[] = "<a href=\"$base$pathPart\">$part</a>";
            }
        }
        return implode('&nbsp;&rarr;&nbsp;', $pathLinks);
    }
312696
public function render()
    {
        if (empty($this->breadcrumbs)) {
            return '';
        }

        $cssClasses = implode(' ', $this->breadcrumbsCssClasses);

        return '<'. $this->listElement . ' itemscope itemtype="http://schema.org/BreadcrumbList"'
                .' class="' . $cssClasses .'">'
                . $this->renderCrumbs()
                . '</'. $this->listElement .'>';
    }
567554
public function render()
    {
        $output[] = $this->open();

        if ($this->image instanceof Element) {
            $this->image->attributes->addAttributeClass(['mr-3']);

            if ($this->alignment === 'TOP') {
                $this->image->attributes->addAttributeClass(['align-self-start']);
            } elseif ($this->alignment === 'MIDDLE') {
                $this->image->attributes->addAttributeClass(['align-self-center']);
            } elseif ($this->alignment === 'BOTTOM') {
                $this->image->attributes->addAttributeClass(['align-self-end']);
            }

            $output[] = $this->image;
        }

        if ($this->paragraph instanceof Element) {
            $this->body->childNodes->prepend($this->paragraph);
        }

        if ($this->hasChildNodes()) {
            foreach ($this->childNodes as $childNode) {
                $this->body->childNodes->push($childNode);
            }
        }

        if ($this->heading instanceof Element) {
            $this->heading->tagName = 'h4';
            $this->heading->attributes->addAttributeClass(['mt-0']);
            $this->body->childNodes->prepend($this->heading);
        }

        $output[] = $this->body;

        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
973285
public function indexAction()
    {
        $this->_initAction()
            ->_addBreadcrumb($this->__('List View'), $this->__('List View'))
            ->_title($this->__('List View'))
            ->renderLayout();
    }
1265824
public function UpdatePageNaviBreadCrumb()
    {
        $sEditLanguage = $this->oTableConf->GetLanguage();
        $breadcrumbs = self::GetNavigationBreadCrumbs($this->sId, $sEditLanguage);
        $this->SaveField('url_path', $breadcrumbs);
        // now we also need to update all children of this category...
        $oCategory = TdbShopCategory::GetNewInstance();
        $oCategory->SetLanguage($sEditLanguage);
        /** @var $oCategory TdbShopCategory */
        if (!$oCategory->Load($this->sId)) {
            $oCategory = null;
        } else {
            $oChildren = &$oCategory->GetChildren();
            while ($oChild = $oChildren->Next()) {
                $oEditor = new TCMSTableEditorManager();
                /** @var $oEditor TCMSTableEditorManager */
                $oEditor->Init($this->oTableConf->id, $oChild->id, $sEditLanguage);
                $oEditor->AllowEditByAll($this->bAllowEditByAll);
                $oEditor->SaveField('name', $oChild->fieldName, true);
            }
        }
    }
670847
private function generateBreadcrumb()
    {
        $this->breadcrumbMenus = collect();
        $this->addBreadcrumbLink('Home', '/', 'home');

        $prevTitle = 'Home';
        $navs = $this->selectedNavigation->getParentsAndYou();
        foreach ($navs as $k => $nav) {

            if ($nav->title != $prevTitle) {
                $url = (is_slug_url($nav->slug) ? $nav->slug : url($nav->url));
                $this->addBreadcrumbLink($nav->title, $url);
            }

            $prevTitle = $nav->title;
        }
    }
1165855
protected function renderContent() {
        
        $table_id = $this->data->get('table_id');
        
        ?>        
        <ol class="breadcrumb small">
        	<li><a href="admin.php"><?php echo I18N::translate('Control panel'); ?></a></li>
			<li><a href="admin_modules.php"><?php echo I18N::translate('Module administration'); ?></a></li>
			<li class="active"><?php echo $this->data->get('title'); ?></li>
		</ol>
		
		<div align="center">
			<div id="tabs">
				<form method="post" action="#">
					<?php echo Filter::getCsrf(); ?>
					<input type="hidden" name="action" value="update">
					<table id="<?php echo $table_id; ?>" class="table table-bordered table-condensed table-hover table-site-changes" >
						<thead>
							<tr>
								<th><?php echo I18N::translate('Enabled'); ?></th>
								<th>ENABLED_SORT</th>
								<th><?php echo I18N::translate('Hook Function'); ?></th>
								<th><?php echo I18N::translate('Hook Context'); ?></th>
								<th><?php echo I18N::translate('Module Name'); ?></th>
								<th><?php echo I18N::translate('Priority (1 is high)'); ?></th>
								<th>PRIORITY_SORT</th>
							</tr>
						</thead>
						<tbody> 
							<?php  
							$hooks = $this->data->get('hook_list');
							foreach ($hooks as $hook) { 
							?>
							<tr>
								<td>
									<input type="hidden" name="hook-<?php echo $hook->id;?>" value="yes" >
									<?php echo FunctionsEdit::twoStateCheckbox('status-'.($hook->id), ($hook->status)=='enabled'); ?>
								</td>
								<td><?php echo (($hook->status)=='enabled'); ?></td>
								<td><?php echo $hook->hook; ?></td>
								<td><?php echo $hook->context; ?></td>
								<td><?php if($mod = Module::getModuleByName($hook->module)) echo $mod->getTitle(); ?></td>
								<td><input type="text" class="center" size="2" value="<?php echo $hook->priority; ?>" name="moduleorder-<?php echo $hook->id; ?>" /></td>
								<td><?php echo $hook->priority; ?></td>
							</tr>
							<?php  } ?>
						</tbody>
					</table>
					<input type="submit" class="btn btn-primary save" value="<?php echo I18N::translate('save'); ?>">
				</form>
			</div>
		</div>	
		
		<?php        
    }
164398
protected function setBreadcrumbEditEditor()
    {
        $breadcrumbs = array();

        $breadcrumbs[] = array(
            'url' => $this->url('admin'),
            'text' => $this->text('Dashboard')
        );

        $breadcrumbs[] = array(
            'url' => $this->url('admin/module/list'),
            'text' => $this->text('Modules')
        );

        $breadcrumbs[] = array(
            'url' => $this->url('admin/tool/editor'),
            'text' => $this->text('Themes')
        );

        $breadcrumbs[] = array(
            'url' => $this->url("admin/tool/editor/{$this->data_module['id']}"),
            'text' => $this->text('Edit theme %name', array('%name' => $this->data_module['name']))
        );

        $this->setBreadcrumbs($breadcrumbs);
    }