Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="col1">
- <?php if (have_posts()) : ?>
- <div id="archivebox">
- <?php if (is_category()) { ?>
- <h3><em><?php _e('Category',woothemes); ?> |</em> <?php echo single_cat_title(); ?></h3>
- <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>
- <?php } elseif (is_day()) { ?>
- <h3><em><?php _e('Archive',woothemes); ?></em> | <?php the_time('F jS, Y'); ?></h3>
- <?php } elseif (is_month()) { ?>
- <h3><em><?php _e('Archive',woothemes); ?></em> | <?php the_time('F, Y'); ?></h3>
- <?php } elseif (is_year()) { ?>
- <h3><em><?php _e('Archive',woothemes); ?></em> | <?php the_time('Y'); ?></h3>
- <?php } ?>
- </div><!--/archivebox-->
- <?php while (have_posts()) : the_post(); ?>
- <div class="post-alt blog" id="post-<?php the_ID(); ?>">
- <?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
- <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" />
- <?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
- <img src="<?php bloginfo('template_directory'); ?>/images/no-img-thumb.jpg" alt="" class="th" />
- <?php } ?>
- <h2><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <p class="posted_on"><?php _e('Posted on',woothemes); ?> <?php the_time('d F Y'); ?></p>
- <?php echo woo_get_embed('embed','600','480'); ?>
- <div class="entry">
- <?php the_excerpt(__('<p class="continue">Read the full story</p>',woothemes)); ?>
- </div>
- <?php if (function_exists('the_tags')) { ?><p class="singletags"><?php the_tags('Tags: ', ', ', ''); ?></p><?php } ?>
- <div class="postmeta">
- <span class="posted_in"><?php the_category(', ') ?></span>
- <span class="comments"><?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?></span>
- </div>
- </div><!--/post-->
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php previous_posts_link(__('« Newer Entries ',woothemes)) ?></div>
- <div class="alignright"><?php next_posts_link(__(' Older Entries »',woothemes)) ?></div>
- </div>
- <?php endif; ?>
- </div><!--/col1-->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement