blogs.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Template Name: Blogs
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="container" class="onecolumn">
  8. <div id="content">
  9. <div class="hide">
  10. <div class="entry-content">
  11. <h3>Blog</h3>
  12. <div class="separator"><img src="<?php bloginfo( 'template_url' ); ?>/images/separator_sb.png"/>
  13. </div>
  14. <?php query_posts('showposts=4&category_name=blog'); ?>
  15. <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
  16. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  17. <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
  18. <?php the_excerpt();?>
  19. </div><!-- #post-<?php the_ID(); ?> -->
  20. <?php endwhile; endif; ?>
  21. <h3><a href="<?php echo home_url( '/' ); ?>blog">Read More</a></h3>
  22. </div><!-- .entry-content -->
  23. </div>
  24. <?php query_posts('showposts=21&category_name=blog'); ?>
  25. <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
  26. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  27. <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
  28. <?php the_content();?>
  29. <p><?php comments_popup_link('No comments yet', '1 comment so far',
  30. '% comments so far', 'comments-link', 'Comments are
  31. off for this post'); ?></p>
  32. </div><!-- #post-<?php the_ID(); ?> -->
  33. <div class="blog_separator"><img src="<?php bloginfo( 'template_url' ); ?>/images/separator_sb.png"/>
  34. </div>
  35. <?php endwhile; endif; ?>
  36. </div><!-- #content -->
  37. </div><!-- #container -->
  38. <div class="clear"></div>
  39. <?php get_footer(); ?>