Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The main template file.
- *
- * This is the most generic template file in a WordPress theme
- * and one of the two required files for a theme (the other being style.css).
- * It is used to display a page when nothing more specific matches a query.
- * E.g., it puts together the home page when no home.php file exists.
- * Learn more: http://codex.wordpress.org/Template_Hierarchy
- *
- * @package WordPress
- * @subpackage Twenty_Eleven
- */
- get_header(); ?>
- <?php if ( have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php if (is_home()) {
- query_posts("cat=-5");
- } ?>
- <div id="posts">
- <div id="headingbanner"></div>
- <div id="line-wrap">
- <div class="columns-wrapper">
- <?php
- $count = 0;
- while(have_posts()) : the_post()
- ?>
- <div class="box<?php if( $count%2 == 0 ) { echo '-1'; }; $count++; ?>">
- <div class="post-sep"></div>
- <a href="<?php the_permalink(); ?>">
- <h1><?php the_title(); ?></h1></a> <div class="entry-meta"> </div>
- <?php the_post_thumbnail (); ?><?php the_excerpt(); ?>
- <!--and other output of the loop -->
- </div>
- <?php endwhile; ?><?php rewind_posts();?>
- </div><!--end columns-wrapper-->
- <?php rewind_posts(); ?>
- <?php else : ?>
- <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
- <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
- <?php get_search_form(); ?>
- <?php endif; ?>
- </div> <div class="clear"></div> <div style="margin: 0 2% 2% 2%; padding: 5%; border-bottom: 1px solid #ccc; border-top: 1px solid #ccc;">
- <div class="navigation"><p><?php posts_nav_link('∞','Go
- Forward → ',' ← Go Back'); ?></p></div> </div></div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement