Advertisement
retiredbutstillcodin

archives template

May 17th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.92 KB | None | 0 0
  1. <?php
  2. /*
  3. * Template Name: Archives Template
  4. */
  5.  
  6. get_header(); ?>
  7.        
  8.         <div id="primary">
  9.             <div id="content" role="main">
  10.        
  11.             <?php if ( have_posts() ) : ?>
  12.  
  13.                 <h1 class="entry-title"><?php the_title(); ?></h1>
  14. <hr class="hidden" />
  15.             <h2>Browse the Archives...</h2>
  16.                 <?php get_search_form(); ?>
  17.                 <h3 class="top">by month:</h3>
  18.                 <ul>
  19.                     <?php wp_get_archives('type=monthly'); ?>
  20.                 </ul>
  21.                 <h3>by Category:</h3>
  22.                 <ul>
  23.                     <?php wp_list_categories('title_li=0'); ?>
  24.                 </ul>
  25.  
  26.                 <?php /* Start the Loop */ ?>
  27.                 <?php while ( have_posts() ) : the_post(); ?>
  28.  
  29.                     <?php
  30.                         /* Include the Post-Format-specific template for the content.
  31.                          * If you want to overload this in a child theme then include a file
  32.                          * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  33.                          */
  34.                         get_template_part( 'content', get_post_format() );
  35.                     ?>
  36.  
  37.                 <?php endwhile; ?>
  38.             <?php endif; ?>
  39.  
  40. <h2 id="RELLINKS">Related Links</h2>
  41. <?php
  42.    include './wp-content/themes/twentyeleven-child/includes/nav_events_site.inc.php';
  43. ?><div class="related">
  44. <?php
  45.    include './wp-content/themes/twentyeleven-child/includes/nav_events.inc.php';
  46. ?>
  47. </div>
  48.  
  49. <?php /* '~~~~Last Revised Date~~~~'; */ ?>
  50.  
  51. <div style="margin-bottom:1em;">Last modified: <?php the_modified_date('F j, Y'); ?></div>
  52.  
  53. <?php /* '~~~~START REVISION FLAGS RESOURCE ~~ COPY and PASTE WHERE NEEDED'; */ ?>
  54. <?php /* '
  55. &nbsp;<span class="new">New</span>
  56.  &nbsp;<span class="revised">Revised</span>
  57.  &nbsp;<span class="updated">Updated</span>'; */ ?>
  58. <?php /* '~~~~END REVISION FLAG RESOURCE'; */ ?>
  59.  
  60. <?php /* '~~~~START TRADEMARK ATTRIBUTIONS'; */ ?>
  61. <?php /* '
  62. &#174; = [Registered trademark]
  63. &#8482; = [TM]'; */ ?>
  64. <?php /* '~~~~END TRADEMARK ATTRIBUTIONS'; */ ?>
  65.  
  66.  
  67.             </div><!-- #content -->
  68.         </div><!-- #primary -->
  69.  
  70. <?php get_sidebar(); ?>
  71. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement