Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="main-content-wrapper">
- <section id="main-content">
- <header>
- <h2 class="title">Articles</h2>
- </header>
- <section id="posts">
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- echo "<!-- $query_string -->";
- query_posts($query_string.'&cat=-60');
- if(have_posts()):while(have_posts()):the_post();
- if(in_category('quote')){
- ?>
- <article class="quote">
- <header>
- <time><?php the_time('M j'); ?></time>
- </header>
- <?php
- the_content();
- ?>
- </article>
- <?php
- }elseif(in_category('gallery')){
- ?>
- <article class="gallery">
- <header>
- <time><?php the_time('M j'); ?></time>
- <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- </header>
- <section>
- <?php
- if(has_post_thumbnail()){
- ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('home-gallery'); ?> </a>
- <?php
- }
- ?>
- <aside>
- <?php the_excerpt(); ?>
- </aside>
- </section>
- </article>
- <?php
- }else{
- ?>
- <article>
- <header>
- <time><?php the_time('M j'); ?></time>
- <h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- </header>
- <section>
- <?php
- if(has_post_thumbnail() && !in_category('reading')){
- ?>
- <a href="<?php the_permalink(); ?>"><?php
- the_post_thumbnail('home-normal');
- ?></a>
- <?php
- }
- ?>
- <?php the_excerpt(); ?>
- </section>
- </article>
- <?php
- }
- endwhile;
- endif;
- ?>
- <div class="older-posts">
- <?php next_posts_link('« Older Entries'); ?>
- </div>
- <div class="newer-posts">
- <?php previous_posts_link('Newer Entries »');?>
- </div>
- </section><!-- end posts -->
- </section><!-- end main-content -->
- </div><!-- end main-content-wrapper -->
- <?php get_footer();?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement