fix blocks

parent ac555f76
...@@ -22,7 +22,7 @@ $reviews = Reviews::find() ...@@ -22,7 +22,7 @@ $reviews = Reviews::find()
<?php if($review->photo) : ?> <?php if($review->photo) : ?>
<div class="col-md-3 col-xs-4 col-sm-12"> <div class="col-md-3 col-xs-4 col-sm-12">
<div class="rev_img"> <div class="rev_img">
<?=Html::img(Reviews::PHOTO_FOLDER . $review->photo);?> <img src="<?=Reviews::PHOTO_FOLDER . $review->photo?>">
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>
......
...@@ -13,7 +13,7 @@ $models = CoContent::find() ...@@ -13,7 +13,7 @@ $models = CoContent::find()
<?php foreach ($models as $model) : ?> <?php foreach ($models as $model) : ?>
<div class="col-md-6 col-xs-6 col-sm-12"> <div class="col-md-6 col-xs-6 col-sm-12">
<div class="keys_block_small"> <div class="keys_block_small">
<?=Html::img([CoContent::PHOTO_FOLDER . $model->preview], ['height' => '338', 'width' => '455'])?> <img src="<?=CoContent::PHOTO_FOLDER . $model->preview?>" height="338" width="455">
<div class="keys_small_title"><?=$model->title?></div> <div class="keys_small_title"><?=$model->title?></div>
<div class="keys_small_foot"> <div class="keys_small_foot">
<?=Html::a('<span>Подробнее</span>', ['/'.$model->url], ['class' => 'keys_small_btn_more'])?> <?=Html::a('<span>Подробнее</span>', ['/'.$model->url], ['class' => 'keys_small_btn_more'])?>
......
...@@ -26,7 +26,7 @@ $cases = CoContent::find()->where(['category_id' => 4]); ...@@ -26,7 +26,7 @@ $cases = CoContent::find()->where(['category_id' => 4]);
<a href="<?=Url::to(['/' . $model->url])?>" class="others_project__bt">Подробнее</a> <a href="<?=Url::to(['/' . $model->url])?>" class="others_project__bt">Подробнее</a>
<a href="<?=Url::to(['/case'])?>" class="others_project__link">Все проекты (<?=$cases->count();?>)</a> <a href="<?=Url::to(['/case'])?>" class="others_project__link">Все проекты (<?=$cases->count();?>)</a>
</div> </div>
<?=Html::img([CoContent::PHOTO_FOLDER . $model->preview], ['height' => '476', 'width' => '489'])?> <img src="<?=CoContent::PHOTO_FOLDER . $model->preview?>" height="476" width="489">
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment