Commit 90d6256d authored by andre's avatar andre

#1094 отладка

parent ec826410
......@@ -21,8 +21,10 @@ $models = CaseContent::find()
<? if(!$model->previewType || $model->previewType->type == CasesPreviewType::PREVIEW_SQUARE): ?>
<div class="col-md-6 col-xs-6 col-sm-12">
<div class="keys_block_small">
<img src="<?= $model->preview ?>" height="338" width="455" alt="">
<div class="keys_small_title"<?if($model->custom==CoContent::CUSTOM_WHITE){?>style="color:#fff;"<?}?>><?=$model->lang->title?></div>
<a href="<?=Url::to(['/'.$model->url])?>">
<img src="<?= $model->preview ?>" height="338" width="455" alt="">
<div class="keys_small_title"<?if($model->custom==CoContent::CUSTOM_WHITE){?>style="color:#fff;"<?}?>><?=$model->lang->title?></div>
</a>
<div class="keys_small_foot">
<a href="<?= Url::to(['/'.$model->url]) ?>" class="keys_small_btn_more"><span><?=Yii::t('case', 'Read more')?></span></a>
<a class="keys_small_tags"><?= $model->previewType->tag ? "#{$model->previewType->tag}" : "" ?></a>
......@@ -33,15 +35,15 @@ $models = CaseContent::find()
<div class="col-md-12 col-xs-12 col-sm-12">
<div class="keys_block_big">
<a href="<?=Url::to(['/'.$model->url])?>">
<picture>
<source srcset="images/keys_big338.jpg" media="(max-width: 768px)">
<img src="images/keys_big1.jpg" height="338" width="940" alt="">
</picture>
<div class="keys_small_title"<?if($model->custom==CoContent::CUSTOM_WHITE){?>style="color:#fff;"<?}?>><?=$model->lang->title?></div>
<div class="keys_small_foot">
<a href="<?=Url::to(['/'.$model->url])?>" class="keys_small_btn_more"><span><?=Yii::t('case', 'Read more')?></span></a>
<a class="keys_small_tags"><?= $model->previewType->tag ? "#{$model->previewType->tag}" : "" ?></a>
</div>
<picture>
<source srcset="images/keys_big338.jpg" media="(max-width: 768px)">
<img src="images/keys_big1.jpg" height="338" width="940" alt="">
</picture>
<div class="keys_small_title"<?if($model->custom==CoContent::CUSTOM_WHITE){?>style="color:#fff;"<?}?>><?=$model->lang->title?></div>
<div class="keys_small_foot">
<a href="<?=Url::to(['/'.$model->url])?>" class="keys_small_btn_more"><span><?=Yii::t('case', 'Read more')?></span></a>
<a class="keys_small_tags"><?= $model->previewType->tag ? "#{$model->previewType->tag}" : "" ?></a>
</div>
</a>
</div>
</div>
......
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