initfest/page-schedule.php

63 lines
1.3 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");
2015-10-19 21:14:48 +03:00
$content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php';
//var_dump($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
if (!empty($content)) { ?>
2015-10-19 11:50:48 +03:00
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
<thead>
<tr>
<td>&nbsp;</td>
<?php
foreach ($content['halls'] as $hall_name) {
?>
2015-10-23 17:27:02 +03:00
<td><?php echo htmlspecialchars($hall_name[$CF['lang']]); ?></td>
<?php
}
?>
</tr>
</thead>
<tbody>
<?php
foreach ($content['lines'] as $line) {
echo str_replace('SPKURL', $CF['speakers_url'], $line), PHP_EOL;
}
?>
</tbody>
</table>
<div class="separator"></div>
2015-10-20 01:14:42 +03:00
<table cellpadding="0" cellspacing="0" class="schedule schedule-legend">
<tbody>
<?php
foreach ($content['legend'] as $line) {
echo $line, PHP_EOL;
}
?>
</tbody>
</table>
<?php
foreach ($content['fulltalks'] as $line) {
echo str_replace('SPKURL', $CF['speakers_url'], $line), PHP_EOL;
}
2016-07-05 14:47:12 +03:00
} else {
pll_e("TBA");
}
?>
</div>
2015-10-19 12:04:20 +03:00
<?php get_sidebar(); ?>
</section>
<?php echo do_shortcode( '[transport]' ); ?>
<?php get_footer(); ?>