Example #1
0
 */
// Bail if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
get_header();
?>

			<!-- Main -->
			<main role="main" class="content-wrap content-wrap-page baton-flex <?php 
echo baton_is_yoast_breadcrumbs_active() ? 'has-breadcrumbs' : 'no-breadcrumbs';
?>
">
				<?php 
// If the Front Page is active
if (baton_has_static_front_page()) {
    // If the Front Page Sidebar is active
    if (sds_is_front_page_sidebar_active()) {
        // Front Page Sidebar
        ?>
						<!-- Front Page Sidebar -->
						<aside class="front-page-widgets <?php 
        echo sds_is_front_page_sidebar_active() ? 'widgets' : 'no-widgets';
        ?>
">
							<?php 
        dynamic_sidebar('front-page-sidebar');
        ?>
						</aside>
						<!-- End Front Page Sidebar -->
				<?php 
Example #2
0
/**
 * This determines if a blog front page is selected.
 */
function baton_has_blog_front_page()
{
    return !baton_has_static_front_page();
}