Пример #1
0
 /**
  * @inheritdoc
  */
 public function run()
 {
     if (!$this->isShow() or empty($this->group)) {
         return false;
     }
     $includes = $this->group->includes;
     $html = "";
     foreach ($includes as $include) {
         $html .= Includes::widget(["model" => $include]);
     }
     return $html;
 }
Пример #2
0
?>
</div>
            <div class="well"><?php 
echo \app\modules\shop\widgets\BasketInfo::widget();
?>
</div>

            <?php 
echo \app\modules\main\widgets\menu\Menu::widget(["options" => ["class" => "nav nav-pills nav-stacked"], "parentCode" => Yii::$app->getModule('main')->blocksProvider->getMenu('left', 'main')]);
?>

            <br/>

            <div class="well">
                <?php 
echo \app\modules\main\widgets\includes\Includes::widget(["code" => Yii::$app->getModule('main')->blocksProvider->getArea('left', 'demo')]);
?>
            </div>

        </div>
        <div class="col-xs-9">
            <?php 
echo Breadcrumbs::widget(['links' => $this->breadCrumbs]);
?>
            <?php 
echo $content;
?>
        </div>
    </div>

</div>