-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpage-schedule.php
71 lines (58 loc) · 1.38 KB
/
page-schedule.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/* Template Name: Schedule */
get_header();
wp_nav_menu( array( 'theme_location' => 'footer-schedule', 'container_class' => 'content subnav cf' ) );
require("schedule-config.php");
?>
<section class="content grid">
<?php
function should_show_sidebar() {
global $year, $pagename;
if ($year === '2021') {
return true;
}
if (preg_match('/^full/', $pagename)) {
return false;
}
if ($year === '2024' && preg_match('/^workshop/', $pagename)) {
return false;
}
return true;
}
// full schedule is not limited in only one column
if (should_show_sidebar()) {
echo '<div class="col-left">';
}
?>
<h1><?php pll_e('Програма') ?></h1>
<?php
if (!empty($content)) {
echo '<p><a href="https://oldcfp.openfest.org/api/conferences/'.$sched_config['conferenceId'].'/events.ics?locale='.$lang.'">iCalendar</a></p>';
echo $content['schedule'];
?>
<div class="separator"></div>
<table cellpadding="0" cellspacing="0" style="text-align: center;" class="schedule">
<tbody>
<?php
echo $content['legend'], PHP_EOL;
?>
</tbody>
</table>
<div class="separator"></div>
<?php
echo $content['fulltalks'];
echo $content['gspk'];
echo $content['fspk'];
} else {
echo "TBA";
}
?>
<?php
if (should_show_sidebar()) {
echo "</div>";
get_sidebar();
};
?>
</section>
<?php echo do_shortcode( '[transport]' ); ?>
<?php get_footer(); ?>