From dd8e76cb76bc10b510a4a4eebd8af3c87a259e75 Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Mon, 24 Oct 2016 16:04:13 +0300 Subject: [PATCH] move this to the new model schedule --- page-speakers.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/page-speakers.php b/page-speakers.php index 8640a90..59cb7ac 100644 --- a/page-speakers.php +++ b/page-speakers.php @@ -3,10 +3,17 @@ get_header(); wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) ); -require("schedule-config.php"); +$requirePath = __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR; +require $requirePath . 'class.SmartCurl.php'; +require $requirePath . 'config.php'; +require $requirePath . 'load.php'; +require $requirePath . 'parse.php'; +$sched_config = getSchedConfig(date('Y')); +$data = loadData($sched_config); + +$content = parseData($sched_config, $data); + -$content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php'; -//var_dump($data); ?>
@@ -14,16 +21,11 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA