Fix schedule sidebar for workshops in 2024
This commit is contained in:
parent
bbd885d3ac
commit
c969dd7146
|
@ -8,8 +8,23 @@ require("schedule-config.php");
|
||||||
?>
|
?>
|
||||||
<section class="content grid">
|
<section class="content grid">
|
||||||
<?php
|
<?php
|
||||||
|
function should_show_sidebar() {
|
||||||
|
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
|
// full schedule is not limited in only one column
|
||||||
if (!preg_match('/^full/', $pagename) || $year == '2021') {
|
if (should_show_sidebar()) {
|
||||||
echo '<div class="col-left">';
|
echo '<div class="col-left">';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -42,7 +57,7 @@ if (!empty($content)) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
if (!preg_match('/^full/', $pagename) || $year == '2021') {
|
if (should_show_sidebar()) {
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
get_sidebar();
|
get_sidebar();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue