Sets breadcrumbs on the file edit page
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);
    }
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);
        });
    }
802453
def breadcrumb_raw(context, label, viewname, *args, **kwargs):
    
    append_breadcrumb(context, escape(label), viewname, args, kwargs)
    return ''
354364
protected function setBreadcrumbEditLanguage()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/settings/language'),
            'text' => $this->text('Languages')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
335602
protected function setBreadcrumbEditProductClass()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Product classes'),
            'url' => $this->url('admin/content/product-class')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
1177364
def edit
      @edit = true
      @record = Post.find(params[:id])

      # add breadcrumb and set title
      add_breadcrumb I18n.t("controllers.admin.pages.edit.breadcrumb")
      set_title(I18n.t("controllers.admin.pages.edit.title", post_title: @record.post_title))
      @action = 'update'
    end
1170179
protected function setBreadcrumbEditCountry()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/settings/country'),
            'text' => $this->text('Countries')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
873543
protected function setBreadcrumbIndexProduct()
    {
        $breadcrumbs = array();

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

        $categories = $this->getCategorytBreadcrumbsProduct($this->data_product['category_id']);
        $this->setBreadcrumbs(array_merge($breadcrumbs, $categories));
    }
1083540
private function buildBreadcrumbs($file_url) {
        $cacheKey = 'breadcrumbs-' . $file_url;
        $breadcrumbs = $this->module->cache->get($cacheKey);
        if (!$breadcrumbs) {
            $page_parts = explode('/', $file_url);

            $repo = $this->getFlywheelRepo();

            $breadcrumbs = array();

            $i = 0;
            $out = '';
            $crumbs = array();
            foreach($page_parts as $part) {
                $out = $out . '/' . $page_parts[$i];
                $crumbs[] = substr($out, 1);
                $i++;
            }

            if($file_url != 'index') {
                Yii::$app->view->params['breadcrumbs'][] = array('label' => Page::title('index'), 'url' => Url::to(array('page/view', 'id' => 'index')));
            }

            foreach($crumbs as $crumb) {
                $page = $repo->query()->where('url', '==', $crumb)->execute();
                $result = $page->first();
                if($result != null) {
                    if($result->url == $crumbs[count($page_parts)-1]) {
                        Yii::$app->view->params['breadcrumbs'][] = array('label' => $result->title);
                    } else {
                        Yii::$app->view->params['breadcrumbs'][] = array('label' => $result->title, 'url' => Url::to(array('page/view', 'id' => $result->url)));
                    }
                } else {
                    Yii::$app->view->params['breadcrumbs'][] = array('label' => $crumb, 'class' => 'disabled');
                }
            }
            $this->module->cache->set($cacheKey, $breadcrumbs, $this->module->caching_time);
        }

        return $breadcrumbs;
    }
1231102
public void setupBreadCrumbBar() {
    String[] stringArr = model.getDisplayedCategory().getBreadcrumb().split(BREADCRUMB_DELIMITER);
    Category[] categories = new Category[stringArr.length];

    // Collecting all parent categories from the displayed category using the breadcrumb.
    // There will always be at least one category which will be added to the breadcrumb.
    categories[0] = searchCategory(stringArr[0]);

    // If there are more than one category in the stringArr[], they will be added. For this reason
    // the Integer in the loop starts with one, thus only the second element in the array is needed.
    for (int i = 1; i < stringArr.length; ++i) {
      stringArr[i] = stringArr[i - 1] + BREADCRUMB_DELIMITER + stringArr[i];
      categories[i] = searchCategory(stringArr[i]);
    }

    breadCrumbView.breadcrumbsItm = BreadCrumbBar.buildTreeModel(categories);
    breadCrumbView.breadCrumbBar.setSelectedCrumb(breadCrumbView.breadcrumbsItm);
  }
929853
def your_tips_breadcrumbs(context, active_breadcrumb_title=None):
    
    context = copy(context)
    if get_your_tip(context):

        context.update({
            'your_tip_page_slug': get_your_tip(context).slug,
            'active_breadcrumb_title': active_breadcrumb_title
        })
    return context
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;
    }
865616
public function editSettings()
    {
        $this->setTitleEditSettings();
        $this->setBreadcrumbEditSettings();

        $this->setData('stores', $this->store->getList());
        $this->setData('settings', $this->module->getSettings('device'));
        $this->setData('themes', $this->getFrontendThemesSettings());

        $this->submitSettings();
        $this->outputEditSettings();
    }
144735
private function loadBreadcrumbsFile()
    {

        $path = $this->extensionPath . DIRECTORY_SEPARATOR . 'Http' . DIRECTORY_SEPARATOR . 'breadcrumbs.php';

        if (file_exists($path)) {
            $manager = $this->app->instance(Manager::class, $this->app->make(Manager::class));
            require_once $path;
        }
    }
349596
protected function setBreadcrumbIndexOrder()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Orders'),
            'url' => $this->url('admin/sale/order')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
804915
protected function setBreadcrumbListFieldValue()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/content/field'),
            'text' => $this->text('Fields')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
792255
protected function setBreadcrumbCompareCompare()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('compare'),
            'text' => $this->text('Select products'));

        $this->setBreadcrumbs($breadcrumbs);
    }