Changeset 13025 for trunk/wp-content/themes/twentyten/search.php
- Timestamp:
- 02/08/2010 06:02:23 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyten/search.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/search.php
r13012 r13025 1 1 <?php get_header(); ?> 2 3 <div id="container"> 2 3 <div id="container"> 4 4 <div id="content"> 5 5 6 6 <?php if ( have_posts() ) : ?> 7 7 8 8 <h1 class="page-title"><?php _e( 'Search Results for: ', 'twentyten' ); ?><span><?php the_search_query(); ?></span></h1> 9 9 10 10 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 11 11 <div id="nav-above" class="navigation"> … … 13 13 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> 14 14 </div><!-- #nav-above --> 15 <?php } ?> 15 <?php } ?> 16 16 17 17 <?php while ( have_posts() ) : the_post() ?> … … 20 20 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 21 21 22 <?php if ( $post->post_type == 'post' ) { ?> 22 <?php if ( $post->post_type == 'post' ) { ?> 23 23 <div class="entry-meta"> 24 24 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> … … 26 26 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a> 27 27 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 28 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 28 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 29 29 </div><!-- .entry-meta --> 30 30 <?php } ?> 31 32 <div class="entry-summary"> 31 32 <div class="entry-summary"> 33 33 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 34 34 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?> 35 35 </div><!-- .entry-summary --> 36 36 37 <?php if ( $post->post_type == 'post' ) { ?> 37 <?php if ( $post->post_type == 'post' ) { ?> 38 38 <div class="entry-utility"> 39 39 <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'twentyten' ); ?></span><?php echo get_the_category_list(', '); ?></span> … … 42 42 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> 43 43 <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?> 44 </div><!-- #entry-utility --> 45 <?php } ?> 44 </div><!-- #entry-utility --> 45 <?php } ?> 46 46 </div><!-- #post-<?php the_ID(); ?> --> 47 47 … … 53 53 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> 54 54 </div><!-- #nav-below --> 55 <?php } ?> 55 <?php } ?> 56 56 57 57 <?php else : ?> … … 61 61 <div class="entry-content"> 62 62 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p> 63 <?php get_search_form(); ?> 63 <?php get_search_form(); ?> 64 64 </div><!-- .entry-content --> 65 65 </div> 66 66 67 <?php endif; ?> 67 <?php endif; ?> 68 68 69 </div><!-- #content --> 69 </div><!-- #content --> 70 70 </div><!-- #container --> 71 72 <?php get_sidebar(); ?> 71 72 <?php get_sidebar(); ?> 73 73 <?php get_footer(); ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)