Example #1
0
 *
 * @package ultra
 * @since ultra 0.9
 * @see https://siteorigin.com/page-builder/
 * @license GPL 2.0
 */
get_header();
?>

	<div class="container">

		<div id="primary" class="content-area">
			<main id="main" class="site-main" role="main">

				<div class="entry-content">
					<?php 
if (is_page()) {
    the_post();
    the_content();
} elseif (function_exists('siteorigin_panels_render')) {
    echo siteorigin_panels_render('home');
} else {
    echo siteorigin_panels_lite_home_render();
}
?>
				</div>
			</main><!-- #main .site-main -->
		</div><!-- #primary .content-area -->

<?php 
get_footer();
Example #2
0
/**
 * Enqueue the required styles
 */
function siteorigin_panels_lite_enqueue_styles()
{
    if (siteorigin_panels_lite_is_home()) {
        wp_enqueue_style('siteorigin-panels-lite-front', get_template_directory_uri() . '/inc/panels-lite/css/front.css', array(), SITEORIGIN_PANELS_LITE_VERSION);
        // Render this here so we can enqueue all the scripts we need early.
        global $siteorigin_panels_cache;
        if (empty($siteorigin_panels_cache[get_the_ID()])) {
            $siteorigin_panels_cache['home'] = siteorigin_panels_lite_home_render();
        }
    }
}