Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php include(TEMPLATEPATH."/left.php");?>
- <div id="content">
- <?php
- if (!is_category()) {
- //query_posts("cat=-490,-402,-14,-1");
- query_posts($query_string . '&cat=-409,-402,-14,-1,-1240');
- }
- ?>
- <?php if (have_posts()) :
- $post = $posts[0]; // Hack. Set $post so that the_date() works.
- //including different template for the first page of Press category
- if (is_category('1240')) {
- include(TEMPLATEPATH."/all-categories.php");
- } else {
- //The first page of a category is styled differently
- if($paged < 2) {
- include(TEMPLATEPATH."/front-category.php");
- } else {
- include(TEMPLATEPATH."/all-categories.php");
- }
- }
- ?>
- <div class="navigation">
- <div class="alignleft"><?php next_posts_link('← older entries') ?></div>
- <div class="alignright"><?php previous_posts_link('newer entries →') ?></div>
- </div>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <?php include (TEMPLATEPATH . '/searchform.php'); ?>
- <?php endif; ?>
- </div>
- <?php include(TEMPLATEPATH."/right.php");?>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment