<?php $__env->startSection('content'); ?>

  <div class="containerOuter row">
  
    <div class="sideBar col-lg-3 hideMobile">
      <div class="header"><?php echo isset($nav_data->title) ? $nav_data->title: '';?></div>
	  <?php if( !empty($nav_data->sub_list) ):?>
      <ul>
	  	<?php foreach($nav_data->sub_list as $nav_sub): ?>
        <li><a href="<?php echo isset($nav_sub->url) ? $nav_sub->url: '#';?>" class="<?php echo $nav_data->active_id==$nav_sub->id ? 'active': '';?>"><?php echo isset($nav_sub->title) ? $nav_sub->title: '';?></a> </li>
        <?php endforeach; ?>
      </ul>
	  <?php endif;?>
    </div>
	
    <div class="pageWrap floatRight col-lg-9 col-xs-12">
      <?php if( isset($section['media_path']) && $section['media_path']!="" ):?>
      <div class="subBanner" style="display:block;"><img src="<?php echo get_ext_path_advanced($section['media_path'], $section['media_id'], 'o');?>"/></div>
	  <?php endif;?>
	  
      <div class="pageCont">
        <h1><?php echo isset($nav_data->active_nav->title) ? $nav_data->active_nav->title: '';?></h1>

<?php 
	$has_show_more = TRUE;
	$is_useful_link = FALSE;
	if( strtolower($section['title'])=='useful links' || strtolower($section['title'])=='useful link' ){
		$has_show_more = FALSE;
		$is_useful_link = TRUE;
	}
?>

<!-- Useful Links list page, please add in "Media Gallery" to the top -->
<?php if( isset($is_useful_link) && $is_useful_link ):?>
	<?php foreach($nav_data->sub_list as $sub_nav): ?>
	<?php if( isset($sub_nav->type) && $sub_nav->type=='System' ):?>
        <div class="showMoreContainer">
          <div class="showMoreCont" style="height:90px;">
            <div class="showMoreContInner">
              <h2><?php echo isset($sub_nav->title) ? $sub_nav->title : NULL?></h2>
			  
            </div>
          </div>
          <div class="btnShowMore">
            <a href="<?php echo isset($sub_nav->url) ? $sub_nav->url : '#'?>"><span class="stateMore">Please click here to view. <i class="icon icon-showMore"></i></span></a>
            <span class="stateLess">Loading <i class="icon icon-hideMore"></i></span>
          </div>
        </div>
	<?php endif;?>
	<?php endforeach; ?>
<?php endif;?>

<?php if( $has_show_more ):?>
	<?php foreach($object_list as $object): ?>
        <div class="showMoreContainer">
          <div class="showMoreCont">
            <div class="showMoreContInner">
              <h2><?php echo isset($object->title) ? $object->title : NULL?></h2>
			  <div>
              <p>
                <?php echo isset($object->summary) ? $object->summary : NULL?>
              </p>
              <?php echo isset($object->content) ? $object->content : NULL?>
			  </div>
			  
            </div>
          </div>
          <div class="btnShowMore">
            <span class="stateMore">View More <i class="icon icon-showMore"></i></span>
            <span class="stateLess">View Less <i class="icon icon-hideMore"></i></span>
          </div>
        </div>
	<?php endforeach; ?>

<?php else:?>
	<?php foreach($object_list as $object): ?>
        <div class="">
          <div class="">
            <div class="">
              <h2><?php echo isset($object->title) ? $object->title : NULL?></h2>
			  <div>
              <p>
                <?php echo isset($object->summary) ? $object->summary : NULL?>
              </p>
              <?php echo isset($object->content) ? $object->content : NULL?>
			  </div>
			  
            </div>
          </div>
        </div>
	<?php endforeach; ?>
<?php endif;?>


<?php if( isset($show_more) && $show_more ):?>
	<?php foreach($nav_data->sub_list as $sub_nav): ?>
	<?php if( isset($sub_nav->type) && $sub_nav->type=='System' ):?>
        <div class="showMoreContainer">
          <div class="showMoreCont" style="height:90px;">
            <div class="showMoreContInner">
              <h2><?php echo isset($sub_nav->title) ? $sub_nav->title : NULL?></h2>
			  
            </div>
          </div>
          <div class="btnShowMore">
            <a href="<?php echo isset($sub_nav->url) ? $sub_nav->url : '#'?>"><span class="stateMore">Please click here to view. <i class="icon icon-showMore"></i></span></a>
            <span class="stateLess">Loading <i class="icon icon-hideMore"></i></span>
          </div>
        </div>
	<?php endif;?>
	<?php endforeach; ?>
<?php endif;?>

      </div>
    </div>
  </div>


<?php $__env->stopSection(); ?>
<?php echo $__env->make('theme_imas_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>