<?php
/* Template Name: Blog
GREEN EYE Theme's Blog Posts Showung Template
Copyright: 2013, D5 Creation, www.d5creation.com
Based on the Simplest D5 Framework for WordPress
Since green 1.2.6
*/
get_header('inner');?>
<div class="blog_inner_content">
<div class="blog_left">
<?php
$args = array( 'post_type'=> 'post','posts_per_page' =>'5', 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ) );
query_posts( $args );
if (have_posts()) : while (have_posts()) : the_post();?>
<h5><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
<?php the_content(); ?>
<div class="clear"> </div>
<p> <span class="entry-date">This entry was posted in <?php
$category = get_the_category();
echo $category[0]->cat_name;
?> <?php echo get_the_date(); ?>,<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></span> <?php the_tags('<br />Tags: ', ', ', '<br />'); ?></p>
<?php endwhile; ?>
<div class="pagination">
<span><?php previous_posts_link('« Previous Entries') ?>
<?php next_posts_link('Next Entries »','') ?></span>
</div>
<?php else: ?>
<h1 class="arc-post-title">Sorry, we couldn't find anything that matched your search.</h1>
<h3 class="arc-src"><span>You Can Try Another Search...</span></h3>
<?php get_search_form(); ?>
<p><a href="<?php echo home_url(); ?>" title="Browse the Home Page">« Or Return to the Home Page</a></p><br />
<h2 class="post-title-color">You can also Visit the Following. These are the Featured Contents</h2>
<div class="content-ver-sep"></div><br />
<?php get_template_part( 'featured-box' ); ?>
<?php endif; wp_reset_query(); ?>
</div>
<div class="blog_sidebar">
<?php
if ( dynamic_sidebar('blog_side_1') ) :
else :
?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer('inner'); ?>
/* Template Name: Blog
GREEN EYE Theme's Blog Posts Showung Template
Copyright: 2013, D5 Creation, www.d5creation.com
Based on the Simplest D5 Framework for WordPress
Since green 1.2.6
*/
get_header('inner');?>
<div class="blog_inner_content">
<div class="blog_left">
<?php
$args = array( 'post_type'=> 'post','posts_per_page' =>'5', 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ) );
query_posts( $args );
if (have_posts()) : while (have_posts()) : the_post();?>
<h5><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
<?php the_content(); ?>
<div class="clear"> </div>
<p> <span class="entry-date">This entry was posted in <?php
$category = get_the_category();
echo $category[0]->cat_name;
?> <?php echo get_the_date(); ?>,<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></span> <?php the_tags('<br />Tags: ', ', ', '<br />'); ?></p>
<?php endwhile; ?>
<div class="pagination">
<span><?php previous_posts_link('« Previous Entries') ?>
<?php next_posts_link('Next Entries »','') ?></span>
</div>
<?php else: ?>
<h1 class="arc-post-title">Sorry, we couldn't find anything that matched your search.</h1>
<h3 class="arc-src"><span>You Can Try Another Search...</span></h3>
<?php get_search_form(); ?>
<p><a href="<?php echo home_url(); ?>" title="Browse the Home Page">« Or Return to the Home Page</a></p><br />
<h2 class="post-title-color">You can also Visit the Following. These are the Featured Contents</h2>
<div class="content-ver-sep"></div><br />
<?php get_template_part( 'featured-box' ); ?>
<?php endif; wp_reset_query(); ?>
</div>
<div class="blog_sidebar">
<?php
if ( dynamic_sidebar('blog_side_1') ) :
else :
?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer('inner'); ?>