cleanup, this was too ugly even for me

This commit is contained in:
Vasil Kolev 2014-10-09 00:22:36 +03:00 committed by Openfest
parent d7969d22fa
commit 877df9b2cd
1 changed files with 3 additions and 9 deletions

View File

@ -1,17 +1,11 @@
<?php <?php
get_header(); get_header();
if ( $pagename == 'about' || /* Some special pages (the ones describing the event, team, etc. need a special submenu */
$pagename == 'about-3' || if ( preg_match('/^(about|ideas-and-recommendations|feedback|team|history)/', $pagename) ) {
$pagename == 'ideas-and-recommendations' ||
$pagename == 'feedback' ||
$pagename == 'team' ||
$pagename == 'team-2' ||
$pagename == 'history' ||
$pagename == 'history-2') {
wp_nav_menu( array( 'theme_location' => 'subnav-menu', 'container_class' => 'content subnav cf' ) ); wp_nav_menu( array( 'theme_location' => 'subnav-menu', 'container_class' => 'content subnav cf' ) );
echo '<div class="separator"></div>'; echo '<div class="separator"></div>';
} }
if (openfest_home_page()) { if (openfest_home_page()) {
$coldiv1=''; $coldiv1='';