コード例 #1
0
ファイル: view.php プロジェクト: modernkernel/yii2-skeleton
                </div>
            </div>
            <?php 
echo Disqus::widget(['pageUrl' => $model->getViewUrl(true), 'pageIdentifier' => $model->slug]);
?>

        </div>
        <div class="col-md-4">
            <div class="hidden-xs hidden-sm"><?php 
echo \frontend\widgets\BlogPost::widget(['type' => 'mostViewed']);
?>
</div>
            <div><?php 
echo \frontend\widgets\AdsBox::widget();
?>
</div>
            <div><?php 
echo \frontend\widgets\BlogPost::widget(['type' => 'latest']);
?>
</div>
        </div>
    </div>
    <?php 
echo \modernkernel\photoswipe\Modal::widget(['selector' => '.blog-content img', 'images' => $model->getImages(), 'clientOptions' => ['shareEl' => false]]);
?>


</div>


コード例 #2
0
ファイル: index.php プロジェクト: modernkernel/yii2-skeleton
            <?php 
echo \common\models\Setting::getValue('blogDesc');
?>
        </div>
    </div>

    <div class="row">
        <div class="col-md-8">
            <?php 
echo ListView::widget(['layout' => '<div class="row">{items}</div>{summary}{pager}<div><br /></div>', 'dataProvider' => $dataProvider, 'itemOptions' => ['class' => 'item'], 'itemView' => function ($model, $key, $index, $widget) {
    return $this->render('_grid', ['model' => $model, 'index' => $index]);
}]);
?>
        </div>
        <div class="col-md-4">
            <div class="hidden-xs hidden-sm"><?php 
echo \frontend\widgets\BlogPost::widget(['type' => 'mostViewed']);
?>
</div>
            <div><?php 
echo \frontend\widgets\AdsBox::widget();
?>
</div>
            <div><?php 
echo \frontend\widgets\BlogPost::widget(['type' => 'random']);
?>
</div>
        </div>
    </div>
</div>