initfest/schedule-config.php

24 lines
691 B
PHP
Raw Normal View History

<?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';
$siteurl = get_option('siteurl');
$year = preg_replace('%.*/([0-9]*)$%', '\1', $siteurl);
$sched_config = getSchedConfig($year);
2017-10-20 01:27:49 +03:00
$sched_config['lang'] = of_get_lang();
$data = loadData($sched_config);
if ( preg_match('/^workshop/', $pagename) ) {
$sched_config['filterEventType'] = "workshop";
} else if (!preg_match('/^full/', $pagename)) {
$sched_config['filterEventType'] = "lecture";
}
$content = parseData($sched_config, $data);