Commit c4a101ca22577e6f89912bc6dba52ffeeeee98e3
1 parent
bdaccaaf
23.06.16
Showing
2 changed files
with
16 additions
and
8 deletions
Show diff stats
frontend/views/catalog/products.php
| ... | ... | @@ -203,9 +203,14 @@ $this->registerJsFile(Yii::getAlias('@web/js/ion.rangeSlider.js'),[ |
| 203 | 203 | <?= \common\modules\product\widgets\lastProducts::widget()?> |
| 204 | 204 | </div> |
| 205 | 205 | |
| 206 | +<?php | |
| 207 | + $seo_text = Seo::widget([ 'row'=>'seo_text']); | |
| 208 | + if($seo_text){ | |
| 209 | +?> | |
| 206 | 210 | <div class="text_seo hidden_seo text_seo_products"> |
| 207 | 211 | <div> |
| 208 | - <?= Seo::widget([ 'row'=>'seo_text'])?> | |
| 212 | + <?= $seo_text?> | |
| 209 | 213 | </div> |
| 210 | 214 | <a href="#" class="read_more_seo">Читать полностью</a> |
| 211 | 215 | </div> |
| 216 | +<?php } ?> | |
| 212 | 217 | \ No newline at end of file | ... | ... |
frontend/views/site/index.php
| ... | ... | @@ -68,14 +68,17 @@ echo '</div>' |
| 68 | 68 | <?=BannerWidget::widget(['title' => 'HOME_CENTER']);?> |
| 69 | 69 | |
| 70 | 70 | |
| 71 | - | |
| 72 | -<div class="text_seo hidden_seo"> | |
| 73 | - <div> | |
| 74 | - <?= Seo::widget(['row'=>'seo_text'])?> | |
| 71 | +<?php | |
| 72 | +$seo_text = Seo::widget([ 'row'=>'seo_text']); | |
| 73 | +if($seo_text){ | |
| 74 | + ?> | |
| 75 | + <div class="text_seo hidden_seo text_seo_products"> | |
| 76 | + <div> | |
| 77 | + <?= $seo_text?> | |
| 78 | + </div> | |
| 79 | + <a href="#" class="read_more_seo">Читать полностью</a> | |
| 75 | 80 | </div> |
| 76 | - <a href="#" class="read_more_seo">Читать полностью</a> | |
| 77 | -</div> | |
| 78 | - | |
| 81 | +<?php } ?> | |
| 79 | 82 | |
| 80 | 83 | |
| 81 | 84 | ... | ... |