initfest/page-schedule.php

59 lines
1.2 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
2016-10-24 01:07:26 +03:00
$requirePath = __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR;
require $requirePath . 'class.SmartCurl.php';
require $requirePath . 'config.php';
require $requirePath . 'load.php';
require $requirePath . 'parse.php';
$sched_config = getSchedConfig(date('Y'));
$data = loadData($sched_config);
if ( preg_match('/^workshop/', $pagename) ) {
$sched_config['filterEventType'] = "workshop";
} else {
$sched_config['filterEventType'] = "lecture";
}
$content = parseData($sched_config, $data);
?>
2015-10-19 12:04:20 +03:00
<section class="content grid">
<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'];
}
2015-10-20 01:14:42 +03:00
?>
2016-10-24 01:07:26 +03:00
</div>
<?php
2016-10-24 01:07:26 +03:00
get_sidebar();
?>
</section>
<?php echo do_shortcode( '[transport]' ); ?>
<?php get_footer(); ?>