<?php if ($this->list) { ?>
<?php foreach ($this->list AS $key => $val) { ?>
<div class="mgtopic rel">
	<p><a class="glotopic umsg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic" href="topic/<?php echo $val['url_token']; ?>"><?php echo $val['topic_title']; ?></a></p>
	<?php if ($val['action_list']) { ?>
		<?php foreach ($val['action_list'] AS $action_key => $action_val) { ?>
		<p class="tx"><em><?php echo date_friendly($action_val['add_time']); ?></em><a href="question/<?php echo $action_val['question_id']; ?>#reply<?php echo $action_val['answer_count']; ?>"><?php echo $action_val['question_content']; ?></a></p>
		<?php } ?>
		<p class="tx"><a href="topic/<?php echo $val['url_token']; ?>" class="tny-cl_02">View All topics News&nbsp;&raquo;</a></p>
	<?php } ?>
	
	<a class="topicHead abs umsg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic" href="topic/<?php echo $val['url_token']; ?>"><img title="<?php echo $val['topic_title']; ?>" alt="<?php echo $val['topic_title']; ?>" class="tny-radiu5" src="<?php echo get_topic_pic_url('max', $val['topic_pic']); ?>"></a>
</div>
<?php } ?>
<?php } ?>