Inheritance: extends skeeks\cms\base\WidgetRenderable
コード例 #1
0
ファイル: home.php プロジェクト: skeeks-cms/app-basic

                    </div>
                </div>
            </div>
        </div>
    </section>






<section class="slice bg-white">
<?php 
echo \skeeks\cms\cmsWidgets\contentElements\ContentElementsCmsWidget::widget(['namespace' => 'ContentElementsCmsWidget-home', 'viewFile' => '@app/views/widgets/ContentElementsCmsWidget/publications']);
?>
</section>

<section class="slice bg-white">
    <div class="container">
        <div class="row">
            <?php 
echo $model->description_full;
?>
        </div>
    </div>

</section>

<!--=== Content Part ===-->
コード例 #2
0
ファイル: footer.php プロジェクト: skeeks-cms/app-basic
\t\t\t\t\t\t<li>Email: <a href="mailto:adria@mail.ru" title="*****@*****.**">adria@mail.ru</a></li>
\t\t\t\t\t\t<li><hr /></li>
\t\t\t\t\t\t<li><a href="/contacts" title="Все контакты" class="btn btn-primary">Все контакты + карта</a></li>
\t\t\t\t\t</ul>
HTML
]);
?>


				 </div>
			</div>

			<div class="col-md-3">
				<div class="col">
					<?php 
echo \skeeks\cms\cmsWidgets\contentElements\ContentElementsCmsWidget::widget(['namespace' => 'ContentElementsCmsWidget-footer', 'viewFile' => '@template/widgets/ContentElementsCmsWidget/articles-footer', 'label' => 'Новости и статьи', 'enabledCurrentTree' => \skeeks\cms\components\Cms::BOOL_N, 'limit' => 4]);
?>

				</div>
			</div>

			<div class="col-md-3">
				<div class="col col-social-icons">
					<?php 
echo \skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget(['namespace' => 'menu-footer-2', 'viewFile' => '@template/widgets/TreeMenuCmsWidget/menu-footer.php', 'label' => 'Меню', 'level' => '1']);
?>


				</div>
			</div>
コード例 #3
0
ファイル: result.php プロジェクト: Liv1020/cms
echo \Yii::$app->cmsSearch->searchQuery;
?>
">
                <span class="input-group-btn">
                    <button class="btn btn-primary" type="button" onclick="$('.search-open form').submit(); return false;"><?php 
echo \Yii::t('app', 'Search');
?>
</button>
                </span>
            </div>
        </form>
    </div>

<!--=== Content Part ===-->
<div class="container content">
    <div class="row magazine-page">
        <div class="col-md-12">

            <?php 
echo \skeeks\cms\cmsWidgets\contentElements\ContentElementsCmsWidget::widget(['namespace' => 'ContentElementsCmsWidget-search-result', 'viewFile' => '@skeeks/cms/views/search/_widget', 'enabledCurrentTree' => \skeeks\cms\components\Cms::BOOL_N, 'dataProviderCallback' => function (\yii\data\ActiveDataProvider $dataProvider) {
    \Yii::$app->cmsSearch->buildElementsQuery($dataProvider->query);
    \Yii::$app->cmsSearch->logResult($dataProvider);
}]);
?>

        </div>
    </div>
</div>

<?php 
\skeeks\cms\modules\admin\widgets\Pjax::end();
コード例 #4
0
ファイル: catalog.php プロジェクト: skeeks-cms/app-basic
        <div class="row">

            <div class="col-lg-9 col-md-9 col-sm-9 col-lg-push-3 col-md-push-3 col-sm-push-3">

                <div class="row">
                    <?php 
echo $model->description_full;
?>

                    <? if ($catalogHelper->viewType == \common\helpers\CatalogTreeHelper::VIEW_TREE) : ?>
                        <?php 
echo trim(\skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget(['namespace' => 'TreeMenuCmsWidget-sub-catalog', 'viewFile' => '@template/widgets/TreeMenuCmsWidget/sub-catalog', 'treePid' => $model->id, 'enabledRunCache' => \skeeks\cms\components\Cms::BOOL_N]));
?>
                    <? else : ?>
                        <?php 
echo \skeeks\cms\cmsWidgets\contentElements\ContentElementsCmsWidget::widget(['namespace' => 'ContentElementsCmsWidget-second', 'viewFile' => '@app/views/widgets/ContentElementsCmsWidget/products']);
?>
                    <? endif; ?>
                </div>

            </div>

            <!-- LEFT -->
            <div class="col-lg-3 col-md-3 col-sm-3 col-lg-pull-9 col-md-pull-9 col-sm-pull-9">

                <!-- CATEGORIES -->
                <div class="side-nav margin-bottom-60">


                    <?php 
echo trim(\skeeks\cms\cmsWidgets\treeMenu\TreeMenuCmsWidget::widget(['namespace' => 'TreeMenuCmsWidget-leftmenu', 'viewFile' => '@template/widgets/TreeMenuCmsWidget/left-menu', 'treePid' => $model->id, 'enabledRunCache' => \skeeks\cms\components\Cms::BOOL_N, 'label' => 'Каталог']));