diff --git a/css/styles.css b/css/styles.css index d440b9a..f557c67 100644 --- a/css/styles.css +++ b/css/styles.css @@ -228,7 +228,7 @@ h3 small { /* Navigation */ nav { position: relative; - height: 84px; + height: 81px; background: url("../img/navbg.jpg") repeat-x; } nav ul { diff --git a/functions.php b/functions.php index 4cc3b5a..41c624f 100644 --- a/functions.php +++ b/functions.php @@ -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'); } diff --git a/header.php b/header.php index 35b9be6..fdacd77 100644 --- a/header.php +++ b/header.php @@ -35,6 +35,6 @@ if(openfest_home_page()){ $blog_details = get_blog_details(); $blog_slug = str_replace('/', '', $blog_details->path); - echo ''; + echo ''; } ?> diff --git a/img/banner-back-2014.jpg b/img/banner-back-2014.jpg new file mode 100644 index 0000000..3fef1c2 Binary files /dev/null and b/img/banner-back-2014.jpg differ diff --git a/img/banner-back-2015.jpg b/img/banner-back-2015.jpg new file mode 100644 index 0000000..3fef1c2 Binary files /dev/null and b/img/banner-back-2015.jpg differ diff --git a/img/banner-back-2016.jpg b/img/banner-back-2016.jpg new file mode 100644 index 0000000..a23f119 Binary files /dev/null and b/img/banner-back-2016.jpg differ diff --git a/img/banner-bg-2016.png b/img/banner-bg-2016.png new file mode 100644 index 0000000..281f0b7 Binary files /dev/null and b/img/banner-bg-2016.png differ diff --git a/img/banner-en-2016.png b/img/banner-en-2016.png new file mode 100644 index 0000000..015df28 Binary files /dev/null and b/img/banner-en-2016.png differ diff --git a/page-schedule.php b/page-schedule.php index 77f5cda..702f3e6 100644 --- a/page-schedule.php +++ b/page-schedule.php @@ -4,7 +4,6 @@ get_header(); wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) ); require("schedule-config.php"); - $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php'; //var_dump($data); ?> @@ -12,7 +11,8 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA

- + @@ -48,6 +48,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"); +} ?> diff --git a/page-speakers.php b/page-speakers.php index d4deb25..8640a90 100644 --- a/page-speakers.php +++ b/page-speakers.php @@ -13,7 +13,7 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA

diff --git a/schedule-config.php b/schedule-config.php index 0034ff9..af37ac5 100644 --- a/schedule-config.php +++ b/schedule-config.php @@ -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(10, 11, 12), 'workshops' => array(12, 13, 14), 'all' => array(10, 11, 12, 13, 14) ) ); /* clarion conference ids */ -$confids = array('2014' => 1, '2015' => 2); +$confids = array('2014' => 1, '2015' => 2, '2016' => 3); /* get stuff from WP and parse */ diff --git a/schedule/class.SmartCurl.php b/schedule/class.SmartCurl.php index 278446a..455f6c6 100644 --- a/schedule/class.SmartCurl.php +++ b/schedule/class.SmartCurl.php @@ -86,7 +86,12 @@ class SmartCurl { $response = curl_exec($this->ch); if ($response === false) { - return false; + if (file_exists($cache_file)) { + return file_get_contents($cache_file); + } + else { + return false; + } } //var_dump(curl_getinfo($this->ch, CURLINFO_HEADER_OUT));