$leftSidebar = ThemeParts::renderPart('left-sidebar'); $rightSidebar = ThemeParts::renderPart('right-sidebar'); $contentLength = 12; $leftSidebarLength = 3; $rightSidebarLength = 3; if (empty($leftSidebar) === false) { $contentLength -= $leftSidebarLength; } if (empty($rightSidebar) === false) { $contentLength -= $rightSidebarLength; } include 'blocks/header.php'; ?> <div class="content-block"> <?php echo ThemeParts::renderPart('before-content'); ?> <div class="container"> <div class="row"> <?php if (!empty($leftSidebar)) { echo '<div class="left-sidebar col-md-' . $leftSidebarLength . ' col-xs-12">' . $leftSidebar . '</div>'; } ?> <div class="content-part col-md-<?php echo $contentLength; ?> col-xs-12"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], 'options' => ['itemprop' => "breadcrumb", 'class' => 'breadcrumb']]); ?>
echo Yii::$app->getModule('core')->getBaseUrl(); ?> "> <title><?php echo Html::encode($this->title); ?> </title> <?php echo Html::csrfMetaTags(); ?> <?php $this->head(); ?> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body itemscope itemtype="http://schema.org/WebPage"> <?php $this->beginBody(); echo ThemeParts::renderPart('pre-header'); echo ThemeParts::renderPart('header'); echo ThemeParts::renderPart('post-header'); ?>
<?php use app\extensions\DefaultTheme\models\ThemeParts; echo ThemeParts::renderPart('pre-footer'); echo ThemeParts::renderPart('footer'); echo ThemeParts::renderPart('post-footer'); $this->endBody(); ?> </body> </html> <?php $this->endPage();