Advertisement
Guest User

Untitled

a guest
May 17th, 2012
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.12 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Catergory Page
  4. */
  5. ?>
  6. <?php get_header() ?>
  7.    
  8.     <div id="container">
  9.         <div id="content">
  10.  
  11. <div class="comment-count">
  12. <?php query_posts("cat=5"); ?>
  13.  
  14.                 <h2 class="page-title"><?php _e('Category Archive:', 'sandbox') ?> <span><?php echo single_cat_title(); ?></span></h2>
  15.             </div>
  16.             <div class="archive-meta"><?php if ( !(''== category_description()) ) : echo apply_filters('archive_meta', category_description()); endif; ?></div>
  17.        
  18.             <div id="nav-above" class="navigation">
  19.                 <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts', 'sandbox')) ?></div>
  20.                 <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>', 'sandbox')) ?></div>
  21.             </div>
  22.  
  23. <?php while ( have_posts() ) : the_post(); ?>
  24.  
  25.             <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
  26.  
  27.                 <div class="preview">
  28.                     <div class="entry-date bigdate"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time('d M'); ?></abbr></div>
  29.                     <h2 class="entry-title post-content-title"><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'sandbox'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><span><?php the_title() ?></span></a></h2>
  30.                     <div class="entry-excerpt post-excerpt">
  31.                         <h4><?php the_title() ?></h4>
  32.                         <p><?php the_content(); ?></p>
  33.  
  34.                         <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?>
  35.                     </div>
  36.                     <span class="attach-post-image" style="height:300px;display:block;background:url('<?php the_post_image_url('large'); ?>') center center repeat">&nbsp;</span>
  37.                 </div><!-- .preview -->
  38.  
  39.                 <div class="entry-meta">
  40.                     <span class="author vcard"><?php printf(__('By %s', 'sandbox'), '<a class="url fn n" href="'.get_author_link(false, $authordata->ID, $authordata->user_nicename).'" title="' . sprintf(__('View all posts by %s', 'sandbox'), $authordata->display_name) . '">'.get_the_author().'</a>') ?></span>
  41.                     <br />
  42. <?php if ( $cats_meow = sandbox_cats_meow(', ') ) : /* Returns categories other than the one queried */ ?>
  43.                     <span class="cat-links"><?php printf(__('Also posted in %s', 'sandbox'), $cats_meow) ?></span>
  44.                     <br />
  45. <?php endif ?>
  46.                     <?php the_tags(__('<span class="tag-links">Tagged ', 'sandbox'), ", ", "</span>\n\t\t\t\t\t<br />\n") ?>
  47.                     <span class="comments-link"><?php comments_popup_link(__('Comments (0)', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?></span>
  48. <?php edit_post_link(__('Edit', 'sandbox'), "\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t<br />\n"); ?>
  49.                 </div>
  50.        
  51.             </div><!-- .post -->
  52.  
  53. <?php endwhile ?>
  54.  
  55.             <div id="nav-below" class="navigation">
  56.                 <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts', 'sandbox')) ?></div>
  57.                 <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>', 'sandbox')) ?></div>
  58.             </div>
  59.         </div><!-- #content -->
  60.     </div><!-- #container -->
  61.  
  62. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement