diff --git a/frontend/views/catalog/products.php b/frontend/views/catalog/products.php index 15cd2ce..3787c20 100755 --- a/frontend/views/catalog/products.php +++ b/frontend/views/catalog/products.php @@ -5,7 +5,8 @@ use common\modules\product\models\Product; use yii\helpers\ArrayHelper; - use yii\helpers\Url; + use yii\helpers\Html; + use yii\helpers\Url; use yii\widgets\Breadcrumbs; use yii\web\View; use common\modules\product\helpers\ProductHelper; @@ -28,8 +29,8 @@ //foreach($category->getParents()->all() as $parent) { // $this->params['breadcrumbs'][] = ['label' => $parent->categoryName->value, 'url' => ['catalog/category', 'category' => $parent]]; //} - $this->params['breadcrumbs'][] = ['label' => 'Каталог', 'url' => Url::to(['catalog/category']),'itemprop' => 'url', ]; - $this->params['breadcrumbs'][] = $category->categoryName->value; + $this->params['breadcrumbs'][] = ['label' => 'Каталог', 'url' => Url::to(['catalog/category']),'itemprop' => 'url' ]; + $this->params['breadcrumbs'][] = Html::tag('span', $category->categoryName->value, ['itemprop' => 'title']); $this->registerCssFile (Yii::getAlias('@web/css/ion.rangeSlider.css')); diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 0df4215..81f13f3 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -247,9 +247,10 @@ $this->registerJs("