<? global $vis_language;  ?>
<div id="main_div">
<section  class="container m-t-md">
<div class="row">
      <div class="col-md-12">
         <section class="panel shadow-none">
		<? if($forumTopic!=-1) { 
			?>		
			<form  method="post" id="vis_forum_topic_list_form" name="vis_forum_topic_list_form">
            <div class="panel-heading b-b">
		       <? if($forumDetails['topic_access']==1 && (defined('VIS_CLIENT_ID') && VIS_CLIENT_ID!=0 && VIS_CLIENT_ID!=-1)){?><a href="?/forums/new-topic/<? echo $forumTopic[0]['forum_title'];?>/<? echo $forumTopic[0]['forum_id'];?>" class="btn btn-link btn-sm link pull-right m-t-xs vis_link_button"><?= $vis_language['TXTADDTOPIC']?></a><? } ?>   <h4 class="panel-title1"><span class="vh vh-chat vh-warning"></span>&nbsp;<? echo $forumDetails['forum_title'].' ','('.(($forumInfo['total']=='')?0:$forumInfo['total']).')'; ?></h4><br>
		       <div class="btn-group m-b-xs"> 
			       <a class="btn btn-xs btn-rounded <?php echo ($operation['vis_sorted_by'] == 'recent' || $operation['vis_sorted_by'] == '')?' btn-primary ':'btn-default'; ?>" onclick="topic_sort('recent');"><? echo $vis_language['TXTRECENT']; ?></a>  
			   </div>
			   <div class="btn-group m-b-xs">
			       <a class="btn btn-xs btn-rounded <?php echo ($operation['vis_sorted_by'] == 'popularity')?' btn-primary ':'btn-default'; ?>" onclick="topic_sort('popularity');"><? echo $vis_language['TXTPOPULAR']; ?></a>  
			   </div>
			    <div class="btn-group m-b-xs">
			       <a class="btn btn-xs btn-rounded <?php echo ($operation['vis_sorted_by'] == 'unanswer')?' btn-primary ':'btn-default'; ?>" onclick="topic_sort('unanswer');"><? echo $vis_language['TXTUNANSWERED']; ?></a>  
			   </div>
			   <div class="btn-group m-b-xs">
				   <a class="btn btn-xs btn-rounded <?php echo ($operation['vis_sorted_by'] == 'mostcommented')?' btn-primary ':'btn-default'; ?>" onclick="topic_sort('mostcommented');"><? echo $vis_language['TXTMOSTCOMMENTED']; ?></a>  
			   </div>
		       </div>
		       <? include(VIS_PATH_TEMPLATE . 'topic_list.php');?>
              </form><? } ?>         
		</section>
	</div>
  </div>
</section>  
</div>

