http://wenda.wecenter.com/explore/sort_type-hot____day-1的内容,但右侧调用能够让当日热门内容一目了然。 看了下代码,但不知怎么弄了,求助大神:
<?php if ($_GET['sort_type'] == 'hot') { ?> <!-- 自定义tab切换 --> <div class="aw-tabs"> <ul class="pull-right"> <li<?php if ($_GET['sort_type'] == 'hot' AND $_GET['day'] == 30) { ?> class="active"<?php } ?>><a href="<?php if ($this->feature_info) { ?>feature/id-<?php echo $this->feature_info['id']; ?>__<?php } else { ?>home/explore/<?php } ?>sort_type-hot__<?php if ($this->category_info['id']) { ?>__category-<?php echo $this->category_info['id']; ?><?php } ?>__day-30" day="30"><?php _e('30天'); ?></a></li> <li<?php if ($_GET['sort_type'] == 'hot' AND $_GET['day'] == 7) { ?> class="active"<?php } ?>><a href="<?php if ($this->feature_info) { ?>feature/id-<?php echo $this->feature_info['id']; ?>__<?php } else { ?>home/explore/<?php } ?>sort_type-hot__<?php if ($this->category_info['id']) { ?>__category-<?php echo $this->category_info['id']; ?><?php } ?>__day-7" day="7"><?php _e('7天'); ?></a></li> <li<?php if ($_GET['sort_type'] == 'hot' AND $_GET['day'] == 1) { ?> class="active"<?php } ?>><a href="<?php if ($this->feature_info) { ?>feature/id-<?php echo $this->feature_info['id']; ?>__<?php } else { ?>home/explore/<?php } ?>sort_type-hot__<?php if ($this->category_info['id']) { ?>__category-<?php echo $this->category_info['id']; ?><?php } ?>__day-1" day="1"><?php _e('当天'); ?></a></li> </ul> </div> <!-- end 自定义tab切换 --> <?php } ?> <!-- 问题列表 --> <div class="aw-mod aw-question-box-mod"> <div class="aw-mod-body"> <div class="aw-question-list"> <?php echo $this->question_list_bit; ?> </div> </div> </div> <!-- end 问题列表 -->
这家伙很懒,还没有设置简介