function create_EventArticels()
{
    echo '<div id="primary" class="content-area"><main id="main" class="site-main" role="main">';
    $status = have_events_in_DB();
    if ($status == true) {
        /* Start the Loop */
        the_event();
        radiate_paging_nav();
    } else {
        get_template_part('content', 'none');
    }
    echo "</main></div>";
}
Example #2
0
        ?>

				<?php 
        /* Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('content', get_post_format());
        ?>

			<?php 
    }
    ?>

			<?php 
    radiate_paging_nav();
    ?>

		<?php 
} else {
    ?>

			<?php 
    get_template_part('content', 'none');
    ?>

		<?php 
}
?>

		</main><!-- #main -->