 <?php
 $this->render( '_init.phtml' );
 $layout = $this->layout()->getLayout();
 $this->tplClass = $layout;

// Setup Nav 
 // $mainNav = $this->navigation()->findOneBy('ref','content_root');
 // $utilsNav = $this->navigation()->findOneBy('ref','utils_root');

// Setup Cols 

 $contentWCol = 8;
 $nbCol = 2;


 $subMenu = '';
 if( !isset($this->showSideMenu) || $this->showSideMenu == true){

 	$subMenu = $this->subMenu(array(
 		'containerClass' => "show-for-medium-up",
 		'partial' => '_submenuSide.phtml'
 		));
 }

 $leftCol = $subMenu . trim($this->placeholder('leftCol'));
 if( empty( $leftCol )) {
		// $leftCol = $this->stories()->render();
 	$contentClass = 'small-12';
 }else{

 	$contentClass = 'medium-8 large-9';
 }

 ?>
 <?= $this->doctype() ?>
 <!--[if lt IE 7]><html class="no-js ie6 oldie <?= $this->tplClass; ?>" lang="<?= $this->lang ?>"> <![endif]-->
 <!--[if IE 7]><html class="no-js ie7 oldie <?= $this->tplClass; ?>" lang="<?= $this->lang ?>"> <![endif]-->
 <!--[if IE 8]><html class="no-js ie8 oldie <?= $this->tplClass; ?>" lang="<?= $this->lang ?>"> <![endif]-->
 <!--[if IE 9]><html class="no-js ie9 <?= $this->tplClass; ?>" lang="<?= $this->lang ?>"> <![endif]-->
 <!--[if gt IE 9]><!--><html class="no-js <?= $this->tplClass; ?>" lang="<?= $this->lang ?>"><!--<![endif]-->
 <head>
 	<?php
 	echo $this->headTitle() . PHP_EOL
 	. $this->headMeta() . PHP_EOL
 	. $this->headLink() . PHP_EOL
 	. $this->headStyle() . PHP_EOL
 	. $this->headScript(). PHP_EOL; 
 	?>
 </head>
 <body>

 	<header class="main">
 		<?= $this->render('_navBar.phtml') ?>
 	</header>
 	<div class="row" >
 		<?= $this->banner( array( 'type'=>'default', 'bannerId'=>(isset( $this->page->banner )?$this->page->banner:null) ) ) ?>		
 	</div>
 	<div id="content-wrapper" class="container  border-top">
 		<div class="row">
 			<div class="small-12 columns">
 				<?= $this->navigation()->breadcrumbs()->setRenderInvisible(true)->setSeparator(' &gt; ')->setPartial('_breadcrumbs.phtml'); ?>
 			</div>
 		</div>
 		<div class="row contentRow">
 			<?php if( $leftCol): ?>
 			<aside id="leftCol" class="leftCol small-12 medium-4 large-3 columns stickem-container" >
 				<div class="stickem">
 					<?= $leftCol ?> 					
 				</div> 
 			</aside>
 			<?php endif; // leftCol ?>
 			<section id="contentCol"  class="contentCol <?=$contentClass ?> columns" >
 				<?php
 				echo $this->messenger().PHP_EOL;
 				echo $this->layout()->content;
 				?>
 			</section>
 		</div>
 	</div>

 	<?= $this->render('_footer.phtml') ?>
 </body>
 <?= $this->render( '_foot.phtml' ); ?>
 </html>