<?php
/**
* The Index template file.
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
*/
 get_header(); 
$value = get_post_meta( $post->ID, 'th_sidebar_dyn', true );
?>
<div class="blog-top"> 
<div class="blog-image" data-center="background-position: 50% 0px;" data-top-bottom="background-position: 50% -100px;" style=" background-image: url('<?php header_image(); ?>');">
<div class="full-fs-caption">
     <div class="caption-container">
      <h1 class="title overtext">
      <a href="#"><?php wp_title(''); ?></a></h1>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div id="page" class="clearfix  <?php echo $value; ?>">
<div class="content-wrapper">
<div class="content">
<div class="blog-content">
<ul class="load_post standard-layout">
<?php
                $limit = get_option('posts_per_page');
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                query_posts('showposts=' . $limit . '&paged=' . $paged);
                $wp_query->is_archive = true;
                $wp_query->is_home = false;
            ?>
            <?php get_template_part('loop', 'blog'); ?>  
</ul>  
</div>
</div>   
</div> 
<div class="sidebar-wrapper">
<?php get_sidebar(); ?>
</div> 
</div>
<?php get_footer(); ?>