Returns Bread Crumb - you are here page1/page2/page3...

@return array
484899
public function getBreadCrumb()
    {
        $aPaths = [];
        $aPath = [];


        $iBaseLanguage = \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();
        $aPath['title'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString('PAY', $iBaseLanguage, false);
        $aPath['link'] = $this->getLink();

        $aPaths[] = $aPath;

        return $aPaths;
    }
427530
def breadcrumb_trail(options = {})
      return enum_for(:breadcrumb_trail) unless block_given?

      valid?(options)
      options = Loaf.configuration.to_hash.merge(options)
      _breadcrumbs.each do |crumb|
        name = title_for(crumb.name)
        path = url_for(_expand_url(crumb.url))
        current = current_crumb?(path, crumb.match)

        yield(Loaf::Breadcrumb[name, path, current])
      end
    end
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);
    }
441413
public function getBreadcrumbsTemplate()
    {
        if ($template = $this->owner->config()->breadcrumbs_template) {
            return $template;
        }
        
        return $this->owner->config()->default_breadcrumbs_template;
    }
883668
public function getLast()
    {
        return isset($this->_breadcrumbs[$this->count() - 1])
            ? $this->_breadcrumbs[$this->count() - 1]
            : null;
    }
771942
public function getBreadcrumbs()
    {
        $params = $this->getSourceParams();

        // Only apply breadcrumbs if a "ClassName" filter is applied. This implies that we came from the
        // "element type report".
        if (!isset($params[static::CLASS_NAME_FILTER_KEY])) {
            return [];
        }

        $report = ElementTypeReport::create();

        return [ArrayData::create([
            'Title' => $report->title(),
            'Link' => $report->getLink(),
        ])];
    }
920386
public function getBreadCrumb()
    {
        $paths = [];

        if ('oxmore' == \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('cnid')) {
            $path = [];
            $path['title'] = \OxidEsales\Eshop\Core\Registry::getLang()->translateString(
                'CATEGORY_OVERVIEW',
                \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage(),
                false
            );
            $path['link'] = $this->getLink();

            $paths[] = $path;

            return $paths;
        }

        if (($categoryTree = $this->getCategoryTree()) && ($categoryPaths = $categoryTree->getPath())) {
            foreach ($categoryPaths as $category) {
                /** @var \OxidEsales\Eshop\Application\Model\Category $category */
                $categoryPath = [];

                $categoryPath['link'] = $category->getLink();
                $categoryPath['title'] = $category->oxcategories__oxtitle->value;

                $paths[] = $categoryPath;
            }
        }

        return $paths;
    }
262862
public function getBreadcrumbToHref($href)
    {
        $item = $this->findItemByHref($href);
        if ($item) {
            return $this->getBreadcrumbTo($item);
        } else {
            return [ ];
        }
    }
842672
private function order()
    {
        $count = $this->count();

        $this->map(function (BreadcrumbItem $crumb, $key) use ($count) {
            $crumb->resetPosition();

            if ($key === 0)
                $crumb->setFirst();

            if ($key === ($count - 1))
                $crumb->setLast();

            return $crumb;
        });

        return $this;
    }
924794
protected function breadcrumbs($folder)
    {
        $folder = trim($folder, '/');
        $folders = collect(explode('/', $folder));
        $path = '';

        return $folders->reduce(function ($crumbs, $folder) use (&$path) {
            $path .= '/'.$folder;
            $crumbs[$path] = $folder;

            return $crumbs;
        }, collect())->prepend($this->breadcrumbRootLabel, '/');
    }
794776
public function getBreadcrumb_uids()
    {
        $breadcrumb_uids = array();
        foreach ($this->getBreadcrumb() as $page) {
            $breadcrumb_uids[] = $page->getUid();
        }

        return array_reverse($breadcrumb_uids);
    }
1315915
public function getPageIdBreadcrumbAction()
    {
        $idPage = $this->params()->fromRoute('idPage', $this->params()->fromQuery('idPage', ''));
        $idPage = ($idPage == 'root')? -1 : $idPage;
        $includeSelf = $this->params()->fromRoute('includeSelf', $this->params()->fromQuery('includeSelf', ''));
        
    	$melisEngineTree = $this->serviceLocator->get('MelisEngineTree');
		$breadcrumb = $melisEngineTree->getPageBreadcrumb($idPage, 0, true);
		
		$pageFatherId = $idPage;
		$jsonresult = array();
		
		if($includeSelf){
		    array_unshift($jsonresult, $pageFatherId);
		}
		
		while($pageFatherId != NULL){
		    
		    $page = $melisEngineTree->getPageFather($pageFatherId, 'saved')->current();
		    $pageFatherId = !empty($page)? $page->tree_father_page_id : NULL;
		    
		    if(!empty($pageFatherId)){
		        array_unshift($jsonresult, $pageFatherId);
		    }
		    
		}

		return new JsonModel($jsonresult);
	}
780586
public function getPages()
    {
        $multioptions = [];
        for ($i = 1; $i <= $this->getPagesCount(); $i++) {
            $multioptions[$i] = $i;
        }
        return $multioptions;
    }
948061
protected function getPageArray()
    {
        $range = \range($this->firstPage, $this->lastPage);
        $pageArray = [];

        foreach ($range as $page) {
            $pageArray[] = [
                'page' => $page,
                'label' => $page,
                'type' => 'page'
            ];
        }

        return $pageArray;
    }
136009
public function breadcrumb()
    {
        $environment = $this->getEnvironment();

        $event = new GetBreadcrumbEvent($environment);
        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        $elements = $event->getElements();

        if (!\is_array($elements) || !\count($elements)) {
            return null;
        }

        $GLOBALS['TL_CSS']['cca.dc-general.generalBreadcrumb'] = 'bundles/ccadcgeneral/css/generalBreadcrumb.css';

        return $this->getTemplate('dcbe_general_breadcrumb')
            ->set('elements', $elements)
            ->parse();
    }
73026
public function getBreadCrumb()
    {
        if ('search' == $this->getListType()) {
            $paths = $this->_getSearchBreadCrumb();
        // @deprecated since v5.3 (2016-06-17); Listmania will be moved to an own module.
        } elseif ('recommlist' == $this->getListType()) {
            $paths = $this->_getRecommendationListBredCrumb();
            // END deprecated
        } elseif ('vendor' == $this->getListType()) {
            $paths = $this->_getVendorBreadCrumb();
        } else {
            $paths = $this->_getCategoryBreadCrumb();
        }

        return $paths;
    }
1340967
def _breadcrumbs(path):
    """"""

    full = None
    crumbs = []
    for part in path_yield(path):
        full = path_join(full, part) if full else part
        crumbs.append((full, part))

    return crumbs