diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 7ee8033..6a71ff7 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -25,8 +25,9 @@ $this->params[ 'seo' ][ Seo::TITLE ] = $product->fullname .' купить в Киеве, Украине недорого - Лінія Світла'; $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname; $this->params[ 'seo' ][ 'h1' ] = $product->fullname; - - + $this->params[ 'seo' ][ 'key' ] = $product->category->name; + + $this->params[ 'breadcrumbs' ][] = [ 'label' => $category->name, 'url' => [ diff --git a/frontend/web/css/css_header.css b/frontend/web/css/css_header.css index e4deb4f..671c75a 100755 --- a/frontend/web/css/css_header.css +++ b/frontend/web/css/css_header.css @@ -20398,7 +20398,7 @@ vertical-align: top .sub-cat_ ul li { border: 0!important; -height: 180px!important; +height: 188px!important; position: relative; margin-top: 20px!important } @@ -20455,7 +20455,7 @@ color: #0f6fc7; font-size: 14px; line-height: normal; text-align: center; -height: 51px; +height: 66px; overflow: hidden; margin-top: 10px } diff --git a/frontend/widgets/Seo.php b/frontend/widgets/Seo.php index 71557ef..e35c629 100755 --- a/frontend/widgets/Seo.php +++ b/frontend/widgets/Seo.php @@ -293,24 +293,22 @@ class Seo extends Widget $widgetData = static::findSeoByUrl($this->url); + $seoDynamicData = $this->findSeoByDynamic(); + if ($widgetData instanceof \common\models\Seo) { $result = $widgetData->$param; - + + } else if ($seoDynamicData instanceof SeoDynamic) { + + $result = $seoDynamicData->$param; + } else if (!empty($this->$param)) { $result = $this->$param; } else { - - $widgetData = $this->findSeoByDynamic(); - - if ($widgetData instanceof SeoDynamic) { - - $result = $widgetData->$param; - - } - + $result = ''; } return $this->replaceData($result); -- libgit2 0.21.4