Advertisement
Guest User

Untitled

a guest
Dec 5th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.70 KB | None | 0 0
  1.  
  2.  
  3. <?php get_header(); ?>
  4. <div id ="maincontent"class = "group">
  5.     <?php if ( function_exists('yoast_breadcrumb') ) {
  6.  
  7.         yoast_breadcrumb('<p id="breadcrumbs">','</p>');
  8.  
  9.         } ?>
  10.         <?php include'leftsidebar.php';?>
  11.     <div id = "allcontent"class="archive">
  12.    
  13.     <?php if (have_posts()) : ?>
  14.  
  15.         <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  16.  
  17.         <?php /* If this is a category archive */ if (is_category()) { ?>
  18.             <h2>Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
  19.  
  20.         <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  21.             <h2>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
  22.  
  23.         <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  24.             <h2>Archive for <?php the_time('F jS, Y'); ?></h2>
  25.  
  26.         <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  27.             <h2>Archive for <?php the_time('F, Y'); ?></h2>
  28.  
  29.         <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  30.             <h2>Archive for <?php the_time('Y'); ?></h2>
  31.  
  32.         <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  33.             <h2>Author Archive</h2>
  34.  
  35.         <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  36.             <h2>Blog Archives</h2>
  37.  
  38.         <?php } ?>
  39.  
  40.         <?php include (TEMPLATEPATH . '/inc/nav.php' );?>
  41.    
  42.         <ul>
  43.         <?php $i=0;?>
  44.     <?php $x=0;?>
  45.         <?php while (have_posts()) : the_post(); ?>
  46.             <?php $i++; ?>
  47.             <li class ="group">
  48.             <div <?php post_class() ?>>
  49.        
  50.             <div class="title_meta">
  51.                      <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  52.                 <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
  53.         <?php _trackableshare_embed(); ?>
  54.         </div>
  55.                 <div class="entry">    
  56.              <?php the_advanced_excerpt('length=220&use_words=0&no_custom=1&ellipsis=%26hellip;&exclude_tags=strong');?>
  57.                
  58.             </div>
  59.        
  60.             </div>
  61.             </li>
  62.             <?php
  63.             $Archive_Ads = array(
  64.             'Archive Ad1',
  65.             'Archive Ad2',
  66.             'Archive Ad3'
  67.             );
  68.             if ($i % 3 === 0):
  69.        
  70.         if (function_exists('dynamic_sidebar')) :/*this is the line 69*/
  71.         dynamic_sidebar($Archive_Ads[($x)]);
  72.     $x++;
  73.         endif;
  74.     endif;
  75.             ?>
  76.  
  77.         <?php endwhile; ?>
  78.         </ul>
  79.  
  80.  
  81.  
  82.         <?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>
  83.  
  84. <?php else : ?>
  85.  
  86.     <h2>Nothing found</h2>
  87.  
  88. <?php endif; ?>
  89.  
  90.  
  91.     </div>
  92. </div>
  93. <?php get_footer(); ?>
  94.  
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement