Commit 24a7e405ef38c99252e2a2685cdb77c7af96ea9c

Authored by Alexey Boroda
1 parent 7ed19c2f

-Seo widget fix and css

frontend/views/catalog/product.php
... ... @@ -25,8 +25,9 @@
25 25 $this->params[ 'seo' ][ Seo::TITLE ] = $product->fullname .' купить в Киеве, Украине недорого - Лінія Світла';
26 26 $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname;
27 27 $this->params[ 'seo' ][ 'h1' ] = $product->fullname;
28   -
29   -
  28 + $this->params[ 'seo' ][ 'key' ] = $product->category->name;
  29 +
  30 +
30 31 $this->params[ 'breadcrumbs' ][] = [
31 32 'label' => $category->name,
32 33 'url' => [
... ...
frontend/web/css/css_header.css
... ... @@ -20398,7 +20398,7 @@ vertical-align: top
20398 20398  
20399 20399 .sub-cat_ ul li {
20400 20400 border: 0!important;
20401   -height: 180px!important;
  20401 +height: 188px!important;
20402 20402 position: relative;
20403 20403 margin-top: 20px!important
20404 20404 }
... ... @@ -20455,7 +20455,7 @@ color: #0f6fc7;
20455 20455 font-size: 14px;
20456 20456 line-height: normal;
20457 20457 text-align: center;
20458   -height: 51px;
  20458 +height: 66px;
20459 20459 overflow: hidden;
20460 20460 margin-top: 10px
20461 20461 }
... ...
frontend/widgets/Seo.php
... ... @@ -293,24 +293,22 @@ class Seo extends Widget
293 293  
294 294 $widgetData = static::findSeoByUrl($this->url);
295 295  
  296 + $seoDynamicData = $this->findSeoByDynamic();
  297 +
296 298 if ($widgetData instanceof \common\models\Seo) {
297 299  
298 300 $result = $widgetData->$param;
299   -
  301 +
  302 + } else if ($seoDynamicData instanceof SeoDynamic) {
  303 +
  304 + $result = $seoDynamicData->$param;
  305 +
300 306 } else if (!empty($this->$param)) {
301 307  
302 308 $result = $this->$param;
303 309  
304 310 } else {
305   -
306   - $widgetData = $this->findSeoByDynamic();
307   -
308   - if ($widgetData instanceof SeoDynamic) {
309   -
310   - $result = $widgetData->$param;
311   -
312   - }
313   -
  311 + $result = '';
314 312 }
315 313  
316 314 return $this->replaceData($result);
... ...