Advertisement
Guest User

ninnypants

a guest
Jan 3rd, 2011
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.01 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div id="main-content-wrapper">
  3.     <section id="main-content">
  4.         <header>
  5.             <h2 class="title">Articles</h2>
  6.         </header>
  7.         <section id="posts">
  8.            
  9.             <?php
  10.             $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  11.             echo "<!-- $query_string -->";
  12.             query_posts($query_string.'&cat=-60');
  13.             if(have_posts()):while(have_posts()):the_post();
  14.            
  15.             if(in_category('quote')){
  16.            
  17.             ?>
  18.             <article class="quote">
  19.                 <header>
  20.                     <time><?php the_time('M j'); ?></time>
  21.                 </header>
  22.                
  23.                 <?php
  24.                 the_content();
  25.                 ?>
  26.  
  27.             </article>
  28.            
  29.             <?php
  30.            
  31.             }elseif(in_category('gallery')){
  32.            
  33.             ?>
  34.            
  35.             <article class="gallery">
  36.                 <header>
  37.                     <time><?php the_time('M j'); ?></time>
  38.                     <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  39.                 </header>
  40.                 <section>
  41.                     <?php
  42.                     if(has_post_thumbnail()){
  43.                         ?>
  44.                         <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('home-gallery'); ?> </a>
  45.                         <?php
  46.                     }
  47.                     ?>
  48.                     <aside>
  49.                         <?php the_excerpt(); ?>
  50.                     </aside>
  51.                 </section>
  52.             </article>
  53.            
  54.             <?php
  55.            
  56.             }else{
  57.            
  58.             ?>
  59.            
  60.             <article>
  61.                 <header>
  62.                     <time><?php the_time('M j'); ?></time>
  63.                     <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  64.                 </header>
  65.                 <section>
  66.                     <?php
  67.                     if(has_post_thumbnail() && !in_category('reading')){
  68.                         ?>
  69.                         <a href="<?php the_permalink(); ?>"><?php
  70.                         the_post_thumbnail('home-normal');
  71.                         ?></a>
  72.                         <?php
  73.                     }
  74.                     ?>
  75.                     <?php the_excerpt(); ?>
  76.                 </section>
  77.             </article>
  78.  
  79.             <?php
  80.             }
  81.             endwhile;
  82.             endif;
  83.             ?>
  84.            
  85.             <div class="older-posts">
  86.                 <?php next_posts_link('&laquo; Older Entries'); ?>
  87.             </div>
  88.             <div class="newer-posts">
  89.                 <?php previous_posts_link('Newer Entries &raquo;');?>
  90.             </div>
  91.            
  92.         </section><!-- end posts -->
  93.     </section><!-- end main-content -->
  94. </div><!-- end main-content-wrapper -->
  95. <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement