$hide_child_nav = $c->getCollectionAttributeValue('hide_child_nav'); if (!$hide_child_nav) { $a = new GlobalArea('Product child pages'); $a->setBlockWrapperStart('<nav class="child-nav" id="child-nav">'); $a->setBlockWrapperEnd('</nav>'); if ($c->getMasterCollectionID() != $c->getCollectionID()) { $a->disableControls(); } $a->display(); } // only show sibling nav if attribute NOT set in page properties $hide_sibling_nav = $c->getCollectionAttributeValue('hide_sibling_nav'); if (!$hide_sibling_nav) { $a = new GlobalArea('Product sibling pages'); $a->setBlockWrapperStart('<nav class="child-nav" id="child-nav">'); $a->setBlockWrapperEnd('</nav>'); if ($c->getMasterCollectionID() != $c->getCollectionID()) { $a->disableControls(); } $a->display(); } ?> <?php $as = new Area('Sidebar'); $a->setBlockWrapperStart('<div>'); $a->setBlockWrapperEnd('</div>'); $as->display($c); ?> </div> <!-- .right-col --> <?php // 2 cols