Commit d3481fb6defdd953810df135c87aea833f1df959
1 parent
1ca7f4df
micro data breadcrumb update
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
frontend/views/layouts/main.php
... | ... | @@ -242,13 +242,13 @@ use common\models\Event; |
242 | 242 | echo Breadcrumbs::widget([ |
243 | 243 | 'encodeLabels' => false, |
244 | 244 | 'itemTemplate' => "<li><span itemscope itemtype=\"http://data-vocabulary.org/Breadcrumb\">{link}</span></li>\n", |
245 | - 'links' => isset( $this->params[ 'breadcrumbs' ] ) ? $this->params[ 'breadcrumbs' ] : [], | |
245 | + 'links' => isset($links) ? $links : [], | |
246 | 246 | 'homeLink' => [ |
247 | 247 | 'label' => '<span itemprop="title">Интернет-магазин светильников</span>', |
248 | 248 | 'url' => Url::to([ '/' ]), |
249 | 249 | 'itemprop' => 'url', |
250 | 250 | ], |
251 | - 'activeItemTemplate' => '<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">{link}</span></span>', | |
251 | + 'activeItemTemplate' => '<li class="active"><span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">{link}</span></span></li>', | |
252 | 252 | ]) |
253 | 253 | ?> |
254 | 254 | ... | ... |