File: /volume1/web/wp-content/themes/virtue/home.php
<?php
/**
* @hooked virtue_page_title - 20
*/
do_action( 'virtue_page_title_container' );
global $virtue_sidebar;
$virtue_sidebar = true;
$homeid = get_option( 'page_for_posts' );
$fullclass = '';
if( get_post_meta( $homeid, '_kad_blog_summery', true ) == 'full' ) {
$summary = 'full';
$postclass = "single-article fullpost";
} else {
$summary = 'normal';
$postclass = 'postlist';
} ?>
<div id="content" class="container">
<div class="row">
<div class="main <?php echo esc_attr( virtue_main_class() ); ?> <?php echo esc_attr( $postclass ) .' '. esc_attr( $fullclass ); ?>" role="main">
<?php if ( !have_posts() ) : ?>
<div class="alert">
<?php esc_html_e( 'Sorry, no results were found.', 'virtue' ); ?>
</div>
<?php get_search_form();
endif;
if( $summary == 'full' ){
while (have_posts()) : the_post();
get_template_part( 'templates/content', 'fullpost' );
endwhile;
} else {
while (have_posts()) : the_post();
get_template_part( 'templates/content', get_post_format() );
endwhile;
}
/**
* @hooked virtue_pagination - 10
*/
do_action( 'virtue_pagination' );
?>
</div><!-- /.main -->