Guest User

Untitled

a guest
May 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content" class="col-full">
  4. <div id="main" class="col-left box">
  5.  
  6. <?php
  7. // Get thumbnail variables
  8. $thumb_w = get_option('woo_thumb_w');
  9. $thumb_h = get_option('woo_thumb_h');
  10. ?>
  11.  
  12. <?php if (have_posts()) : $count = 0; ?>
  13.  
  14. <?php if (is_category()) { ?>
  15. <span class="archive_header"><span class="fl cat"><?php _e('Archive', 'woothemes'); ?> | <?php echo single_cat_title(); ?></span> <span class="fr catrss"><?php $cat_obj = $wp_query->get_queried_object(); $cat_id = $cat_obj->cat_ID; echo '<a href="'; get_category_rss_link(true, $cat, ''); echo '">'.__('RSS feed for this section', 'woothemes').'</a>'; ?></span></span>
  16.  
  17. <?php } elseif (is_day()) { ?>
  18. <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time(get_option('date_format')); ?></span>
  19.  
  20. <?php } elseif (is_month()) { ?>
  21. <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('F, Y'); ?></span>
  22.  
  23. <?php } elseif (is_year()) { ?>
  24. <span class="archive_header"><?php _e('Archive', 'woothemes'); ?> | <?php the_time('Y'); ?></span>
  25.  
  26. <?php } elseif (is_author()) { ?>
  27. <span class="archive_header"><?php _e('Archive by Author', 'woothemes'); ?></span>
  28.  
  29. <?php } elseif (is_tag()) { ?>
  30. <span class="archive_header"><?php _e('Tag Archives:', 'woothemes'); ?> <?php echo single_tag_title('', true); ?></span>
  31.  
  32. <?php } ?>
  33.  
  34. <div class="fix"></div>
  35.  
  36. <?php while (have_posts()) : the_post(); $count++; ?>
  37.  
  38. <!-- Post Starts -->
  39. <div <?php post_class(); ?>>
  40.  
  41. <?php woo_get_image('image',$thumb_w,$thumb_h,'alignleft thumbnail'); ?>
  42.  
  43. <h2 class="title"><a href="<?php the_permalink() ?>" target="_blank" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  44.  
  45. <p class="post-meta">
  46. <span class="date"><?php the_time(get_option('date_format')); ?> &bull;</span>
  47. <span><?php _e('Categories', 'woothemes') ?>: <?php the_category(', ') ?> &bull;</span>
  48. <span><?php _e('by', 'woothemes') ?> <?php the_author_posts_link(); ?></span>
  49. </p>
  50.  
  51. <div class="entry">
  52. <?php the_excerpt(); ?>
  53. </div><!-- /.entry -->
  54.  
  55. <p class="post-meta">
  56. <span><?php comments_popup_link(__('0 Comments', 'woothemes'), __('1 Comment', 'woothemes'), __('% Comments', 'woothemes')); ?></span>
  57. </p>
  58.  
  59. </div><!-- /.post -->
  60.  
  61. <?php endwhile; else: ?>
  62. <div class="post">
  63. <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p>
  64. </div><!-- /.post -->
  65. <?php endif; ?>
  66.  
  67. <?php woo_pagenav(); ?>
  68.  
  69. </div><!-- /#main -->
  70.  
  71. <?php get_sidebar(); ?>
  72.  
  73. </div><!-- /#content -->
  74.  
  75. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment