如图所示:自己改了一部分代码?想要弄成知乎每个问题和文章前面的浏览数窗口的效果,结果变成了这样,代码粘贴如下,请问如何把这个%s去掉呢,当我浏览问题的时候跟浏览文章的时候完全效果一样。
<?php if ($this->posts_list) { ?>
<?php foreach($this->posts_list as $key => $val) { ?>
<div class="aw-item <?php if ($val['question_id']) { ?><?php if ($val['answer_count'] == 0) { ?>active<?php } ?><?php } else {?>article<?php } ?>" data-topic-id="<?php foreach ($val['topics'] AS $k => $v) { ?><?php echo $v['topic_id']; ?>,<?php } ?>">
<?php if ($val['anonymous'] == 0) { ?><a class="aw-user-name hidden-xs" data-id="<?php echo $val['user_info']['uid']; ?>" href="people/<?php echo $val['user_info']['url_token']; ?>" rel="nofollow"><?php if ($val['user_info']['verified']) { ?><?php if ($val['user_info']['verified'] == 'personal') { ?><i class="icon icon-v"></i><?php } else { ?><i class="icon icon-v i-ve"></i><?php } ?><?php } ?></a><?php } else { ?><a class="aw-user-name hidden-xs" href="javascript:;"></a><?php } ?>
<div class="aw-user-name hidden-ex"> <div><?php _e('%s', $val['view_count']); ?><?php _e('%s ', $val['views']); ?><div>浏览</div></div>
</div>
文件在目录explore/ajax/list.tel.html
阅读全文
收起全文