  <?php 
 $this->language->load('common/extra_oc_lang');
?>      
  <div class="side-nav-categories">
        <div class="block-title"> <?php echo $heading_title; ?></div>
        <!--block-title-->
        <!-- BEGIN BOX-CATEGORY -->
        <div class="box-content box-category">
         <ul class="accordion box-category ">
      <?php foreach ($categories as $category) { ?>
      <li <?php if ($category['children']){?>  class="parent <?php if($category['category_id']==$_REQUEST['path']){ ?>active <?php } ?>" <?php } ?> >
        <?php if ($category['category_id'] == $category_id) { ?>
        <a href="<?php echo $category['href']; ?>" class="active"><?php echo $category['name']; ?></a>
        <?php } else { ?>
        <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
        <?php } ?>
        <?php if ($category['children']) { ?>
        <ul>
          <?php foreach ($category['children'] as $child) { ?>
          <li >
            <?php if ($child['category_id'] == $child_id) { ?>
            <a href="<?php echo $child['href']; ?>" class="active"> - <?php echo $child['name']; ?></a>
            <?php } else { ?>
            <a href="<?php echo $child['href']; ?>"> - <?php echo $child['name']; ?></a>
            <?php } ?>
            
           
          </li>
          <?php } ?>
        </ul>
        <?php } ?>
         
      </li>
      <?php } ?>
    </ul>
        </div>
        <!--box-content box-category-->
      </div>


