Advertisement
Guest User

Untitled

a guest
Jan 17th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.01 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="content" class="clearfix">
  3.         <div class="content_left">
  4.             <?php if (have_posts()) : ?>
  5.  
  6.          <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  7. <?php /* If this is a category archive */ if (is_category()) { ?>
  8.        
  9.       <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  10.        
  11.      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  12.  
  13.         <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  14.                
  15.       <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  16.  
  17.         <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  18.  
  19.         <?php } ?>
  20. <?php $w_h = $w_d = $last = 0; ?>
  21. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  22.  
  23.             <div class="indexdate"><?php
  24.     if ( date('Yz') == get_the_time('Yz') ) {
  25.         if (!$w_d++) echo '<h6>Today</h6>';
  26.     } elseif ( date('Yz')-1 == get_the_time('Yz') ) {
  27.         if (!$w_h++) echo '<h6>Yesterday</h6>';
  28.     } else {
  29.         echo the_date('', '<h3>', '</h3>');
  30.     };
  31. ?> </div>  
  32.  
  33.    <div id="post"<?php if( get_the_time('Yz') != $last ) { $last = get_the_time('Yz'); echo ' class="first" '; } ?>>       
  34.             <span class="blockimg"> <?php the_post_thumbnail(); ?></span><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  35.    
  36.             <?php
  37.                 /* translators: used between list items, there is a space after the comma */
  38.                 $categories_list = get_the_category_list( ' ' );
  39.                 if ( $categories_list ) :
  40.             ?>
  41.             <span class="cat-links">
  42.                 <?php echo $categories_list; ?>
  43.             </span>
  44.             <?php endif; // End if $categories_list ?>
  45.  
  46.             <?php
  47.                 /* translators: used between list items, there is a space after the comma */
  48.                 $tags_list = get_the_tag_list( ' ' );
  49.                 if ( $tags_list ) :
  50.             ?>
  51.             <span class="tags-links">
  52.                 <?php echo $tags_list; ?>
  53.             </span>
  54.             <?php endif; // End if $tags_list ?>
  55.  
  56. <?php $excerptt = get_the_excerpt();
  57.                 if ( $excerptt ) :
  58.             ?>
  59.             <span class="excerpt-links">
  60.                 <?php echo $excerptt; ?>
  61.             </span>
  62.             <?php endif; // End if $excerptt ?>
  63. </div>
  64.  
  65.  
  66.  
  67.     <?php endwhile; ?>
  68. <?php endif; ?>
  69.                  <?php else : ?>  
  70.  
  71.  
  72.  
  73.  
  74.                     <div class="post" id="post-<?php the_ID(); ?>">
  75.                 <h2>404</h2>
  76.  
  77.                 <div class="entry">
  78.  
  79.                 <p>You step in the stream,</p>
  80. <p>but the water has moved on.</p>
  81. <p>This page is not here.</p>
  82.                 </div>
  83.             <div class="clear"></div>
  84.             </div>
  85.             <?php endif; ?>
  86.             <br />
  87.                         <div id="postnavi_index">
  88.                         <div class="right"><?php next_posts_link('Older &raquo;') ?></div>
  89.                         <div class="left"><?php previous_posts_link('&laquo; Newer') ?></div>
  90.                         </div>
  91.             <div class="clear"></div>
  92.         </div>
  93.         <div class="sidebar">
  94.             <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
  95.         </div>
  96.         <div class="clear"></div>  
  97. </div><!-- ### ende content ### -->
  98.  
  99. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement