2015-10-19 02:04:49 +03:00
|
|
|
<?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
|
|
|
|
2016-10-24 16:22:25 +03:00
|
|
|
require("schedule-config.php");
|
2016-10-24 01:07:26 +03:00
|
|
|
|
2015-10-19 02:04:49 +03:00
|
|
|
?>
|
2015-10-19 12:04:20 +03:00
|
|
|
<section class="content grid">
|
2018-10-16 13:07:52 +03:00
|
|
|
<?php
|
2024-10-10 20:23:34 +03:00
|
|
|
function should_show_sidebar() {
|
2024-10-10 20:26:08 +03:00
|
|
|
global $year, $pagename;
|
|
|
|
|
2024-10-10 20:23:34 +03:00
|
|
|
if ($year === '2021') {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (preg_match('/^full/', $pagename)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($year === '2024' && preg_match('/^workshop/', $pagename)) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
2018-10-16 13:07:52 +03:00
|
|
|
// full schedule is not limited in only one column
|
2024-10-10 20:23:34 +03:00
|
|
|
if (should_show_sidebar()) {
|
2018-10-16 13:07:52 +03:00
|
|
|
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
|
|
|
|
2019-10-31 22:33:41 +02:00
|
|
|
|
2016-07-05 14:47:12 +03:00
|
|
|
<?php
|
2016-10-24 01:07:26 +03:00
|
|
|
if (!empty($content)) {
|
2020-10-31 10:39:42 +02:00
|
|
|
echo '<p><a href="https://cfp.openfest.org/api/conferences/'.$sched_config['conferenceId'].'/events.ics?locale='.$lang.'">iCalendar</a></p>';
|
2016-10-24 01:07:26 +03:00
|
|
|
echo $content['schedule'];
|
2015-10-19 02:04:49 +03:00
|
|
|
?>
|
2016-10-24 01:07:26 +03:00
|
|
|
|
|
|
|
|
|
|
|
<div class="separator"></div>
|
|
|
|
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
|
|
|
|
<tbody>
|
2015-10-19 02:04:49 +03:00
|
|
|
<?php
|
2016-10-24 01:07:26 +03:00
|
|
|
echo $content['legend'], PHP_EOL;
|
2015-10-19 02:04:49 +03:00
|
|
|
?>
|
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
|
|
|
?>
|
2015-10-19 02:04:49 +03:00
|
|
|
<?php
|
2024-10-10 20:23:34 +03:00
|
|
|
if (should_show_sidebar()) {
|
2018-10-16 13:07:52 +03:00
|
|
|
echo "</div>";
|
2016-10-24 01:07:26 +03:00
|
|
|
get_sidebar();
|
2018-10-16 13:07:52 +03:00
|
|
|
};
|
2015-10-19 02:04:49 +03:00
|
|
|
?>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<?php echo do_shortcode( '[transport]' ); ?>
|
|
|
|
|
|
|
|
<?php get_footer(); ?>
|