Advertisement
Guest User

Untitled

a guest
Feb 26th, 2012
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Blog
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <?php global $woo_options; ?>
  8.  
  9. <!-- #content Starts -->
  10. <?php woo_content_before(); ?>
  11. <div id="full-content">
  12.  
  13. <div id="content" class="col-full">
  14. <div class="breadcrumbs">
  15. <?php
  16. if(function_exists('bcn_display'))
  17. {
  18. bcn_display();
  19. }
  20. ?>
  21. </div>
  22.  
  23. <div id="main-sidebar-container">
  24.  
  25. <!-- #main Starts -->
  26. <?php woo_main_before(); ?>
  27. <div id="main">
  28.  
  29. <?php woo_loop_before(); ?>
  30. <?php
  31. // WP 3.0 PAGED BUG FIX
  32. if ( get_query_var('paged') )
  33. $paged = get_query_var('paged');
  34. elseif ( get_query_var('page') )
  35. $paged = get_query_var('page');
  36. else
  37. $paged = 1;
  38. //$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  39.  
  40. query_posts("paged=$paged");
  41. ?>
  42. <?php if (have_posts()) : $count = 0; ?>
  43. <?php query_posts( 'category_name=blog' ); ?>
  44. <?php while (have_posts()) : the_post(); $count++; ?>
  45.  
  46. <!-- Post Starts -->
  47. <?php woo_post_before(); ?>
  48. <div <?php post_class(); ?>>
  49.  
  50. <?php woo_post_inside_before(); ?>
  51.  
  52. <?php woo_image('width='.$woo_options['woo_thumb_w'].'&height='.$woo_options['woo_thumb_h'].'&class=thumbnail '.$woo_options['woo_thumb_align']); ?>
  53.  
  54. <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  55.  
  56. <?php woo_post_meta(); ?>
  57.  
  58. <div class="entry">
  59. <?php global $more; $more = 0; ?>
  60. <?php the_excerpt(); ?>
  61. <a href="<?php the_permalink() ?>" class="woo-sc-button custom small" style="background:#643221;border-color:#783A2A;margin:0;"><span class="woo-">Read More</span></a>
  62.  
  63. </div>
  64.  
  65. <?php woo_post_inside_after(); ?>
  66.  
  67. </div><!-- /.post -->
  68. <?php woo_post_after(); ?>
  69.  
  70. <?php endwhile; else: ?>
  71. <div class="post">
  72. <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
  73. </div><!-- /.post -->
  74. <?php endif; ?>
  75.  
  76. <?php woo_pagenav(); ?>
  77.  
  78. </div><!-- /#main -->
  79. <?php woo_main_after(); ?>
  80.  
  81. <?php get_sidebar(); ?>
  82.  
  83. </div><!-- /#main-sidebar-container -->
  84.  
  85. <?php get_sidebar('alt'); ?>
  86.  
  87. </div><!-- /#content -->
  88. </div><!-- /#full-content -->
  89.  
  90. <?php woo_content_after(); ?>
  91.  
  92.  
  93. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement