<?php foreach($this->question_list as $key => $val) {?>
<div class="q-main rel">
	<h4><a href="question/<?php echo $val['question_id']; ?>#reply<?php echo $val['answer_count']; ?>"><?php echo $val['title']; ?></a>
	
	<?php foreach ($val['topics'] AS $t_key => $t_val) { ?> <a href="topic/<?php echo $t_val['url_token']; ?>" class="glotopic umsg" data-message="&uid=<?php echo $t_val['topic_id']; ?>&card=topic"><?php echo $t_val['topic_title']; ?></a><?php } ?></h4>
    
    <p class="q_elems"><?php if ($_GET['category'] != $val['category_id'] AND $val['category_info']['title']) { ?><span class="q-banner tny-line"><em class="q_ex tny-line tny-gray"><a href="home/explore/category-<?php echo $val['category_info']['url_token']; ?>"><?php echo $val['category_info']['title']; ?></a></em></span> • <?php } ?><?php if ($val['answer_count'] > 0) { ?><?php if ($val['answer']['anonymous']) { ?><a href="javascript:;">Anonymous</a><?php } else { ?><a href="people/<?php echo $val['answer']['user_info']['url_token']; ?>"  class="umsg" data-message="&uid=<?php echo $val['answer']['user_info']['uid']; ?>&card=user"><?php echo $val['answer']['user_info']['user_name']; ?></a><?php } ?> replied  • <?php echo date_friendly($val['update_time']); ?> • <?php echo $val['focus_count']; ?> participants • <?php echo $val['view_count']; ?> views<?php } else { ?><?php if ($val['anonymous'] == 0) { ?><a href="people/<?php echo $val['user_info']['url_token']; ?>" class="umsg" data-message="&uid=<?php echo $val['user_info']['uid']; ?>&card=user"  ><?php echo $val['user_info']['user_name']; ?></a><?php } else { ?><a href="javascript:;">Anonymous</a><?php } ?> post a question • <?php echo date_friendly($val['add_time']); ?> • <?php echo $val['focus_count']; ?> participants • <?php echo $val['view_count']; ?> views <?php } ?></p>
    
    <span class="qreply abs<?php if ($val['best_answer']) { ?> tny-small q_winner<?php } ?><?php if ($val['answer_count'] == 0) { ?> q_zero<?php } ?>"><em title="This problem has now been <?php echo $val['answer_count']; ?> Replies"><?php echo $val['answer_count']; ?></em>Reply</span>
    
    <?php if ($val['answer_count'] > 0) { ?>
    <?php if ($val['answer']['anonymous'] == 0) { ?><a class="quser alpHover abs" href="people/<?php echo $val['answer']['user_info']['url_token']; ?>"><img src="<?php echo get_avatar_url($val['answer']['user_info']['uid'], 'mid'); ?>" class="umsg" data-message="&uid=<?php echo $val['answer']['user_info']['uid']; ?>&card=user" /></a><?php } else { ?><a class="quser alpHover abs" href="javascript:;"><img src="<?php echo GET_STATIC_URL; ?>/common/avatar-mid-img.jpg" alt="Anonymous" title="Anonymous" /></a><?php } ?>
    <?php } else { ?>
    <?php if ($val['anonymous'] == 0) { ?><a class="quser alpHover abs" href="people/<?php echo $val['user_info']['url_token']; ?>"><img src="<?php echo get_avatar_url($val['user_info']['uid'], 'mid'); ?>" class="umsg" data-message="&uid=<?php echo $val['user_info']['uid']; ?>&card=user" /></a><?php } else { ?><a class="quser alpHover abs" href="javascript:;"><img src="<?php echo GET_STATIC_URL; ?>/common/avatar-mid-img.jpg" alt="Anonymous" title="Anonymous" /></a><?php } ?>
    <?php } ?>
</div>
<?php } ?>