siteSidebar();
if (strpos($out, 'plugin-search') !== false) {
$sidebarSearchHtml .= $out;
} else {
// Mark the navigation / pages plugin so its list can be
// shuffled client-side (see the script near the body end).
if (strpos($out, 'plugin-navigation') !== false || strpos($out, 'plugin-pages') !== false) {
$out = '
' . $out . '
';
}
$sidebarOtherHtml .= $out;
}
}
}
// The hero (and the relocated search) only appear on the blog front page.
$heroVisible = ($WHERE_AM_I === 'home' && Paginator::currentPage() == 1);
?>
viewing a single page/post
// "home" -> viewing the front page
if ($WHERE_AM_I == 'page') {
include(THEME_DIR_PHP.'page.php');
} else {
include(THEME_DIR_PHP.'home.php');
}
?>