Advertisement
STATEDLIGHT

Tag Template

Jan 21st, 2013
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4. <?php the_post(); ?>
  5. <h1 class="page-title">
  6. <?php _e( 'Tag Archives:', 'tiger' ) ?>
  7. <span>
  8. <?php single_tag_title() ?>
  9. </span></h1>
  10. <?php rewind_posts(); ?>
  11. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  12. <?php } ?>
  13. <?php while ( have_posts() ) : the_post(); ?>
  14. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  15. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Read', 'tiger'), the_title_attribute('echo=0') ); ?>" rel="bookmark">
  16. <?php the_title(); ?>
  17. </a></h2>
  18. <div class="entry-meta"> <span class="meta-prep meta-prep-author">
  19. <?php _e('By ', 'tiger'); ?>
  20. </span> <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="<?php printf( __( 'View all articles by %s', 'tiger' ), $authordata->display_name ); ?>">
  21. <?php the_author(); ?>
  22. </a></span> <span class="meta-sep"> | </span> <span class="meta-prep meta-prep-entry-date">
  23. <?php _e('Published ', 'tiger'); ?>
  24. </span> <span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>">
  25. <?php the_time( get_option( 'date_format' ) ); ?>
  26. </abbr></span>
  27. <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t" ) ?>
  28. </div>
  29. <div class="entry-summary">
  30. <?php the_content( __( 'continue reading <span class="meta-nav">&raquo;</span>', 'tiger' ) ); ?>
  31. </div>
  32. <div class="entry-utility"> <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links">
  33. <?php _e( 'Posted in ', 'tiger' ); ?>
  34. </span><?php echo get_the_category_list(', '); ?></span> <span class="meta-sep"> | </span>
  35. <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'tiger' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\"> | </span>\n" ) ?>
  36. <span class="comments-link">
  37. <?php comments_popup_link( __( 'Leave a comment', 'tiger' ), __( '1 Comment', 'tiger' ), __( '% Comments', 'tiger' ) ) ?>
  38. </span>
  39. <?php edit_post_link( __( 'Edit', 'tiger' ), "<span class=\"meta-sep\"> | </span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?>
  40. </div>
  41. </div>
  42. <?php endwhile; ?>
  43. <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
  44. <div id="nav-below" class="navigation">
  45. <?php if(function_exists('wp_pagenavi')) { ?>
  46. <?php wp_pagenavi(); ?>
  47. <?php } else { ?>
  48. <div class="nav-previous">
  49. <?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> older articles', 'tiger' )) ?>
  50. </div>
  51. <div class="nav-next">
  52. <?php previous_posts_link(__( 'newer articles <span class="meta-nav">&raquo;</span>', 'tiger' )) ?>
  53. </div>
  54. <?php } ?>
  55. </div>
  56. <?php } ?>
  57. </div>
  58. <div id="sidebar">
  59. <?php dynamic_sidebar('right'); ?>
  60. </div>
  61. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement