Beispiel #1
0
<?php

/**
 * Featured Post Slider
 *
 */
// Get our Featured Content posts
$featured_posts = glades_get_featured_content();
// Set loop count
$loop_count = 1;
?>
		
	<div id="featured-content" class="clearfix">

		<?php 
// Display Featured Content
foreach ($featured_posts as $post) {
    setup_postdata($post);
    // Display first featured post (big)
    if (isset($loop_count) and $loop_count == 1) {
        ?>
			
			<div class="featured-content-left">
	
				<div class="featured-post-wrap clearfix">
				
					<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
Beispiel #2
0
function glades_has_featured_content()
{
    return !is_paged() && (bool) glades_get_featured_content();
}