Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div class="col1">
  4.  
  5. <?php if (have_posts()) : ?>
  6.  
  7. <div id="archivebox">
  8.  
  9. <?php if (is_category()) { ?>
  10.  
  11. <h3><em><?php _e('Category',woothemes); ?> |</em> <?php echo single_cat_title(); ?></h3>
  12.  
  13. <div class="archivefeed"><?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</a>'; ?></div>
  14.  
  15. <?php } elseif (is_day()) { ?>
  16. <h3><em><?php _e('Archive',woothemes); ?></em> | <?php the_time('F jS, Y'); ?></h3>
  17.  
  18. <?php } elseif (is_month()) { ?>
  19. <h3><em><?php _e('Archive',woothemes); ?></em> | <?php the_time('F, Y'); ?></h3>
  20.  
  21. <?php } elseif (is_year()) { ?>
  22. <h3><em><?php _e('Archive',woothemes); ?></em> | <?php the_time('Y'); ?></h3>
  23.  
  24. <?php } ?>
  25.  
  26. </div><!--/archivebox-->
  27.  
  28. <?php while (have_posts()) : the_post(); ?>
  29.  
  30. <div class="post-alt blog" id="post-<?php the_ID(); ?>">
  31.  
  32.  
  33. <?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
  34.  
  35. <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=57&w=100&zc=1&q=90" alt="" class="th" />
  36.  
  37. <?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
  38.  
  39. <img src="<?php bloginfo('template_directory'); ?>/images/no-img-thumb.jpg" alt="" class="th" />
  40.  
  41. <?php } ?>
  42.  
  43.  
  44. <h2><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  45. <p class="posted_on"><?php _e('Posted on',woothemes); ?> <?php the_time('d F Y'); ?></p>
  46.  
  47. <?php echo woo_get_embed('embed','600','480'); ?>
  48. <div class="entry">
  49. <?php the_excerpt(__('<p class="continue">Read the full story</p>',woothemes)); ?>
  50. </div>
  51.  
  52. <?php if (function_exists('the_tags')) { ?><p class="singletags"><?php the_tags('Tags: ', ', ', ''); ?></p><?php } ?>
  53.  
  54. <div class="postmeta">
  55. <span class="posted_in"><?php the_category(', ') ?></span>
  56. <span class="comments"><?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?></span>
  57. </div>
  58.  
  59. </div><!--/post-->
  60.  
  61. <?php endwhile; ?>
  62.  
  63. <div class="navigation">
  64. <div class="alignleft"><?php previous_posts_link(__('&laquo; Newer Entries ',woothemes)) ?></div>
  65. <div class="alignright"><?php next_posts_link(__(' Older Entries &raquo;',woothemes)) ?></div>
  66. </div>
  67.  
  68. <?php endif; ?>
  69.  
  70. </div><!--/col1-->
  71.  
  72. <?php get_sidebar(); ?>
  73.  
  74. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement