add new program conifg, tba label
This commit is contained in:
parent
2ed2a73af4
commit
df3138a09e
|
@ -342,4 +342,5 @@ if (function_exists("pll_register_string")) {
|
|||
pll_register_string('normal_quality','NORMAL_QUALITY');
|
||||
pll_register_string('high_quality','HIGH_QUALITY');
|
||||
pll_register_string('all_streams','ALL_STREAMS');
|
||||
pll_register_string('tba','TBA');
|
||||
}
|
||||
|
|
|
@ -12,7 +12,8 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
|
|||
<div class="col-left">
|
||||
<h1><?php pll_e('Програма') ?></h1>
|
||||
|
||||
|
||||
<?php
|
||||
if (!empty($content)) { ?>
|
||||
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -48,6 +49,9 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
|
|||
foreach ($content['fulltalks'] as $line) {
|
||||
echo str_replace('SPKURL', $CF['speakers_url'], $line), PHP_EOL;
|
||||
}
|
||||
} else {
|
||||
pll_e("TBA");
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php get_sidebar(); ?>
|
||||
|
|
|
@ -13,7 +13,7 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
|
|||
<h1><?php pll_e('Лектори') ?></h1>
|
||||
|
||||
<?php
|
||||
|
||||
if (!empty($content)) {
|
||||
foreach ($content['gspk'] as $line) {
|
||||
echo $line, PHP_EOL;
|
||||
}
|
||||
|
@ -24,6 +24,9 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
|
|||
foreach ($content['fspk'] as $line) {
|
||||
echo $line, PHP_EOL;
|
||||
}
|
||||
} else {
|
||||
pll_e('TBA');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php get_sidebar(); ?>
|
||||
|
|
|
@ -9,11 +9,12 @@ $CF['lang'] = pll_current_language('slug');
|
|||
|
||||
|
||||
$hall_defs = array( '2014' => array('lectures' => array(1, 2, 3), 'workshops' => array(4, 5), 'all' => array(1, 2, 3, 4, 5) ),
|
||||
'2015' => array('lectures' => array(6, 7, 8), 'workshops' => array(9), 'all' => array(6, 7, 8, 9) )
|
||||
'2015' => array('lectures' => array(6, 7, 8), 'workshops' => array(9), 'all' => array(6, 7, 8, 9) ),
|
||||
'2016' => array('lectures' => array(6, 7), 'workshops' => array(8, 9), 'all' => array(6, 7, 8, 9) )
|
||||
);
|
||||
|
||||
/* clarion conference ids */
|
||||
$confids = array('2014' => 1, '2015' => 2);
|
||||
$confids = array('2014' => 1, '2015' => 2, '2016' => 3);
|
||||
|
||||
|
||||
/* get stuff from WP and parse */
|
||||
|
|
|
@ -20,8 +20,8 @@ foreach ($filenames as $name => $filename) {
|
|||
$json = $curl->getUrl($filename);
|
||||
|
||||
if ($json === false) {
|
||||
echo 'get failed: ', $filename, ' ', $base_url, PHP_EOL;
|
||||
exit;
|
||||
// echo 'get failed: ', $filename, ' ', $base_url, PHP_EOL;
|
||||
return null;
|
||||
}
|
||||
|
||||
$decoded = json_decode($json, true);
|
||||
|
|
Loading…
Reference in New Issue