initfest/page.php

39 lines
1.0 KiB
PHP
Raw Normal View History

2014-10-07 14:52:34 +03:00
<?php
get_header();
2014-10-09 00:22:36 +03:00
/* Some special pages (the ones describing the event, team, etc. need a special submenu */
2014-10-14 07:18:15 +03:00
if ( preg_match('/^(about|ideas-and-recommendations|feedback|team|history|volunteers)/', $pagename) ) {
2014-10-07 14:52:34 +03:00
wp_nav_menu( array( 'theme_location' => 'subnav-menu', 'container_class' => 'content subnav cf' ) );
2014-10-09 00:22:36 +03:00
}
2014-10-07 17:02:23 +03:00
2014-10-16 19:29:43 +03:00
if ( preg_match('/^(schedule|programa|speakers|halls|workshop)/', $pagename) ) {
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
}
echo '<div class="separator"></div>';
2014-10-07 17:02:23 +03:00
if (openfest_home_page()) {
$coldiv1='';
$coldiv2='';
} else {
$coldiv1='<div class="col-left">';
$coldiv2='</div>';
}
2014-10-07 14:52:34 +03:00
?>
<section class="content grid">
2014-10-07 17:02:23 +03:00
<?php echo $coldiv1; ?>
2014-10-07 14:52:34 +03:00
<h1><?php the_title(); ?></h1>
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
the_content();
endwhile;
endif;
?>
2014-10-14 18:22:19 +03:00
<?php echo $coldiv2; ?>
2014-10-07 17:02:23 +03:00
<?php if (!openfest_home_page()) get_sidebar(); ?>
2014-09-30 12:44:55 +03:00
</section>
2014-10-07 14:52:34 +03:00
<?php get_footer(); ?>