View difference between Paste ID: Gm9htgMr and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | <?php |
2 | /** | |
3 | * The main template file. | |
4 | * | |
5 | * This is the most generic template file in a WordPress theme | |
6 | * and one of the two required files for a theme (the other being style.css). | |
7 | * It is used to display a page when nothing more specific matches a query. | |
8 | * E.g., it puts together the home page when no home.php file exists. | |
9 | * Learn more: http://codex.wordpress.org/Template_Hierarchy | |
10 | * | |
11 | * @package WordPress | |
12 | * @subpackage Twenty_Ten | |
13 | * @since Twenty Ten 1.0 | |
14 | */ | |
15 | ||
16 | get_header(); ?> | |
17 | ||
18 | <div id="container"> | |
19 | <div id="content" role="main"> | |
20 | ||
21 | <?php | |
22 | $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
23 | $args=array( | |
24 | 'paged'=>$paged, | |
25 | ); | |
26 | query_posts($args); | |
27 | ?> | |
28 | <?php if (have_posts()) : ?> | |
29 | <?php while (have_posts()) : the_post(); $count++; ?> | |
30 | ||
31 | <div class="post wrap"> | |
32 | <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> | |
33 | ||
34 | <?php the_excerpt(); ?> | |
35 | ||
36 | </div> | |
37 | ||
38 | <?php endwhile; ?> | |
39 | ||
40 | <div class="more_entries"> | |
41 | <div class="alignleft"><h2><?php next_posts_link(__('« Older Entries',wothemes)) ?></h2></div> | |
42 | <div class="alignright"><h2><?php previous_posts_link(__('Newer Entries »',woothemes)) ?></h2></div> | |
43 | </div> | |
44 | ||
45 | <?php endif; ?> | |
46 | ||
47 | </div><!-- #content --> | |
48 | </div><!-- #container --> | |
49 | ||
50 | <?php get_sidebar(); ?> | |
51 | <?php get_footer(); ?> |