<?php get_header(); ?>

<div class="bread">

<div class="container">

<div style="float:left;color:<?php echo $data['breadfontcolor']; ?>;font-size:<?php echo $data['breadfontsize']; ?>px;font-weight:<?php echo $data['breadfontweight']; ?>;line-height:32px;"><?php the_title(); ?></div>

<div style="float:right;color:<?php  echo $data['breadfontcolor']; ?>;font-size:<?php echo $data['breadfontsize']; ?>px;font-weight:<?php echo $data['breadfontweight']; ?>;line-height:32px;"><span style="color:<?php echo $data['breadfontcolor']; ?>;"><?php get_breadcrumbs(); ?></span></div> 

<div style="clear:both;"></div> 

</div>

</div>



<section id="Middle"> <!-- Begin middle -->

	<div class="container"> <!-- Begin Container -->

		<article class="Blog">

        <?php 

        	if ($data['show_removesidebar'] != 0) {  ?>  

                <div class=blog_page style="width:60%;float:left;">

					<style>

                    	.wp-post-image 	{

                    	max-width:100%;

                    	height: auto !important;

                    	}

                    </style>

                <?php  }  else {  ?>

                    <div style="width:100%;float:left;">

                    <?php } ?>

   			<?php 

			 $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

			 $cat_id = get_cat_ID( single_cat_title(null, false) );

		 			 query_posts(array(

			'post_type'      => 'post', // You can add a custom post type if you like

			'paged'          => $paged,

			'cat'=>$cat_id,

			

			));

			

			if (have_posts()) : ?>

  				<div class="search-content">

  				  <h4> <?php single_cat_title(__('Showing posts from:',oft_theme), true) ; ?> </h4>

    			</div> <!-- end search content-->

			<?php while (have_posts()) : the_post(); ?>

			<?php

                        if ( has_post_thumbnail() ) 

                        { ?>

                        <a href="<?php the_permalink();?>"><?php the_post_thumbnail('full'); ?></a>

                        <?php

                        } 

                        else if($data['blog_image'] != '')

                        { 

                        ?>

                        <a href="<?php the_permalink();?>"><img src="<?php echo do_shortcode(stripslashes($data['blog_image'])); ?>"  width="100%" height="auto" class="attachment-full wp-post-image"></a>

                        <?php 

                        } 

                        else

                        {                     

                        }

                        ?>

    		<div class="Row1 Pad_blg_inr new123" style="border-bottom:1px solid #999;margin-bottom:20px;">

  				<a href="<?php the_permalink();?>"><?php the_title(); ?></a><?php the_excerpt(); ?>

  			</div>

			<?php endwhile; ?> 



			<?php endif; ?>

 		</article> <!--/ End Blog -->



		<div class="Pagenatebx2">

			<?php if (function_exists("pagination")) {pagination();} ?>

		</div>

        <?php if ($data['show_removesidebar'] != 0) { ?>

                

                <?php get_sidebar(); ?>

                

                <?php } ?>

	</div> <!--/ End Container -->

</section> <!--/ End middle -->

<?php get_footer();?>