File: /home/awaldron/_domains/waldroninteractive.com/wp-content/themes/whoiam/index.php
<?php
/**
* index.php
* @package WordPress
* @subpackage Who I Am
* @since Who I Am 1.9
*/
?>
<?php get_header(); ?>
<?php
get_template_part('menu_section'); ?>
<section id="blog" class="block-section">
<!-- ***************************************
Start of BreadCrumbs
*************************************** -->
<?php
if (!is_front_page()) {
$current_blog_page_id = get_option('page_for_posts');
if((get_post_meta( $current_blog_page_id, 'rnr_disable_title', true )!= true) ){ ?>
<div class=" shape-bottom">
<div class="bg-secondary block-title">
<div class="container">
<h2 class="text-uppercase color-dark text-bold no-margin"><?php if(get_post_meta( $current_blog_page_id, 'rnr_alt_title', true )){ echo get_post_meta( $current_blog_page_id, 'rnr_alt_title', true ); } else { echo get_the_title($current_blog_page_id); } ?></h2>
<?php if(get_post_meta( $current_blog_page_id, 'rnr_subtitle', true )){ echo '<div class="title-icon">'.get_post_meta( $current_blog_page_id, 'rnr_subtitle', true ).'</div> '; } ?>
</div>
</div>
</div>
<?php }
}
?>
<!-- ***************************************
End of BreadCrumbs
*************************************** -->
<div class="block-page" >
<div class="container-medium">
<?php if ( function_exists( 'get_option_tree') ) :
if( get_option_tree( 'blogpostype' ) == 'blog_sidebar') : ?>
<div class="row">
<div class="col-md-9">
<ul class="list-unstyled list-blog">
<?php if (have_posts()) : while (have_posts()) : the_post();
get_template_part( 'post-format/content', get_post_format() );
endwhile;
get_template_part( 'post-format/pagination' );
else : ?>
<h2><?php _e('No Posts Found', 'whoiam') ?></h2>
<?php
endif;
wp_reset_query();
?>
</ul>
</div>
<?php get_sidebar(); ?>
</div>
<?php else: ?>
<ul class="list-unstyled list-blog">
<?php if (have_posts()) : while (have_posts()) : the_post();
get_template_part( 'post-format/content', get_post_format() );
endwhile;
get_template_part( 'post-format/pagination' );
else : ?>
<h2><?php _e('No Posts Found', 'whoiam') ?></h2>
<?php
endif;
wp_reset_query();
?>
</ul>
<?php endif; endif; ?>
</div>
</div>
</section>
<?php get_footer(); ?>