想直接在"发现,列表和下一页"显示的是内容和标题,而不是主题列表,虽然知道在模板文件里面修改,但是不知道代码怎么改?也就是全文输出.
改怎么样改呢?
<ul class="nav nav-tabs aw-reset-nav-tabs hidden-xs">
<li<?php if ($_GET['sort_type'] == 'unresponsive') { ?> class="active"<?php } ?>><a href="http://wenda.wecenter.com/explore/<?php if ($this->feature_info) { ?>feature_id-<?php echo $this->feature_info['id']; ?>__<?php } ?>category-<?php echo $this->category_info['id']; ?>__sort_type-unresponsive"><?php _e('等待回复'); ?></a></li>
<li<?php if ($_GET['sort_type'] == 'hot') { ?> class="active"<?php } ?>><a href="http://wenda.wecenter.com/explore/<?php if ($this->feature_info) { ?>feature_id-<?php echo $this->feature_info['id']; ?>__<?php } ?>category-<?php echo $this->category_info['id']; ?>__sort_type-hot__day-30" id="sort_control_hot"><?php _e('热门'); ?></a></li>
<li<?php if ($_GET['is_recommend']) { ?> class="active"<?php } ?>><a href="http://wenda.wecenter.com/explore/<?php if ($this->feature_info) { ?>feature_id-<?php echo $this->feature_info['id']; ?>__<?php } ?>category-<?php echo $this->category_info['id']; ?>__is_recommend-1"><?php _e('推荐'); ?></a></li>
<li<?php if ((!$_GET['sort_type'] OR $_GET['sort_type'] == 'new') AND !$_GET['is_recommend']) { ?> class="active"<?php } ?>><a href="http://wenda.wecenter.com/explore/<?php if ($this->feature_info) { ?>feature_id-<?php echo $this->feature_info['id']; ?>__<?php } ?><?php if ($this->category_info['id']) { ?>category-<?php echo $this->category_info['id']; ?><?php } ?>"><?php _e('最新'); ?></a></li>
<h2 class="hidden-xs"><?php if ($this->category_info) { ?><?php echo $this->category_info['title']; ?><?php } else if ($this->feature_info) { ?><?php echo $this->feature_info['title']; ?><?php } else { ?><?php _e('发现'); ?><?php } ?></h2>
阅读全文
收起全文