Changeset 14786
- Timestamp:
- 05/21/2010 06:56:27 PM (14 years ago)
- Location:
- trunk/wp-content/themes/twentyten
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/attachment.php
r14708 r14786 52 52 ) 53 53 ); 54 } 54 } 55 55 ?> 56 56 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> … … 83 83 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> 84 84 <?php endif; ?> 85 </div> 85 </div><!-- .entry-attachment --> 86 86 <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div> 87 87 -
trunk/wp-content/themes/twentyten/author.php
r14708 r14786 33 33 <div id="author-avatar"> 34 34 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> 35 </div><!-- #author-avatar 35 </div><!-- #author-avatar --> 36 36 <div id="author-description"> 37 37 <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> 38 38 <?php the_author_meta( 'description' ); ?> 39 39 </div><!-- #author-description --> 40 </div><!-- .entry-author-info -->40 </div><!-- #entry-author-info --> 41 41 <?php endif; ?> 42 42 -
trunk/wp-content/themes/twentyten/comments.php
r14708 r14786 17 17 <?php if ( post_password_required() ) : ?> 18 18 <div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></div> 19 </div><!-- .comments -->19 </div><!-- #comments --> 20 20 <?php 21 21 /* Stop the rest of comments.php from being processed, … … 41 41 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyten' ) ); ?></div> 42 42 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyten' ) ); ?></div> 43 </div> 43 </div> <!-- .navigation --> 44 44 <?php endif; // check for comment navigation ?> 45 45 … … 60 60 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyten' ) ); ?></div> 61 61 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyten' ) ); ?></div> 62 </div> 62 </div><!-- .navigation --> 63 63 <?php endif; // check for comment navigation ?> 64 64 … … 71 71 ?> 72 72 <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p> 73 <?php endif; // end ! comments_open ed() ?>73 <?php endif; // end ! comments_open() ?> 74 74 75 75 <?php endif; // end have_comments() ?> -
trunk/wp-content/themes/twentyten/editor-style-rtl.css
r14466 r14786 1 /* 2 Theme Name: Twenty Ten 3 */ 4 /* 5 Used to style the TinyMCE editor. 6 */ 1 7 html .mceContentBody{ 2 8 direction:rtl; -
trunk/wp-content/themes/twentyten/editor-style.css
r13178 r14786 1 /* 2 Theme Name: Twenty Ten 3 */ 4 /* 5 Used to style the TinyMCE editor. 6 */ 1 7 html .mceContentBody { 2 8 max-width:640px; -
trunk/wp-content/themes/twentyten/footer.php
r14708 r14786 27 27 <?php bloginfo( 'name' ); ?> 28 28 </a> 29 </div> 29 </div><!-- #site-info --> 30 30 31 31 <div id="site-generator"> … … 35 35 <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?> 36 36 </a> 37 </div> 37 </div><!-- #site-generator --> 38 38 39 39 </div><!-- #colophon --> … … 42 42 </div><!-- #wrapper --> 43 43 44 <?php wp_footer(); ?> 44 <?php 45 /* Always have wp_footer() just before the closing </body> 46 * tag of your theme, or you will break many plugins, which 47 * generally use this hook to reference JavaScript files. 48 */ 45 49 50 wp_footer(); 51 ?> 46 52 </body> 47 53 </html> -
trunk/wp-content/themes/twentyten/functions.php
r14709 r14786 32 32 * </code> 33 33 * 34 * For more information on hooks, see http://codex.wordpress.org/Plugin_API.34 * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API. 35 35 * 36 36 * @package WordPress … … 111 111 112 112 // We'll be using post thumbnails for custom header images on posts and pages. 113 // We want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit). 113 // We want them to be 940 pixels wide by 198 pixels tall. 114 // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. 114 115 set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); 115 116 … … 134 135 'url' => '%s/images/headers/cherryblossoms.jpg', 135 136 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', 136 /* translators: header image description */ 137 /* translators: header image description */ 137 138 'description' => __( 'Cherry Blossoms', 'twentyten' ) 138 139 ), … … 140 141 'url' => '%s/images/headers/concave.jpg', 141 142 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', 142 /* translators: header image description */ 143 /* translators: header image description */ 143 144 'description' => __( 'Concave', 'twentyten' ) 144 145 ), … … 146 147 'url' => '%s/images/headers/fern.jpg', 147 148 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', 148 /* translators: header image description */ 149 /* translators: header image description */ 149 150 'description' => __( 'Fern', 'twentyten' ) 150 151 ), … … 152 153 'url' => '%s/images/headers/forestfloor.jpg', 153 154 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', 154 /* translators: header image description */ 155 /* translators: header image description */ 155 156 'description' => __( 'Forest Floor', 'twentyten' ) 156 157 ), … … 158 159 'url' => '%s/images/headers/inkwell.jpg', 159 160 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', 160 /* translators: header image description */ 161 /* translators: header image description */ 161 162 'description' => __( 'Inkwell', 'twentyten' ) 162 163 ), … … 164 165 'url' => '%s/images/headers/path.jpg', 165 166 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', 166 /* translators: header image description */ 167 /* translators: header image description */ 167 168 'description' => __( 'Path', 'twentyten' ) 168 169 ), … … 170 171 'url' => '%s/images/headers/sunset.jpg', 171 172 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', 172 /* translators: header image description */ 173 /* translators: header image description */ 173 174 'description' => __( 'Sunset', 'twentyten' ) 174 175 ) … … 289 290 <?php echo get_avatar( $comment, 40 ); ?> 290 291 <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 291 </div> 292 </div><!-- .comment-author .vcard --> 292 293 <?php if ( $comment->comment_approved == '0' ) : ?> 293 294 <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> … … 300 301 printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); 301 302 ?> 302 </div> 303 </div><!-- .comment-meta .commentmetadata --> 303 304 304 305 <div class="comment-body"><?php comment_text(); ?></div> … … 306 307 <div class="reply"> 307 308 <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 308 </div> 309 </div> 309 </div><!-- .reply --> 310 </div><!-- #comment-## --> 310 311 311 312 <?php else : ?> … … 326 327 */ 327 328 function twentyten_widgets_init() { 328 // Area 1 329 // Area 1, located at the top of the sidebar. 329 330 register_sidebar( array( 330 331 'name' => __( 'Primary Widget Area', 'twentyten' ), … … 337 338 ) ); 338 339 339 // Area 2 340 // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. 340 341 register_sidebar( array( 341 342 'name' => __( 'Secondary Widget Area', 'twentyten' ), … … 348 349 ) ); 349 350 350 // Area 3 351 // Area 3, located in the footer. Empty by default. 351 352 register_sidebar( array( 352 353 'name' => __( 'First Footer Widget Area', 'twentyten' ), … … 359 360 ) ); 360 361 361 // Area 4 362 // Area 4, located in the footer. Empty by default. 362 363 register_sidebar( array( 363 364 'name' => __( 'Second Footer Widget Area', 'twentyten' ), … … 370 371 ) ); 371 372 372 // Area 5 373 // Area 5, located in the footer. Empty by default. 373 374 register_sidebar( array( 374 375 'name' => __( 'Third Footer Widget Area', 'twentyten' ), … … 381 382 ) ); 382 383 383 // Area 6 384 // Area 6, located in the footer. Empty by default. 384 385 register_sidebar( array( 385 386 'name' => __( 'Fourth Footer Widget Area', 'twentyten' ), … … 423 424 get_the_date() 424 425 ), 425 sprintf( '</span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 426 sprintf( '</span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 426 427 get_author_posts_url( get_the_author_meta( 'ID' ) ), 427 428 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), … … 429 430 ) 430 431 ); 431 432 432 } 433 433 endif; … … 454 454 get_permalink(), 455 455 the_title_attribute( 'echo=0' ) 456 ); 457 } 458 endif; 456 ); 457 } 458 endif; -
trunk/wp-content/themes/twentyten/header.php
r14708 r14786 14 14 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 15 15 <title> 16 <?php 17 if ( is_single() ) { 16 <?php // Returns the title based on what is being viewed 17 if ( is_single() ) { // single posts 18 18 single_post_title(); echo ' | '; bloginfo( 'name' ); 19 // The home page or, if using a static front page, the blog posts page. 19 20 } elseif ( is_home() || is_front_page() ) { 20 bloginfo( 'name' ); 21 if( get_bloginfo( 'description' ) ) 22 echo ' | ' ; bloginfo( 'description' ); 21 bloginfo( 'name' ); 22 if( get_bloginfo( 'description' ) ) 23 echo ' | ' ; bloginfo( 'description' ); 23 24 twentyten_the_page_number(); 24 } elseif ( is_page() ) { 25 } elseif ( is_page() ) { // WordPress Pages 25 26 single_post_title( '' ); echo ' | '; bloginfo( 'name' ); 26 } elseif ( is_search() ) { 27 } elseif ( is_search() ) { // Search results 27 28 printf( __( 'Search results for %s', 'twentyten' ), '"'.get_search_query().'"' ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' ); 28 } elseif ( is_404() ) { 29 } elseif ( is_404() ) { // 404 (Not Found) 29 30 _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' ); 30 } else { 31 } else { // Otherwise: 31 32 wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number(); 32 33 } … … 35 36 <link rel="profile" href="http://gmpg.org/xfn/11" /> 36 37 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> 37 <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>38 38 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 39 <?php wp_head(); ?> 39 <?php 40 /* We add some JavaScript to pages with the comment form 41 * to support sites with threaded comments (when in use). 42 */ 43 if ( is_singular() && get_option( 'thread_comments' ) ) 44 wp_enqueue_script( 'comment-reply' ); 45 46 /* Always have wp_head() just before the closing </head> 47 * tag of your theme, or you will break many plugins, which 48 * generally use this hook to add elements to <head> such 49 * as styles, scripts, and meta tags. 50 */ 51 52 wp_head(); 53 ?> 40 54 </head> 41 55 … … 67 81 68 82 <div id="access" role="navigation"> 83 <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> 69 84 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div> 85 <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> 70 86 <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> 71 87 </div><!-- #access --> -
trunk/wp-content/themes/twentyten/loop.php
r14708 r14786 7 7 * http://codex.wordpress.org/Template_Tags to understand 8 8 * the tags used in it. 9 * 10 * This can be overridden in child themes with loop.php or 11 * loop-template.php, where 'template' is the loop context 12 * requested by a template. For example, loop-index.php would 13 * be used if it exists and we ask for the loop with: 14 * <code>get_template_part( 'loop', 'index' );</code> 9 15 * 10 16 * @package WordPress … … 69 75 ?> 70 76 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> 71 </div> 77 </div><!-- .gallery-thumb --> 72 78 <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ), 73 79 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', … … 83 89 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 84 90 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 85 </div><!-- #entry-utility -->86 </div> 91 </div><!-- .entry-utility --> 92 </div><!-- #post-## --> 87 93 88 94 <?php /* How to display posts in the asides category */ ?> … … 106 112 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 107 113 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 108 </div><!-- #entry-utility -->109 </div><!-- #post- (id)-->114 </div><!-- .entry-utility --> 115 </div><!-- #post-## --> 110 116 111 117 <?php /* How to display all other posts. */ ?> … … 148 154 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 149 155 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 150 </div><!-- #entry-utility -->156 </div><!-- .entry-utility --> 151 157 </div><!-- #post-<?php the_ID(); ?> --> 152 158 -
trunk/wp-content/themes/twentyten/search.php
r14708 r14786 30 30 <?php get_search_form(); ?> 31 31 </div><!-- .entry-content --> 32 </div> 32 </div><!-- #post-0 --> 33 33 <?php endif; ?> 34 34 </div><!-- #content --> -
trunk/wp-content/themes/twentyten/single.php
r14708 r14786 47 47 </div><!-- #author-link --> 48 48 </div><!-- #author-description --> 49 </div><!-- .entry-author-info -->49 </div><!-- #entry-author-info --> 50 50 <?php endif; ?> 51 51 … … 54 54 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 55 55 </div><!-- .entry-utility --> 56 </div><!-- #post- (id)-->56 </div><!-- #post-## --> 57 57 58 58 <div id="nav-below" class="navigation">
Note: See TracChangeset
for help on using the changeset viewer.