add new program conifg, tba label

This commit is contained in:
Vasil Kolev 2016-07-05 14:47:12 +03:00 committed by Openfest
parent 2ed2a73af4
commit df3138a09e
5 changed files with 15 additions and 6 deletions

View File

@ -342,4 +342,5 @@ if (function_exists("pll_register_string")) {
pll_register_string('normal_quality','NORMAL_QUALITY'); pll_register_string('normal_quality','NORMAL_QUALITY');
pll_register_string('high_quality','HIGH_QUALITY'); pll_register_string('high_quality','HIGH_QUALITY');
pll_register_string('all_streams','ALL_STREAMS'); pll_register_string('all_streams','ALL_STREAMS');
pll_register_string('tba','TBA');
} }

View File

@ -12,7 +12,8 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
<div class="col-left"> <div class="col-left">
<h1><?php pll_e('Програма') ?></h1> <h1><?php pll_e('Програма') ?></h1>
<?php
if (!empty($content)) { ?>
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule"> <table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
<thead> <thead>
<tr> <tr>
@ -48,6 +49,9 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
foreach ($content['fulltalks'] as $line) { foreach ($content['fulltalks'] as $line) {
echo str_replace('SPKURL', $CF['speakers_url'], $line), PHP_EOL; echo str_replace('SPKURL', $CF['speakers_url'], $line), PHP_EOL;
} }
} else {
pll_e("TBA");
}
?> ?>
</div> </div>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View File

@ -13,7 +13,7 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
<h1><?php pll_e('Лектори') ?></h1> <h1><?php pll_e('Лектори') ?></h1>
<?php <?php
if (!empty($content)) {
foreach ($content['gspk'] as $line) { foreach ($content['gspk'] as $line) {
echo $line, PHP_EOL; echo $line, PHP_EOL;
} }
@ -24,6 +24,9 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
foreach ($content['fspk'] as $line) { foreach ($content['fspk'] as $line) {
echo $line, PHP_EOL; echo $line, PHP_EOL;
} }
} else {
pll_e('TBA');
}
?> ?>
</div> </div>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>

View File

@ -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) ), $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 */ /* clarion conference ids */
$confids = array('2014' => 1, '2015' => 2); $confids = array('2014' => 1, '2015' => 2, '2016' => 3);
/* get stuff from WP and parse */ /* get stuff from WP and parse */

View File

@ -20,8 +20,8 @@ foreach ($filenames as $name => $filename) {
$json = $curl->getUrl($filename); $json = $curl->getUrl($filename);
if ($json === false) { if ($json === false) {
echo 'get failed: ', $filename, ' ', $base_url, PHP_EOL; // echo 'get failed: ', $filename, ' ', $base_url, PHP_EOL;
exit; return null;
} }
$decoded = json_decode($json, true); $decoded = json_decode($json, true);