Advertisement
alchymyth

pinnacle index re-arranged

Sep 1st, 2011
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.17 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <!-- BEGIN content -->
  4. <div id="content">
  5.  
  6.     <?php if (have_posts()) : the_post(); ?>
  7.  
  8.     <!-- BEGIN latest -->
  9.     <div class="latest">
  10.    
  11.         <!-- begin post -->
  12.         <div class="post">
  13.         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  14.         <p class="details">Posted by <?php the_author_posts_link(); ?> on <?php the_time('F j, Y') ?> &nbsp;|&nbsp; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
  15.         <?php the_content(''); ?>
  16.         <div class="details2">
  17.             <?php the_tags('<p class="l">Tags:', ', ', '</p>'); ?>
  18.             <p class="r">Filed Under: <?php the_category(', '); ?></p>
  19.         </div>
  20.         </div>
  21.         <!-- end post -->
  22.    
  23.     </div>
  24.     <!-- END latest -->
  25.    
  26.     <?php endif; ?>
  27.    
  28.     <!-- BEGIN left -->
  29.     <div class="l division">
  30.    
  31.         <?php
  32.         if (have_posts()) : $count = 0;
  33.         while(have_posts()) : the_post();
  34.         ?>
  35.    
  36.         <!-- begin post -->
  37.         <div class="post">
  38.         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  39.         <p class="details"><?php the_time('F j, Y') ?> &nbsp; |&nbsp; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
  40.         <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'class="' . $post->post_title . '"'); ?></a>
  41.         <?php the_excerpt(); ?>
  42.         </div>
  43.         <!-- end post -->
  44.        
  45.         <?php $count++;
  46.         if ($count>3) break; endwhile; endif; ?>
  47.    
  48.     </div>
  49.     <!-- END left -->
  50.    
  51.     <!-- BEGIN right -->
  52.     <div class="r division">
  53.    
  54.         <?php
  55.         if (have_posts()) : $count = 0;
  56.         while(have_posts()) : the_post();
  57.         ?>
  58.    
  59.         <!-- begin post -->
  60.         <div class="post">
  61.         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  62.         <p class="details"><?php the_time('F j, Y') ?> &nbsp; |&nbsp; <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
  63.         <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'class="' . $post->post_title . '"'); ?></a>
  64.         <?php the_excerpt(); ?>
  65.         </div>
  66.         <!-- end post -->
  67.        
  68.         <?php $count++;
  69.         if ($count>4) break; endwhile; endif; ?>
  70.    
  71.     </div>
  72.     <!-- END right -->
  73.  
  74. </div>
  75. <!-- END content -->
  76.  
  77. <?php get_sidebar(); get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement