<link href="catalog/template/beststoreitems/css/information.css" rel="stylesheet" type="text/css"/>
<div class="knowledge_box">
    <div class="page-title-wrap container"><h1><?php echo $knowledge_base_detail['title']?></h1></div>
    <div class="main container">
        <div class="row">
            <!--left-->
            <div class="col-sm-6 side_bg left"></div>
            <div class="col-left col-sm-6 sidebar f-left">
                <div class="sidebar_lists">
               <!--<?php if(is_array($knowledge_base_list)&&isset($knowledge_base_detail)&&($knowledge_base_detail['show_left']==1)){?>
                    <h3 class="title"><a href="/index.php?controller=knowledge_base">Help Center</a></h3>-->
                                             
                        <?php foreach ($knowledge_base_list as $v){?>
                            <ul class="sidebar_list">
                                <h3><?php echo $v['title']?></h3>
                                <?php foreach($v['child'] as $vc){?>
                                <li <?php if(isset($knowledge_id)&&$vc['knowledge_id']==$knowledge_id) echo 'style=""'?>><a  href="/index.php?controller=knowledge_base&knowledge_id=<?php echo $vc['knowledge_id']?>"><?php echo $vc['title']?><i class="icon-mail"></i></a></li>
                                <?php }?>
                            </ul>
                        <?php }?>       
               		<?php }?>
            	</div>	
            </div>
            
            <!--right-->
            <div class="col-main col-sm-18 f-right">
                <div class="std">
                    <?php if(isset($knowledge_base_detail)){?>
                    <?php echo $knowledge_base_detail['content']?>
                    <?php }else {?>
                      <div class="heading">Customer Service Express</div>
                         <?php if(is_array($knowledge_base_list)){?>
                         <?php foreach ($knowledge_base_list as $v){?>
                           <div class="helpList">
                                <h3><?php echo $v['title']?></h3>
                                <ol>
                                    <?php foreach($v['child'] as $vc){?>
                                    <li><a href="/index.php?controller=knowledge_base&knowledge_id=<?php echo $vc['knowledge_id']?>"><?php echo $vc['title']?></a></li>
                                     <?php }?>
                                </ol>
                            </div>
                         <?php }?>
                    	<?php }?>
                </div>
            </div>
            <?php }?>       
          </div>
        <!--helpRight end-->
        </div>
    </div>
</div></div>