<?php TPL::output('global/header.tpl.htm'); ?>

<div class="tny-basic main tny-clear ">
	<h3 class="trends-H3  tny-gloCor special_top special_hx">Topic:<?php echo $this->feature_info['title']; ?></h3>
  		 
	<?php if ($this->feature_info['icon']) { ?>
	<div class="special_top special_imgs" style="background:url(<?php echo get_feature_pic_url('max', $this->feature_info['icon']); ?>) no-repeat;"></div>
	<?php } ?>
         
	<div class="tny-left lsidebar noBg ">
    	<div class="b_restrain">
		<h3 class="trends-H3 qAll rel content-H3 ">
			<p class="navC abs" id="hot_question_control"><a href="javascript:;" onclick="get_hot_question($(this), 30);">30 days</a><a class="v_more tny-right" href="javascript:;" onclick="get_hot_question($(this), 7);">7 days</a><a href="javascript:;" class="cur" onclick="get_hot_question($(this), 0);">All questions</a></p>
			Popular answer
		</h3>
		
		<div id="hot_question_list"></div>
		</div>
        
		<div class="tny-hide b_restrain special_mg" id="c_best">
			<h3 class="trends-H3 qAll rel content-H3 tny-pdtop30">Best reply</h3>
			<div class="elem_parents" id="c_best_list"></div>
		</div>
		
       <div class="b_restrain special_mg">
		<h3 class="trends-H3 qAll rel content-H3 tny-pdtop30"><p class="navC abs" id="feature_dynamic"><a href="javascript:;" rel="unresponsive">Unanswered</a><a href="javascript:;" class="cur" rel="all">All questions</a></p>Feature action</h3>
		
		<div class="elem_parents" id="c_all_list"></div>
		
		<p id="all-more"><a class="ajax-more" href="javascript:;">Show More</a></p>
        </div>
	</div>

	<div class="rsidebar special_apTop">
		<div class="interest-user topic_u bbdr">
			<h3>The topics included <span class="tny-blue"><?php echo $this->feature_info['topic_count']; ?></span> By Subject</h3>
			<?php if (is_array($this->sidebar_hot_topics)) { ?>
			<?php foreach($this->sidebar_hot_topics AS $key => $val) {?>
			<p class="add_ls">
				<a href="topic/<?php echo $val['url_token']; ?>" class="addUser" ><img class="umsg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic" title="<?php echo $val['topic_title']; ?>" alt="<?php echo $val['topic_title']; ?>" src="<?php echo get_topic_pic_url('mid', $val['topic_pic']); ?>"></a>
				<a href="topic/<?php echo $val['url_token']; ?>" class="umsg" data-message="&uid=<?php echo $val['topic_id']; ?>&card=topic"><span class="glotopic"><?php echo $val['topic_title']; ?></span></a>
				<span class="add_gray">The topic under <?php echo $val['discuss_count'];?> question</span>
			</p>
			<?php } ?>
			<?php } ?>
		</div>
	</div>
</div>

<?php if ($this->feature_info['css']) { ?>
<style type="text/css">
<?php echo $this->feature_info['css']; ?>
</style>
<?php } ?>

<script type="text/javascript">
	var FEATURE_ID = <?php echo $this->feature_info['id']; ?>;
</script>

<?php TPL::output('global/footer.tpl.htm'); ?>