';
$featured_posts = billie_get_featured_posts();
foreach ( (array) $featured_posts as $order => $post ) :
setup_postdata( $post );
echo '
';
if ( has_post_thumbnail() ) {
$background = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'billie-featured-posts-thumb' );
echo '
';
}else{
echo '
';
}
echo '
';
echo get_theme_mod('billie_featured_headline', __('Featured','billie'));
echo '';
$time_string = '';
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$posted_on = $time_string;
echo $posted_on;
echo '
';
endforeach;
wp_reset_postdata();
echo '';
}
?>
"" OR get_theme_mod('billie_top_section2') <>"" OR get_theme_mod('billie_top_section3') <>"" ) {
$args = array('post_type' => 'page', 'orderby' => 'post__in', 'post__in' => array(get_theme_mod('billie_top_section1'), get_theme_mod('billie_top_section2'), get_theme_mod('billie_top_section3')));
query_posts($args);
while ( have_posts() ) : the_post();
get_template_part( 'content', 'page' );
endwhile;
wp_reset_query();
}
}
?>
"" OR get_theme_mod('billie_bottom_section2') <>"" OR get_theme_mod('billie_bottom_section3') <>"") {
$args = array('post_type' => 'page', 'orderby' => 'post__in', 'post__in' => array(get_theme_mod('billie_bottom_section1'), get_theme_mod('billie_bottom_section2'), get_theme_mod('billie_bottom_section3')));
query_posts($args);
while ( have_posts() ) : the_post();
get_template_part( 'content', 'page' );
endwhile;
wp_reset_query();
}
}
?>