<?php defined('IN_YUNYECMS') or exit('No permission.'); ?><link rel="stylesheet" type="text/css" href="<?php echo ADDONS_TPL;?>static/<?php echo $onlinecfg["theme"] ;?>/css/style.css" />
<script src="<?php echo YUNYECMS_UI;?>plugins/jQuery/jquery-2.2.3.min.js"></script>
<div class="side hidden-xs">
	<ul>
	 <?php if(is_array($cat)): $i = -1; $__DATA__ = $cat;if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$vc): $mod = ($i % 2 );++$i;?>
	    <?php if($vc['index']=="qq") { ?>
		<li id="qqonline" class="qqonline"><i class="bgs1"></i>QQ咨询
		    <div class="qqBox son">
						 <?php if(is_array($vc['list'])): $i = -1; $__DATA__ = $vc['list'];if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
				                <dd class="bgs2"><span><?php echo $v["title"] ;?></span><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $v["num"] ;?>&amp;site=qq&amp;menu=yes"><?php echo $v["num"] ;?> </a></dd>
						 <?php  endforeach;  endif; ?>
			</div>
		</li>
	    <?php } elseif ($vc['index']=="phone") { ?>
		 <li class="sideetel"><i class="bgs4"></i>联系电话
			<div class="telBox son">
						 <?php if(is_array($vc['list'])): $n = -1; $__DATA__ = $vc['list'];if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($n % 2 );++$n;?>
							  <dd class="bgs<?php echo $n+1;?>"><span><?php echo $v["title"] ;?></span><?php echo $v["num"] ;?></dd>
						 <?php  endforeach;  endif; ?>
				<dd class="bgs3"><?php echo $v["summary"] ;?></dd>
			</div>
		</li>
        <?php } elseif ($vc['index']=="weixin") { ?>
		   <li class="sideewm"><i class="bgs3"></i>官方微信
		    <?php if($vc['list']) { ?>
		    <?php if(is_array($vc['list'])): $n = -1; $__DATA__ = $vc['list'];if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($n % 2 );++$n;?>
					 <div class="ewBox son" style="background-image:url(<?php echo $v["pic"] ;?>);"></div>
			<?php  endforeach;  endif; ?>
			<?php } else { ?>
			<div class="ewBox son" style="background-image:url(<?php echo $lang["qrcode"] ;?>);"></div>
			<?php } ?>
		   </li>
		<?php } elseif ($vc['index']=="feedback") { ?>
	    	<?php if(is_array($vc['list'])): $i = -1; $__DATA__ = $vc['list'];if(count($__DATA__)==0 )  echo "" ;foreach($__DATA__ as $key=>$v): $mod = ($i % 2 );++$i;?>
		 	   <li id="yuyueshow"><a href="<?php echo ROOT;?>{v.num}"><i class="bgs5"></i>在线留言</a></li>
		 	<?php  endforeach;  endif; ?>
	    <?php } ?>
	<?php  endforeach;  endif; ?>
		<li class="sidetop" onClick="goTop()"><i class="bgs6"></i>返回顶部</li>
	</ul>
</div>
<script>
	function goTop() {
		$('html,body').animate({
			scrollTop: 0
		}, 500)
	}
</script>