<? global $vis_language; ?>
<section  class="container m-t-md">
   <?  if(VIS_HEAD_MENU_FORUM!= 0) { $p=0;?>
   <? if($forum_category!=-1) for($i=0;$i<count($forum_category);$i++) { ?>
   <div class="row">
      <div class="col-md-12">
         <section class="panel shadow-none">
            <div class="panel-heading b-b">
               <? if($i==0 && $forumDataChk!=-1) {?><a class="btn btn-link btn-sm link pull-right m-t-xs vis_link_button" href="?/forums/new-topic"><?= $vis_language['TXTADDTOPIC']?></a><? } ?>
               <h4 class="panel-title1"><i class="vh vh-staff-group vh-warning"></i>&nbsp;<?= $forum_category[$i]['category_name']; ?></h4>
            </div>
            <div class="panel-body">
               <div class="row">
                  <div class="col-md-12 col-sm-12">
                     <ul class="list-group no-borders m-b-n">
                        <?  if($forum_list[$i] != -1) for($j=0; $j<count($forum_list[$i]); $j++) {
                           ?>	 
                        <div class="col-md-6 col-sm-6">
                           <li class="list-group-item">
                              <span class="pull-left m-r-sm">
                              <i class="vh vh-2x vh-chat active"></i>
                              </span>			  
                              <div class="h4 clear text-ellipsis l-h">
                                 <? if($forumInfo_count[$i][$j]['total']!='') { ?>
                                 <a href="<?= ('?/forums/topic-list/'.$forum_list[$i][$j]['forum_title'].'/'.$forum_list[$i][$j]['forum_id']); ?>" title="<?= $forum_list[$i][$j]['forum_title']; ?>" class="link active"><?= $forum_list[$i][$j]['forum_title']; ?><? echo ' ('.$forumInfo_count[$i][$j]['total'].')';?></a><? } else { echo $forum_list[$i][$j]['forum_title'].' '.'(0)'; } ?>
                              </div>
                              <p><? echo $forum_list[$i][$j]['description']; ?></p>
                           </li>
                           <? $p++; ?>
                        </div>
                        <? } ?>
                     </ul>
                  </div>
               </div>
               <!-- /.row -->
            </div>
         </section>
      </div>
   </div>
   <? }  else {  ?><div class="fullMiddle m-xl text-center h4"><?= $vis_language['TXTNOTHINGTODISPLAY']; ?></div><? }}?>
			
</section>


