Changeset 13128 for trunk/wp-content/themes/twentyten/index.php
- Timestamp:
- 02/14/2010 01:00:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/index.php
r13111 r13128 6 6 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 7 7 <div id="nav-above" class="navigation"> 8 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>9 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>8 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 9 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 10 10 </div><!-- #nav-above --> 11 11 <?php } ?> … … 17 17 18 18 <div class="entry-meta"> 19 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 20 <a href="<?php 21 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 22 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 23 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 19 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 20 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 21 <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span> 22 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 24 23 </div><!-- .entry-meta --> 25 24 26 25 <div class="entry-content"> 27 <div class="gallery-thumb"><a class="size-thumbnail" href="<?php the_permalink() ?>"><?php 28 $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) ); 29 $total_images = count($images); 30 $image = array_shift($images); 31 echo wp_get_attachment_image( $image->ID, 'thumbnail' ); 32 ?></a></div> 26 <div class="gallery-thumb"> 27 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php 28 $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) ); 29 $total_images = count($images); 30 $image = array_shift($images); 31 echo wp_get_attachment_image( $image->ID, 'thumbnail' ); 32 ?></a> 33 </div> 33 34 <p><em><?php printf( __('This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten'), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ) . '" rel="bookmark"', $total_images ); ?></em></p> 34 35 35 <?php the_excerpt( ''); ?>36 <?php the_excerpt( '' ); ?> 36 37 </div><!-- .entry-content --> 37 38 … … 42 43 ?> 43 44 <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a> 44 45 <span class="meta-sep"> | </span> 46 47 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> 48 49 <?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" ) ?> 45 <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> 46 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 47 <?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" ); ?> 50 48 </div><!-- #entry-utility --> 51 49 </div> … … 55 53 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 56 54 <div class="entry-content"> 57 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' )); ?>55 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 58 56 </div><!-- .entry-content --> 59 57 60 58 <div class="entry-utility"> 61 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 62 <a href="<?php 63 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 64 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 65 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 66 <span class="meta-sep"> | </span> 67 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> 68 <?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" ) ?> 59 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 60 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 61 <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span> 62 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 63 <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> 64 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 65 <?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" ); ?> 69 66 </div><!-- #entry-utility --> 70 67 </div><!-- #post-<?php the_ID(); ?> --> … … 78 75 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 79 76 <a href="<?php 80 the_permalink(); ?>" title="<?php the_time( 'Y-m-d\TH:i:sO')?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>81 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?></span>82 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID , $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name); ?>"><?php the_author(); ?></a></span>77 the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 78 <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span> 79 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 83 80 </div><!-- .entry-meta --> 84 81 85 82 <div class="entry-content"> 86 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' )); ?>87 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>')?>83 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 84 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?> 88 85 </div><!-- .entry-content --> 89 86 90 87 <div class="entry-utility"> 91 <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>92 <span class="meta-sep"> |</span>93 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'twentyten' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\">|</span>\n" ) ?>94 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>95 <?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" ) ?>88 <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> 89 <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> 90 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'twentyten' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\">|</span>\n" ); ?> 91 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 92 <?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" ); ?> 96 93 </div><!-- #entry-utility --> 97 94 </div><!-- #post-<?php the_ID(); ?> --> 98 95 99 <?php comments_template(); ?>96 <?php comments_template( '', true ); ?> 100 97 101 98 <?php } ?> … … 105 102 <div class="entry-content"> 106 103 <p><?php _e( 'Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'twentyten' ); ?></p> 107 <?php get_search_form(); ?>104 <?php get_search_form(); ?> 108 105 </div> 109 106 <?php endif; ?> … … 111 108 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 112 109 <div id="nav-below" class="navigation"> 113 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>114 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>110 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 111 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 115 112 </div><!-- #nav-below --> 116 113 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.