Changeset 14433 for trunk/wp-content/themes/twentyten/loop.php
- Timestamp:
- 05/04/2010 07:01:09 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/loop.php
r14391 r14433 14 14 ?> 15 15 16 <?php /* Display navigation to next/previous pages when applicable 16 <?php /* Display navigation to next/previous pages when applicable */ ?> 17 17 <?php if ( $wp_query->max_num_pages > 1 ) : ?> 18 18 <div id="nav-above" class="navigation"> … … 22 22 <?php endif; ?> 23 23 24 <?php /* If there are no posts to display, such as an empty archive page 24 <?php /* If there are no posts to display, such as an empty archive page */ ?> 25 25 <?php if ( ! have_posts() ) : ?> 26 26 <div id="post-0" class="post error404 not-found"> … … 33 33 <?php endif; ?> 34 34 35 <?php /* Start the Loop 35 <?php /* Start the Loop */ ?> 36 36 <?php while ( have_posts() ) : the_post(); ?> 37 37 38 <?php /* How to Display posts in the Gallery Category 38 <?php /* How to Display posts in the Gallery Category */ ?> 39 39 <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?> 40 40 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 92 92 <?php else : ?> 93 93 <div class="entry-content"> 94 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>94 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 95 95 </div><!-- .entry-content --> 96 96 <?php endif; ?> … … 113 113 </div><!-- #post-<?php the_ID(); ?> --> 114 114 115 <?php /* How to display all other posts 115 <?php /* How to display all other posts */ ?> 116 116 <?php else : ?> 117 117 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 137 137 <?php else : ?> 138 138 <div class="entry-content"> 139 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>139 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 140 140 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> 141 141 </div><!-- .entry-content --> … … 156 156 <?php endwhile; ?> 157 157 158 <?php /* Display navigation to next/previous pages when applicable 158 <?php /* Display navigation to next/previous pages when applicable */ ?> 159 159 <?php if ( $wp_query->max_num_pages > 1 ) : ?> 160 160 <div id="nav-below" class="navigation">
Note: See TracChangeset
for help on using the changeset viewer.