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

// Setup Cols
$nbCols = 2;
$contentColClass= ' col-md-7 col-lg-8';
$leftCol = $this->subMenu() . trim($this->placeholder('leftCol'));
if( empty( $leftCol )){
	$nbCols = 1;
	$contentColClass= ' col-xs-12';
}
$bodyClass= strlen($this->bodyClass())?' class="'.$this->bodyClass().'" ':'';
 ?>
 <?= $this->doctype(); ?>
 <?= $this->render('_head.phtml'); ?>
 <body <?= $bodyClass ?>>
 	<div id="wrapper">
		<?= $this->render('_sideNav.phtml') ?>

 		<header class="main">
 			<?= $this->render('_navBar.phtml') ?>


 		</header>
		<div class="container bread">
			<?= $this->navigation()->breadcrumbs()->setRenderInvisible(true)->setSeparator(' &gt; ')->setPartial('_breadcrumbs.phtml'); ?>
		</div>
 		<div id="content-wrapper">
 			<div class="container">
 				<div class="row">
 					<?php if( $nbCols == 2): ?>
 					<aside id="leftCol" class="leftCol col-md-5 col-lg-4 hidden-xs hidden-sm">
 						<h3 class="sr-only">Formlulaire de recherche</h3>
 						<?php
 						$sf = new Search_Form_SimpleSearch();
						echo $sf;
 						echo $leftCol;
 						?>
 					</aside>
 					<?php endif; ?>
 					<section id="contentCol"  class="contentCol<?= $contentColClass ?>">
 						<div class="content">
 							<?php
 							echo $this->messenger().PHP_EOL;
 							echo $this->layout()->content;
 							?>
 						</div>
 					</section>
 				</div>
 			</div>
 		</div>

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