File: /home/awaldron/_domains/waldroninteractive.com/wp-content/themes/whoiam/single.php
<?php
/**
* Single.php
* @package WordPress
* @subpackage Who I Am
* @since Who I Am 1.9
*/
?>
<?php get_header(); ?>
<?php
get_template_part('menu_section');
global $post;
$post_name = $post->post_name;
$post_id = get_the_ID();
?>
<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">
<!-- ***************************************
Start of Full Width
*************************************** -->
<?php if (get_post_meta($post_id, "rnr_assign_type1", true) == "full-section") { ?>
<div class="row">
<?php if (have_posts()) : while (have_posts()) : the_post();
get_template_part( 'post-format/single', get_post_format() );
endwhile;
get_template_part( 'post-format/pagination' );
else : ?>
<h2><?php _e('No Posts Found', 'whoiam') ?></h2>
<?php
endif;
wp_reset_query();
?>
<div class="white-space-40"></div>
<?php comments_template(); ?>
</div>
<!-- ***************************************
End of FullWidth
*************************************** -->
<?php } else {
if (get_post_meta($post_id, "rnr_assign_type1", true) == "sidebar-section") {
}
?>
<div class="row">
<div class="col-md-9 col-xs-12">
<?php if (have_posts()) : while (have_posts()) : the_post();
get_template_part( 'post-format/single', get_post_format() );
endwhile;
get_template_part( 'post-format/pagination' );
else : ?>
<h2><?php _e('No Posts Found', 'whoiam') ?></h2>
<?php
endif;
wp_reset_query();
?>
<div class="white-space-40"></div>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
</div>
<!-- End of post comments -->
<?php } ?>
</div></div></section>
<?php get_footer(); ?>