Skip to content

Commit

Permalink
Merge pull request #24 from skeeks-cms/master-mob
Browse files Browse the repository at this point in the history
Изменение сортировки для моб версии
  • Loading branch information
skeeks-semenov authored Sep 23, 2019
2 parents b7660f0 + 37323a6 commit ed0535e
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions src/views/widgets/TreeMenuCmsWidget/sub-catalog-small.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,35 @@
/* @var $models \skeeks\cms\models\Tree[] */
?>
<? if ($models = $widget->activeQuery->all()) : ?>
<div class="col-md-12">
<!--g-brd-top--md g-brd-bottom--md g-brd-gray-light-v4-->
<ul class="row sx-category-list-small list-inline nomargin g-brd-top--md g-brd-bottom--md g-brd-gray-light-v4">
<? foreach ($models as $model) : ?>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!--g-brd-top--md g-brd-bottom--md g-brd-gray-light-v4-->
<ul class="row sx-category-list-small list-inline nomargin g-brd-top--md g-brd-bottom--md g-brd-gray-light-v4">
<? foreach ($models as $model) : ?>

<li class="col-lg-2 col-md-3 col-sm-3 col-4 g-mb-10 g-mt-10">
<div class="text-center">
<a data-pjax="0" href="<?= $model->url; ?>" class="shop-item-image">
<img src="<?= \skeeks\cms\helpers\Image::getSrc(\Yii::$app->imaging->thumbnailUrlOnRequest($model->image ? $model->image->src : null,
new \skeeks\cms\components\imaging\filters\Thumbnail([
'w' => 120,
'h' => 100,
'm' => \Imagine\Image\ManipulatorInterface::THUMBNAIL_INSET,
]), $model->code
)); ?>
" alt="<?= $model->name; ?>">
</a>
<!--<div class="easy-block-v1-badge rgba-purple"><? /*= $model->name; */ ?></div>-->
<div class="sx-caption-wrapper text-center">
<a data-pjax="0" href="<?= $model->url; ?>" class="g-color-gray-dark-v2 g-font-weight-700 g-line-height-1" style="display: inherit;"><?= $model->name; ?></a>
</div>
</div>
</li>
<li class="col-lg-2 col-md-3 col-sm-4 col-6 g-mb-10 g-mt-10">
<div class="text-center">
<a data-pjax="0" href="<?= $model->url; ?>" class="shop-item-image">
<img src="<?= \skeeks\cms\helpers\Image::getSrc(\Yii::$app->imaging->thumbnailUrlOnRequest($model->image ? $model->image->src : null,
new \skeeks\cms\components\imaging\filters\Thumbnail([
'w' => 120,
'h' => 100,
'm' => \Imagine\Image\ManipulatorInterface::THUMBNAIL_INSET,
]), $model->code
)); ?>
" alt="<?= $model->name; ?>">
</a>
<!--<div class="easy-block-v1-badge rgba-purple"><? /*= $model->name; */ ?></div>-->
<div class="sx-caption-wrapper text-center">
<a data-pjax="0" href="<?= $model->url; ?>" class="g-color-gray-dark-v2 g-font-weight-700 g-line-height-1" style="display: inherit;"><?= $model->name; ?></a>
</div>
</div>
</li>

<? endforeach; ?>
</ul>
<? endforeach; ?>
</ul>
</div>
</div>
</div>
<? endif; ?>

0 comments on commit ed0535e

Please sign in to comment.