use the new style program
This commit is contained in:
parent
dbbdb20b61
commit
49e25053e0
|
@ -3,58 +3,54 @@
|
||||||
get_header();
|
get_header();
|
||||||
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
|
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
|
||||||
|
|
||||||
require("schedule-config.php");
|
|
||||||
// REENABLE!
|
$requirePath = __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR;
|
||||||
if (!(($year=='2016') && (preg_match('/^workshop/', $pagename)))) $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php';
|
require $requirePath . 'class.SmartCurl.php';
|
||||||
//var_dump($data);
|
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);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<section class="content grid">
|
<section class="content grid">
|
||||||
<div class="col-left">
|
<div class="col-left">
|
||||||
<h1><?php pll_e('Програма') ?></h1>
|
<h1><?php pll_e('Програма') ?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (!empty($content) && !empty($content['slots'])) { ?>
|
if (!empty($content)) {
|
||||||
|
echo $content['schedule'];
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="separator"></div>
|
||||||
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
|
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
<?php
|
|
||||||
foreach ($content['halls'] as $hall_name) {
|
|
||||||
?>
|
|
||||||
<td><?php echo htmlspecialchars($hall_name[$CF['lang']]); ?></td>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
foreach ($content['lines'] as $line) {
|
echo $content['legend'], PHP_EOL;
|
||||||
echo str_replace('SPKURL', $CF['speakers_url'], $line), PHP_EOL;
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<table cellpadding="0" cellspacing="0" class="schedule schedule-legend">
|
|
||||||
<tbody>
|
|
||||||
<?php
|
<?php
|
||||||
foreach ($content['legend'] as $line) {
|
echo $content['fulltalks'];
|
||||||
echo $line, PHP_EOL;
|
echo $content['gspk'];
|
||||||
}
|
echo $content['fspk'];
|
||||||
?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<?php
|
|
||||||
foreach ($content['fulltalks'] as $line) {
|
|
||||||
echo str_replace('SPKURL', $CF['speakers_url'], $line), PHP_EOL;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
pll_e("TBA");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php get_sidebar(); ?>
|
<?php
|
||||||
|
get_sidebar();
|
||||||
|
?>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<?php echo do_shortcode( '[transport]' ); ?>
|
<?php echo do_shortcode( '[transport]' ); ?>
|
||||||
|
|
Loading…
Reference in New Issue