From fc969b0296dc84e6c734ba683f8efdf33c1a6826 Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Wed, 15 Oct 2014 17:31:41 +0300 Subject: [PATCH] add program subnav menu in the program pages, request by Yavor --- page-speakers.php | 8 +++++++- page.php | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/page-speakers.php b/page-speakers.php index aef4f36..d856ad2 100644 --- a/page-speakers.php +++ b/page-speakers.php @@ -3,7 +3,13 @@ * Template Name: Speakers */ -get_header(); ?> +get_header(); + +if ( preg_match('/^(schedule|programa|speakers|halls)/', $pagename) ) { + wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) ); +} + +?>
diff --git a/page.php b/page.php index 66b3413..56da11d 100644 --- a/page.php +++ b/page.php @@ -4,9 +4,14 @@ get_header(); /* Some special pages (the ones describing the event, team, etc. need a special submenu */ if ( preg_match('/^(about|ideas-and-recommendations|feedback|team|history|volunteers)/', $pagename) ) { wp_nav_menu( array( 'theme_location' => 'subnav-menu', 'container_class' => 'content subnav cf' ) ); - echo '
'; } +if ( preg_match('/^(schedule|programa|speakers|halls)/', $pagename) ) { + wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) ); +} + +echo '
'; + if (openfest_home_page()) { $coldiv1=''; $coldiv2='';