<?php
$this->utilNav = $this->navigation()->findOneBy('ref','utils_root');
$this->mainNav = $this->navigation()->findOneBy('ref','content_root');
//$this->prodNav = $this->navigation()->findOneBy('ref','products');

$this->mainNavOpt = array(
  'minDepth' => 0, 
  'maxDepth' => 0, 
  'renderParents' => false, 
  'renderInvisible'=>false , 
  'escape' => false ,
  'ulClass'=>'nav'
) ;

$this->utilNavOpt = array_merge($this->mainNavOpt, array('minDepth' => 0, 'maxDepth' => 0) );
$this->bcNavOpt   = array_merge($this->mainNavOpt, array('minDepth' => 0, 'maxDpeth' => 10, 'onlyActiveBranch'=>true,'ulClass'=>'breadcrumbs'));
$headContent = trim($this->placeholder('headContent'));

?>
<div class="container-fluid">
<header class="main">
    
    <a href="<?= $this->serverUrl() ?>" class="brand"><h1><?= $this->domain()->getTitle(); ?></h1></a>
    <nav class="utils">
      <?php echo $this->navigation()->menu()->setRenderInvisible(true)->setMaxDepth(1)->renderMenu($this->utilNav,$this->utilNavOpt); ?>
    </nav>
    
</header>
</div>
<?php if($this->layout() != 'home') : ?>
<div class="container-fluid">
  
<?= $this->navigation()->breadcrumbs()->setRenderInvisible(true)->setPartial('partials/public/breadcrumbs.phtml'); ?>
</div>
<?php endif; ?>

   