Example #1
0
"><?php 
                    echo get_the_title($feature_post->ID);
                    ?>
</a></h4>
						<?php 
                }
            }
        }
    }
}
// end top story
?>
	</div>

	<?php 
if (largo_get_active_homepage_layout() !== 'LegacyThreeColumn') {
    ?>
		<div class="sub-stories span4">
			<?php 
    $showposts = 6;
    $showposts = apply_filters('largo_homepage_topstories_post_count', $showposts);
    $substories = largo_get_featured_posts(array('tax_query' => array(array('taxonomy' => 'prominence', 'field' => 'slug', 'terms' => 'homepage-featured')), 'showposts' => $showposts, 'post__not_in' => $shown_ids));
    if ($substories->have_posts()) {
        $count = 1;
        while ($substories->have_posts()) {
            $substories->the_post();
            $shown_ids[] = get_the_ID();
            if ($count <= 3) {
                ?>
						<div <?php 
                post_class('story');
Example #2
0
 function register_active_layout()
 {
     $active = largo_get_active_homepage_layout();
     if (!empty($active) && !empty($this->layouts[$active])) {
         $this->layouts[$active]->register();
     }
 }
Example #3
0
 * @package Largo
 * @since 0.1
 */
/**
 * ======== DO NOT EDIT OR CLONE THIS FILE FOR A CHILD THEME =======
 *
 * Largo comes with a built-in homepage template system, documented in homepages/README.md
 * It's generally better to use that system than to have your child theme use its own home.php template
 */
get_header();
/*
 * Collect post IDs in each loop so we can avoid duplicating posts
 * and get the theme option to determine if this is a two column or three column layout
 */
$shown_ids = array();
$home_template = largo_get_active_homepage_layout();
$layout_class = of_get_option('home_template');
$tags = of_get_option('tag_display');
global $largo;
if ($home_template == 'LegacyThreeColumn') {
    $span_class = 'span8';
} else {
    $span_class = $largo['home_rail'] ? 'span8' : 'span12';
}
?>

<div id="content" class="stories <?php 
echo $span_class;
?>
 <?php 
echo sanitize_html_class(basename($home_template));