initfest/page-schedule.php

53 lines
982 B
PHP
Raw Normal View History

<?php
/* Template Name: Schedule */
get_header();
2015-10-22 13:22:45 +03:00
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
2015-10-19 21:14:48 +03:00
require("schedule-config.php");
2016-10-24 01:07:26 +03:00
?>
2015-10-19 12:04:20 +03:00
<section class="content grid">
<?php
// full schedule is not limited in only one column
if (!preg_match('/^full/', $pagename)) {
echo '<div class="col-left">';
}
?>
2015-10-20 19:22:05 +03:00
<h1><?php pll_e('Програма') ?></h1>
2015-10-19 12:04:20 +03:00
2016-07-05 14:47:12 +03:00
<?php
2016-10-24 01:07:26 +03:00
if (!empty($content)) {
echo $content['schedule'];
?>
2016-10-24 01:07:26 +03:00
<div class="separator"></div>
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
<tbody>
<?php
2016-10-24 01:07:26 +03:00
echo $content['legend'], PHP_EOL;
?>
2016-10-24 01:07:26 +03:00
</tbody>
</table>
<div class="separator"></div>
2015-10-20 01:14:42 +03:00
<?php
2016-10-24 01:07:26 +03:00
echo $content['fulltalks'];
echo $content['gspk'];
echo $content['fspk'];
2018-09-11 17:08:39 +03:00
} else {
echo "TBA";
2016-10-24 01:07:26 +03:00
}
2015-10-20 01:14:42 +03:00
?>
<?php
if (!preg_match('/^full/', $pagename)) {
echo "</div>";
2016-10-24 01:07:26 +03:00
get_sidebar();
};
?>
</section>
<?php echo do_shortcode( '[transport]' ); ?>
<?php get_footer(); ?>