View difference between Paste ID: u0M0vAWU and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | <?php |
2 | // Template Name: Blog | |
3 | ||
4 | get_header(); | |
5 | ?> | |
6 | ||
7 | <div id="container"> | |
8 | ||
9 | <div id="content" role="main"> | |
10 | ||
11 | <?php | |
12 | $paged = get_query_var('paged') ? get_query_var('paged') : 1; | |
13 | query_posts( array( 'cat' => -0, 'paged'=> $paged ) ); | |
14 | if ( have_posts() ) : $count = 0; while ( have_posts() ) : the_post(); $count++; | |
15 | ?> | |
16 | ||
17 | <!-- Post Starts --> | |
18 | <div <?php post_class(); ?>> | |
19 | ||
20 | <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> | |
21 | ||
22 | <div class="entry"> | |
23 | <?php global $more; $more = 0; ?> | |
24 | <?php the_excerpt(); ?> | |
25 | </div> | |
26 | ||
27 | </div><!-- /.post --> | |
28 | ||
29 | <?php endwhile; else: ?> | |
30 | ||
31 | <div class="post"> | |
32 | <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes') ?></p> | |
33 | </div><!-- /.post --> | |
34 | ||
35 | <?php endif; ?> | |
36 | ||
37 | ||
38 | <div id="nav-below" class="navigation"> | |
39 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> | |
40 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> | |
41 | </div><!-- #nav-below --> | |
42 | ||
43 | <?php wp_reset_query(); ?> | |
44 | ||
45 | </div><!-- #content --> | |
46 | ||
47 | </div><!-- #container --> | |
48 | ||
49 | <?php | |
50 | get_sidebar(); | |
51 | get_footer(); | |
52 | ?> |