示例#1
0
  <li class="list-group-item">
		<div class="text-center">
		<p><?php 
    echo Html::a('现在注册', ['site/signup'], ['class' => 'btn btn-primary btn-sm']);
    ?>
</p>
		已注册用户请  <?php 
    echo Html::a('登录', ['site/login']);
    ?>
		</div>
	</li>
</ul>
<?php 
}
if (intval($settings['cache_enabled']) === 0 || $this->beginCache('f-index-right', ['duration' => intval($settings['cache_time']) * 60])) {
    $hotTopics = Topic::getHotTopics();
    if (!empty($hotTopics)) {
        ?>
<ul class="list-group sf-box">
  <li class="list-group-item gray">24小时内热议主题</li>
<?php 
        foreach ($hotTopics as $ht) {
            echo '<li class="list-group-item">', Html::a(Html::encode($ht['title']), ['topic/view', 'id' => $ht['id']]), '</li>';
        }
        ?>
</ul>
<?php 
    }
    $siteinfo = Siteinfo::getSiteInfo();
    if (!empty($siteinfo)) {
        ?>