From 6aac03d5fba354f2c4251eb36113ffca6d90896a Mon Sep 17 00:00:00 2001 From: Openfest Date: Mon, 24 Oct 2016 00:35:05 +0300 Subject: [PATCH] last mods --- page-schedule.php | 3 ++- schedule/parse.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/page-schedule.php b/page-schedule.php index 702f3e6..fe7dce4 100644 --- a/page-schedule.php +++ b/page-schedule.php @@ -4,7 +4,8 @@ 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'; +// REENABLE! +if (!(($year=='2016') && (preg_match('/^workshop/', $pagename)))) $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARATOR . 'parse.php'; //var_dump($data); ?>
diff --git a/schedule/parse.php b/schedule/parse.php index 6ab9345..913e051 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -59,7 +59,7 @@ foreach ($data['slots'] as $slot_id => $slot) { $eid = &$slot['event_id']; $event = &$data['events'][$eid]; - if (is_null($eid)) { + if (is_null($eid) || $event['event_type_id']==6) { $lines[] = 'TBA'; } else {