Sets breadcrumbs on the user role edit page
553750
protected function setBreadcrumbEditUserRole()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Roles'),
            'url' => $this->url('admin/user/role')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
618067
def pages_admin_menu(context, page):
    """"""
    request = context.get('request', None)

    expanded = False
    if request and "tree_expanded" in request.COOKIES:
        cookie_string = urllib.unquote(request.COOKIES['tree_expanded'])
        if cookie_string:
            ids = [int(id) for id in
                urllib.unquote(request.COOKIES['tree_expanded']).split(',')]
            if page.id in ids:
                expanded = True
    context.update({'expanded': expanded, 'page': page})
    return context
639644
protected function setBreadcrumbAccountOrder()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Orders'),
            'url' => $this->url("account/{$this->data_user['user_id']}")
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
893356
protected function registerBreadcrumb()
    {
        BreadcrumbFacade::make(
            'admin.dashboard',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('avored-framework::breadcrumb.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.page.index',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Page')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.page.create',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.page.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.page.edit',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.page.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.page.show',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.page.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.menu.index',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Menu')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.category.index',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Category')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.category.create',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.category.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.category.edit',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.category.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.category.show',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.category.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.product.index',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Product')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.product.create',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.product.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.product.edit', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.product.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.product.show', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.product.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.order.index', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Order')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.order.view', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('View')
                    ->parent('admin.dashboard')
                    ->parent('admin.order.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.order-status.index', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Order Status')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.order-status.create', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.order-status.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.order-status.edit', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.order-status.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.order-status.show', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.order-status.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.attribute.index', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Attribute')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.attribute.create', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.attribute.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.attribute.edit', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.attribute.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.attribute.show', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.attribute.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.property.index', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Property')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.property.create', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.property.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.property.edit', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.property.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.property.show', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.property.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.user.index', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('User')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.user.create', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.user.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.user.edit', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.user.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.user.show', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.user.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.user-group.index', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('User Group')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.user-group.create', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.user-group.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.user-group.edit', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.user-group.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.user-group.show', function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.user-group.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.admin-user.index', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Admin User')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.admin-user.create',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.admin-user.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.admin-user.edit',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.admin-user.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.admin-user.show',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.admin-user.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.role.index',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Role')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.role.create',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.role.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.role.edit',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.role.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.role.show', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.role.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.configuration', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Configuration')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.site-currency.index', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Site Currency')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.site-currency.create', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.site-currency.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.site-currency.edit', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.site-currency.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.site-currency.show', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.site-currency.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.country.index', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Country')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.country.create', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.country.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.country.edit', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.country.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.country.show', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Show')
                    ->parent('admin.dashboard')
                    ->parent('admin.country.index');
            }
        );
        BreadcrumbFacade::make(
            'admin.state.index', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('State')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.state.create', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Create')
                    ->parent('admin.dashboard')
                    ->parent('admin.state.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.state.edit', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.state.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.state.show', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Edit')
                    ->parent('admin.dashboard')
                    ->parent('admin.state.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.module.index', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Module')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.module.create',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Upload')
                    ->parent('admin.dashboard')
                    ->parent('admin.module.index');
            }
        );

        BreadcrumbFacade::make(
            'admin.theme.index',
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Theme')
                    ->parent('admin.dashboard');
            }
        );

        BreadcrumbFacade::make(
            'admin.theme.create', 
            function (Breadcrumb $breadcrumb) {
                $breadcrumb->label('Upload')
                    ->parent('admin.dashboard')
                    ->parent('admin.theme.index');
            }
        );
    }
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);
    }
155342
protected function setBreadcrumbFileManager()
    {
        $breadcrumbs = array();

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

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

        $this->setBreadcrumbs($breadcrumbs);
    }
676291
protected function setBreadcrumbListCollectionItem()
    {
        $breadcrumbs = array();

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

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

        $this->setBreadcrumbs($breadcrumbs);
    }
453038
protected function setBreadcrumbEditCity()
    {
        $breadcrumbs = array();

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

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

        $breadcrumbs[] = array(
            'url' => $this->url("admin/settings/states/{$this->data_country['code']}"),
            'text' => $this->text('Country states of %name', array('%name' => $this->data_country['name']))
        );

        $breadcrumbs[] = array(
            'url' => $this->url("admin/settings/cities/{$this->data_country['code']}/{$this->data_state['state_id']}"),
            'text' => $this->text('Cities of state %name', array('%name' => $this->data_state['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);
        });
    }
768877
protected function setBreadcrumbListCategory()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'url' => $this->url('admin/content/category-group'),
            'text' => $this->text('Category groups')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
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();
    }
777296
protected function setBreadcrumbEditReview()
    {
        $breadcrumbs = array();

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

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

        $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);
    }
834583
public void addToBreadcrumb(String breadCrumb) {
    setBreadcrumb(breadCrumb + Constants.BREADCRUMB_DELIMITER + description);
    settings.forEach(setting -> setting.addToBreadcrumb(getBreadcrumb()));
  }
138466
protected function setBreadcrumbEditPriceRule()
    {
        $breadcrumbs = array();

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

        $breadcrumbs[] = array(
            'text' => $this->text('Price rules'),
            'url' => $this->url('admin/sale/price')
        );

        $this->setBreadcrumbs($breadcrumbs);
    }
677280
function updateBreadcrumbs(nodeArray, percentageString) {

  // Data join; key function combines name and depth (= position in sequence).
  var g = d3.select("#trail")
      .selectAll("g")
      .data(nodeArray, function(d) { return d.name + d.depth; });

  // Add breadcrumb and label for entering nodes.
  var entering = g.enter().append("svg:g");

  entering.append("svg:polygon")
      .attr("points", breadcrumbPoints)
      .style("fill", function(d) { return colors[d.name]; });

  entering.append("svg:text")
      .attr("x", (b.w + b.t) / 2)
      .attr("y", b.h / 2)
      .attr("dy", "0.35em")
      .attr("text-anchor", "middle")
      .text(function(d) { return d.name; });

  // Set position for entering and updating nodes.
  g.attr("transform", function(d, i) {
    return "translate(" + i * (b.w + b.s) + ", 0)";
  });

  // Remove exiting nodes.
  g.exit().remove();

  // Now move and update the percentage at the end.
  d3.select("#trail").select("#endlabel")
      .attr("x", (nodeArray.length + 0.5) * (b.w + b.s))
      .attr("y", b.h / 2)
      .attr("dy", "0.35em")
      .attr("text-anchor", "middle")
      .text(percentageString);

  // Make the breadcrumb trail visible, if it's hidden.
  d3.select("#trail")
      .style("visibility", "");

}
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();
    }