Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Jul 19, 2019
1 parent d46b9c3 commit b8ca490
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 26 deletions.
5 changes: 5 additions & 0 deletions src/assets/src/css/unify-custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,9 @@ body {
padding: 8px;
border-radius: 10px;
margin-top: 5px;
}


.sx-caption-wrapper {
overflow: hidden;
}
34 changes: 18 additions & 16 deletions src/views/footers/footer-v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,24 @@
</div>
<!-- End Footer Content -->
<!-- Footer Content -->
<?= \skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget([
'namespace' => 'menu-footer-2',
'viewFile' => '@app/views/widgets/TreeMenuCmsWidget/menu-footer',
'label' => \Yii::t('skeeks/unify', 'Menu'),
'level' => '1',
'enabledRunCache' => 'Y',
]); ?>

<?= \skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget([
'namespace' => 'menu-footer-3',
'viewFile' => '@app/views/widgets/TreeMenuCmsWidget/menu-footer',
'label' => "Услуги",
'treeParentCode' => 'services',
'enabledRunCache' => 'Y',
'limit' => 6
]); ?>
<? if (\Yii::$app->mobileDetect->isDesktop) : ?>
<?= \skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget([
'namespace' => 'menu-footer-2',
'viewFile' => '@app/views/widgets/TreeMenuCmsWidget/menu-footer',
'label' => \Yii::t('skeeks/unify', 'Menu'),
'level' => '1',
'enabledRunCache' => 'Y',
]); ?>

<?= \skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget([
'namespace' => 'menu-footer-3',
'viewFile' => '@app/views/widgets/TreeMenuCmsWidget/menu-footer',
'label' => "Услуги",
'treeParentCode' => 'services',
'enabledRunCache' => 'Y',
'limit' => 6,
]); ?>
<? endif; ?>


<!-- Footer Content -->
Expand Down
16 changes: 9 additions & 7 deletions src/views/footers/footer-v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@
</div>
<!-- End Footer Content -->
<!-- Footer Content -->
<?= \skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget([
'namespace' => 'menu-footer-2',
'viewFile' => '@app/views/widgets/TreeMenuCmsWidget/menu-footer',
'label' => \Yii::t('skeeks/unify', 'Menu'),
'level' => '1',
'enabledRunCache' => 'Y',
]); ?>
<? if (\Yii::$app->mobileDetect->isDesktop) : ?>
<?= \skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget([
'namespace' => 'menu-footer-2',
'viewFile' => '@app/views/widgets/TreeMenuCmsWidget/menu-footer',
'label' => \Yii::t('skeeks/unify', 'Menu'),
'level' => '1',
'enabledRunCache' => 'Y',
]); ?>
<? endif; ?>

<div class="col-sm-6 col-lg">
<? if (\Yii::$app->user->isGuest) : ?>
Expand Down
3 changes: 2 additions & 1 deletion src/views/include/col-left.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

?>

<? if (\Yii::$app->mobileDetect->isDesktop) : ?>
<div class="col-md-3 order-md-1 g-py-20 g-bg-secondary">
<div class="g-mb-20">
<div
Expand Down Expand Up @@ -91,3 +91,4 @@ class="g-pa-5 js-sticky-block"
]); ?>

</div>
<? endif; ?>
4 changes: 2 additions & 2 deletions src/views/widgets/ContentElementsCmsWidget/news-masonry.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
/* @var $this yii\web\View */
/* @var $widget \skeeks\cms\cmsWidgets\contentElements\ContentElementsCmsWidget */
$layout = "<div class=\"row\">{items}</div>";
$layout = "{items}";
if ($widget->enabledPaging == \skeeks\cms\components\Cms::BOOL_Y) {
$layout = "<div class=\"row\">{items}</div><div class=\"row\"><div class=\"col-sm-12\">{summary}{pager}</div></div>";
}
Expand All @@ -24,7 +24,7 @@
'options' =>
[
'tag' => 'div',
'class' => 'masonry-grid row g-mb-70',
'class' => 'masonry-grid row',
],
'itemOptions' => [
'tag' => false
Expand Down

0 comments on commit b8ca490

Please sign in to comment.