add program subnav menu in the program pages, request by Yavor

This commit is contained in:
Vasil Kolev 2014-10-15 17:31:41 +03:00 committed by Openfest
parent 1216ec2f0a
commit fc969b0296
2 changed files with 13 additions and 2 deletions

View File

@ -3,7 +3,13 @@
* Template Name: Speakers * 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' ) );
}
?>
<div class="separator"></div> <div class="separator"></div>
<section class="content grid"> <section class="content grid">
<div class="col-left"> <div class="col-left">

View File

@ -4,9 +4,14 @@ get_header();
/* Some special pages (the ones describing the event, team, etc. need a special submenu */ /* 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) ) { 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' ) ); wp_nav_menu( array( 'theme_location' => 'subnav-menu', 'container_class' => 'content subnav cf' ) );
echo '<div class="separator"></div>';
} }
if ( preg_match('/^(schedule|programa|speakers|halls)/', $pagename) ) {
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
}
echo '<div class="separator"></div>';
if (openfest_home_page()) { if (openfest_home_page()) {
$coldiv1=''; $coldiv1='';
$coldiv2=''; $coldiv2='';