<? 	global $vis_language; 	
if($domainDetails != -1){ 
	for($i=0; $i<count($domainDetails); $i++) {
		if($domainDetails[$i]['domain']['domain_id'] != $operation['vis_last_domain']){ 
		?>
<div class="text-md hidden-nav-xs text-black vis_leftpanel_domain_span"  onclick="$('#vis_lf_domain_content_<? echo $domain[$i]['domain']['domain_id']; ?>').slideToggle();"><? echo $domainDetails[$i]['domain']['domain_name']; ?></div>
        <? } ?>
<nav class="nav-stacked hidden-xs" id="vis_lf_domain_content_<? echo $domain[$i]['domain']['domain_id']; ?>">
	<ul class="nav nav-main" data-ride="collapse">
		<? for($j=0; $j<count($domainDetails[$i]['category']); $j++) { ?>
		<li class="active">
			<a href="#" class="auto bg-white text-black">
			<span class="pull-right text-muted">
				<i class="vh vh-angle-down text"></i>
				<i class="vh vh-angle-up text-active"></i>
			</span>
			<span><?php if($domainDetails[$i]['category'][$j]['access_type'] == 1) {?><span title="Private" class="label vh-green-bg label-md m-t-xxs  inline " id="approve_label" style="display: block">P</span> <?php } ?><? echo (strlen($domainDetails[$i]['category'][$j]['category_name'])>25)?substr($domainDetails[$i]['category'][$j]['category_name'],0,25).".....":$domainDetails[$i]['category'][$j]['category_name'] ; ?>
			
			</span>
			</a>
			<ul class="nav bg-white">
			<?  for($k=0; $k<count($domainDetails[$i]['category'][$j]['forum']); $k++) { ?>
				<li>
					<a href="#/forums/get_topic_list/<? echo str_replace('/', ' ', $domainDetails[$i]['domain']['domain_name'].' : '.$domainDetails[$i]['category'][$j]['category_name'].' : '.$domainDetails[$i]['category'][$j]['forum'][$k]['forum_title']); ?>/<? echo $domainDetails[$i]['category'][$j]['forum'][$k]['forum_id']; ?>" class="auto dept_nav">
						<span  id="vis_forum_department_<? echo $domainDetails[$i]['category'][$j]['forum_cat_id']; ?>_status_<? echo $domainDetails[$i]['category'][$j]['forum'][$k]['forum_id']; ?>" class="badge bg-gradient pull-right font-normal text-xs"><? echo $domainDetails[$i]['category'][$j]['forum'][$k]['topic_count']; ?></span>
						<span class="m-l-md text-sm"><? echo (strlen($domainDetails[$i]['category'][$j]['forum'][$k]['forum_title'])>25)?substr($domainDetails[$i]['category'][$j]['forum'][$k]['forum_title'],0,25)."...":$domainDetails[$i]['category'][$j]['forum'][$k]['forum_title'];
						?></span>
					</a>
				</li>
			<? }//for k ?>
			</ul>
		</li>
		<div class="line dk hidden-nav-xs"></div>
		<? }//for j
?>
	</ul>
</nav>
<? }//for i 
if($load_more_lp_dept != ''){ ?>        
	<div id="load_more_lp_dept" onclick="javascript:load_more_lp_dept(<?= $load_more_lp_dept; ?>,'<?= $last_domain_id;?>');">
		<div class="text-sm hidden-nav-xs text-black vis_leftpanel_domain_span"  style="text-transform: none;
font-weight: normal; text-align: right;">
			<span data-loading-text="Loading..."><?= $vis_language['TXTLOADMORE'];?></span>
		</div>
	</div>
	<? } 
}
?>
