initfest/page-schedule.php

55 lines
1.1 KiB
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
2022-09-28 13:53:17 +03:00
if (!preg_match('/^full/', $pagename) || $year == '2021') {
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)) {
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'];
?>
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
2022-09-28 13:53:17 +03:00
if (!preg_match('/^full/', $pagename) || $year == '2021') {
echo "</div>";
2016-10-24 01:07:26 +03:00
get_sidebar();
};
?>
</section>
<?php echo do_shortcode( '[transport]' ); ?>
<?php get_footer(); ?>