depth() == 1) { $baseSec = $page; if ( $page->isVisible() && $baseSec->hasVisibleChildren() && $page->template() != 'blog' ) { $subnav = true; } }else if ($page->depth() == 2) { $baseSec = $page->parent(); if ( $page->isVisible() && $baseSec->hasVisibleChildren() && $page->template() != 'blogarticle' ) { $subnav = true; } } ?>