Advertisement
Guest User

Untitled

a guest
Oct 5th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. <?php get_header(); global $woo_options; ?>
  2. <!-- index.php -->
  3. <div id="content" class="col-full">
  4. <div id="main" class="col-left">
  5.  
  6. <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=post&paged=$paged"); ?>
  7. <?php if (have_posts()) : $count = 0; ?>
  8. <?php while (have_posts()) : the_post(); $count++; ?>
  9.  
  10. <div class="post">
  11.  
  12. <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  13.  
  14. <p class="date">
  15. <span class="day"><?php the_time('j'); ?></span>
  16. <span class="month"><?php the_time('M'); ?></span>
  17. </p>
  18.  
  19. <?php woo_get_image('image',490,200); ?>
  20.  
  21. <div class="entry">
  22. <?php if ( $woo_options['woo_post_content'] == "content" ) { the_content('[...]'); } else { the_excerpt(); } ?>
  23. </div>
  24.  
  25. <div class="post-meta">
  26.  
  27. <ul>
  28. <li class="comments">
  29. <span class="head"><?php _e('Comments', 'woothemes') ?></span>
  30. <span class="body"><?php comments_popup_link(__('0 Comments', 'woothemes'), __('1 Comment', 'woothemes'), __('% Comments', 'woothemes')); ?></span>
  31. </li>
  32. <li class="categories">
  33. <span class="head"><?php _e('Categories', 'woothemes') ?></span>
  34. <span class="body"><?php the_category(', ') ?></span>
  35. </li>
  36. <li class="author">
  37. <span class="head"><?php _e('Author', 'woothemes') ?></span>
  38. <span class="body"><?php the_author_posts_link(); ?></span>
  39.  
  40. </li>
  41. </ul>
  42.  
  43. <div class="fix"></div>
  44.  
  45. </div><!-- /.post-meta -->
  46.  
  47. </div><!-- /.post -->
  48.  
  49. <?php endwhile; else: ?>
  50. <div class="post">
  51. <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
  52. </div><!-- /.post -->
  53. <?php endif; ?>
  54.  
  55. <div class="more_entries">
  56. <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
  57. <div class="fl"><?php next_posts_link(__('&laquo; Older Entries', 'woothemes')) ?></div>
  58. <div class="fr"><?php previous_posts_link(__('Newer Entries &raquo;', 'woothemes')) ?></div>
  59. <br class="fix" />
  60. <?php } ?>
  61. </div>
  62.  
  63. </div><!-- /#main -->
  64.  
  65. </div><?php get_sidebar(); ?>
  66.  
  67. </div><!-- /#content -->
  68.  
  69. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement