Merge branch 'master' of https://github.com/initLab/initfest into schedule-rewrite

# Conflicts:
#	schedule/load.php
This commit is contained in:
Vencislav Atanasov 2016-10-24 00:46:48 +03:00
commit af0f5020ec
12 changed files with 21 additions and 8 deletions

View File

@ -228,7 +228,7 @@ h3 small {
/* Navigation */
nav {
position: relative;
height: 84px;
height: 81px;
background: url("../img/navbg.jpg") repeat-x;
}
nav ul {

View File

@ -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');
}

View File

@ -35,6 +35,6 @@
if(openfest_home_page()){
$blog_details = get_blog_details();
$blog_slug = str_replace('/', '', $blog_details->path);
echo '<section class="banner cf"><img src="'.get_template_directory_uri().'/img/banner-'.of_get_lang().'-'. $blog_slug .'.png" alt="" /></section>';
echo '<section class="banner cf" style="background: url(\''.get_template_directory_uri().'/img/banner-back-'.$blog_slug.'.jpg\') top repeat-x;padding: 0.2em 0 0 0;height: 258px;"><img src="'.get_template_directory_uri().'/img/banner-'.of_get_lang().'-'. $blog_slug .'.png" alt="" /></section>';
}
?>

BIN
img/banner-back-2014.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
img/banner-back-2015.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
img/banner-back-2016.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
img/banner-bg-2016.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
img/banner-en-2016.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -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
<div class="col-left">
<h1><?php pll_e('Програма') ?></h1>
<?php
if (!empty($content) && !empty($content['slots'])) { ?>
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
<thead>
<tr>
@ -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");
}
?>
</div>
<?php get_sidebar(); ?>

View File

@ -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(); ?>

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) ),
'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 */

View File

@ -86,8 +86,13 @@ class SmartCurl {
$response = curl_exec($this->ch);
if ($response === false) {
if (file_exists($cache_file)) {
return file_get_contents($cache_file);
}
else {
return false;
}
}
//var_dump(curl_getinfo($this->ch, CURLINFO_HEADER_OUT));
//var_dump($response);