<?php if ($this->list) { ?>
<?php foreach ($this->list AS $key => $val) { ?>
<li>
	<a data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic" class="addUser umsg" href="topic/<?php echo $val['url_token']; ?>"><img alt="<?php echo $val['topic_title']; ?>" src="<?php echo get_topic_pic_url('mid', $val['topic_pic']); ?>"></a>
	<p><span class="tny-cl_02 tny-right"><?php echo $val['discuss_count']; ?> question <?php if ($this->user_id) { ?><a class="add-attention<?php if ($val['has_focus']) { ?> cur<?php }?>" href="javascript:" onclick="focus_topic($(this), $(this).find('em'), <?php echo $val['topic_id']; ?>);"><em><?php if ($val['has_focus']) { ?>Un<?php } ?>follow</em></a><?php } ?></span><a href="topic/<?php echo $val['url_token']; ?>" class="glotopic"><?php echo $val['topic_title']; ?></a></p>
	<p class="p_txt tny-cl_03"><?php echo nl2br(utf8_substr($val['topic_description'], 0, 64, 'UTF-8', '...')); ?></p>
</li>
<?php } ?>
<?php } ?>