* E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package candy */ get_header(); ?> <?php if (!is_front_page()) { $page = new stdClass(); $page->ID = get_option('page_for_posts'); $agni_slider = ''; $agni_slides_post_id = get_post_meta($page->ID, 'page_agni_sliders', true); foreach ((array) $agni_slides_post_id as $key => $slider) { $agni_slider .= agni_slider($slider); } echo $agni_slider; echo agni_page_header($page); } ?> <?php global $candy_options; ?> <div id="primary" class="blog content-area"> <main id="main" class="blog-container container<?php if ($candy_options['blog-layout'] == '3') { echo '-fluid'; } ?>
<?php /** * @package candy */ ?> <?php global $candy_options; ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <?php echo agni_slider($post->ID); ?> </article><!-- #post-## -->