示例#1
0
            
            <div class="panel-heading">
                <a class="panel-title"  href="#">热门问答</a>
            </div>
            <?php 
if ($hotAsk) {
    foreach ($hotAsk as $h) {
        ?>
            <div class="col-sm-12 mt0">
                <div class="media-heading">
                <?php 
        echo html::a($h['title'], ['/main/view', 'id' => $h['id']], ['title' => $h['title']]);
        ?>
                    <i class="fa fa-trophy excellent"></i>
                <?php 
        echo html::tag('span', Answer::getCountById($h['id']), ['class' => 'badge badge-reply-count']), '回答';
        ?>
                </div>
            </div>
            		
            <?php 
    }
}
?>
     </div>
    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <div>
        <?php