Exemplo n.º 1
0
$postComment = new Comment();
echo $this->render('form', array('id' => $model->id, 'postModel' => $postComment));
?>

        </div>

    </div>
</div>

<div class="content-right">

    <aside class="widget-content">
        <h1 class="widget-title glyphicon glyphicon-tags"> 标签云</h1>
        <ul class="widget-list">
            <?php 
echo TagCloud::widget(['tags' => $tags]);
?>
        </ul>
    </aside>

    <aside class="widget-content">
        <h1 class="widget-title glyphicon glyphicon-upload"> 最近发表</h1>
        <ul class="widget-list">
            <?php 
echo RecentPosts::widget(['postDataProvider' => $postDataProvider]);
?>
        </ul>
    </aside>

    <aside class="widget-content">
        <h1 class="widget-title glyphicon glyphicon-comment"> 最新评论</h1>
Exemplo n.º 2
0
<!-- start widget -->
<div class="widget">
    <h4 class="title">下载 MoBlog</h4>
    <div class="content download">
        <a href="https://coding.net/u/mojifan/p/MoBlog/git" target="_blank" class="btn btn-default btn-block">去Coding下载</a>
        <a href="https://github.com/mojifan/MoBlog" target="_blank" class="btn btn-default btn-block">去Github下载</a>
    </div>
</div>
<!-- end widget -->
<div class="widget">
    <h4 class="title">分类</h4>
    <div class="content category">
        <?php 
echo \common\widgets\CategoryList::widget();
?>
    </div>
</div>
<!-- start tag cloud widget -->
<div class="widget">
    <h4 class="title">标签云</h4>
    <div class="content tag-cloud">
        <?php 
echo \frontend\widgets\TagCloud::widget();
?>
    </div>
</div>