Commit 423666f8 authored by Ruslan Karimov's avatar Ruslan Karimov

#2425. Доработка вывода подзаголовков

parent a49d57eb
......@@ -21,7 +21,7 @@ $models = CaseContent::find()
foreach ($models as $model) : ?>
<?php if(!$model->previewType || $model->previewType->type == CasesPreviewType::PREVIEW_SQUARE): ?>
<div class="col-md-6 col-xs-6 col-sm-12">
<a href="<?=Url::to([$model->getPreparedUrl()], true)?>" class="keys_block_small">
<a href="<?=Url::to([$model->getPreparedUrl()])?>" class="keys_block_small">
<img src="<?=$model->preview?>" height="338" width="455">
<div class="keys_small_title" <?php if($model->custom==CoContent::CUSTOM_WHITE){?>style="color:#fff;"<?php }?>>
<?=$model->lang->title?>
......@@ -39,7 +39,7 @@ $models = CaseContent::find()
</div>
<?php elseif($model->previewType->type == CasesPreviewType::PREVIEW_RECTANGLE): ?>
<div class="col-md-12 col-xs-12 col-sm-12">
<a href="<?=Url::to([$model->getPreparedUrl()], true)?>" class="keys_block_small big">
<a href="<?=Url::to([$model->getPreparedUrl()])?>" class="keys_block_small big">
<img class="img_lg" src="<?=$model->preview?>" height="338" width="940">
<?php if($model->preview_mob):?>
<img class="img_sm" src="<?=$model->preview_mob?>" height="338" width="455">
......
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