move this to the new model schedule
This commit is contained in:
parent
2cb42a34db
commit
dd8e76cb76
|
@ -3,10 +3,17 @@
|
||||||
get_header();
|
get_header();
|
||||||
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
|
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);
|
|
||||||
?>
|
?>
|
||||||
<section class="content grid">
|
<section class="content grid">
|
||||||
<div class="col-left">
|
<div class="col-left">
|
||||||
|
@ -14,16 +21,11 @@ $content = require __DIR__ . DIRECTORY_SEPARATOR . 'schedule' . DIRECTORY_SEPARA
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if (!empty($content)) {
|
if (!empty($content)) {
|
||||||
foreach ($content['gspk'] as $line) {
|
echo $content['gspk'];
|
||||||
echo $line, PHP_EOL;
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
<?php
|
<?php
|
||||||
foreach ($content['fspk'] as $line) {
|
echo $content['fspk'];
|
||||||
echo $line, PHP_EOL;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
pll_e('TBA');
|
pll_e('TBA');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue