Ticket #25256: twentyten.2.diff
File twentyten.2.diff, 13.9 KB (added by , 12 years ago) |
---|
-
src/wp-content/themes/twentyten/archive.php
18 18 <div id="content" role="main"> 19 19 20 20 <?php 21 /** 22 * Queue the first post, that way we know 21 /* Queue the first post, that way we know 23 22 * what date we're dealing with (if that is the case). 24 23 * 25 24 * We reset this later so we can run the loop … … 42 41 </h1> 43 42 44 43 <?php 45 /** 46 * Since we called the_post() above, we need to 44 /* Since we called the_post() above, we need to 47 45 * rewind the loop back to the beginning that way 48 46 * we can run the loop properly, in full. 49 47 */ 50 48 rewind_posts(); 51 49 52 /** 53 * Run the loop for the archives page to output the posts. 50 /* Run the loop for the archives page to output the posts. 54 51 * If you want to overload this in a child theme then include a file 55 52 * called loop-archive.php and that will be used instead. 56 53 */ -
src/wp-content/themes/twentyten/attachment.php
13 13 <div id="content" role="main"> 14 14 15 15 <?php 16 /** 17 * Run the loop to output the attachment. 16 /* Run the loop to output the attachment. 18 17 * If you want to overload this in a child theme then include a file 19 18 * called loop-attachment.php and that will be used instead. 20 19 */ -
src/wp-content/themes/twentyten/author.php
13 13 <div id="content" role="main"> 14 14 15 15 <?php 16 /** 17 * Queue the first post, that way we know who 16 /* Queue the first post, that way we know who 18 17 * the author is when we try to get their name, 19 18 * URL, description, avatar, etc. 20 19 * … … 51 50 <?php endif; ?> 52 51 53 52 <?php 54 /** 55 * Since we called the_post() above, we need to 53 /* Since we called the_post() above, we need to 56 54 * rewind the loop back to the beginning that way 57 55 * we can run the loop properly, in full. 58 56 */ 59 57 rewind_posts(); 60 58 61 /** 62 * Run the loop for the author archive page to output the authors posts 59 /* Run the loop for the author archive page to output the authors posts 63 60 * If you want to overload this in a child theme then include a file 64 61 * called loop-author.php and that will be used instead. 65 62 */ -
src/wp-content/themes/twentyten/category.php
20 20 if ( ! empty( $category_description ) ) 21 21 echo '<div class="archive-meta">' . $category_description . '</div>'; 22 22 23 /** 24 * Run the loop for the category page to output the posts. 23 /* Run the loop for the category page to output the posts. 25 24 * If you want to overload this in a child theme then include a file 26 25 * called loop-category.php and that will be used instead. 27 26 */ -
src/wp-content/themes/twentyten/comments.php
18 18 <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p> 19 19 </div><!-- #comments --> 20 20 <?php 21 /** 22 * Stop the rest of comments.php from being processed, 21 /* Stop the rest of comments.php from being processed, 23 22 * but don't kill the script entirely -- we still have 24 23 * to fully load the template. 25 24 */ … … 46 45 47 46 <ol class="commentlist"> 48 47 <?php 49 /** 50 * Loop through and list the comments. Tell wp_list_comments() 48 /* Loop through and list the comments. Tell wp_list_comments() 51 49 * to use twentyten_comment() to format the comments. 52 50 * If you want to overload this in a child theme then you can 53 51 * define twentyten_comment() and that will be used instead. … … 65 63 <?php endif; // check for comment navigation ?> 66 64 67 65 <?php 68 /** 69 * If there are no comments and comments are closed, let's leave a little note, shall we? 66 /* If there are no comments and comments are closed, let's leave a little note, shall we? 70 67 * But we only want the note on posts and pages that had comments in the first place. 71 68 */ 72 69 if ( ! comments_open() && get_comments_number() ) : ?> -
src/wp-content/themes/twentyten/footer.php
16 16 <div id="colophon"> 17 17 18 18 <?php 19 /** 20 * A sidebar in the footer? Yep. You can can customize 19 /* A sidebar in the footer? Yep. You can can customize 21 20 * your footer with four columns of widgets. 22 21 */ 23 22 get_sidebar( 'footer' ); … … 46 45 </div><!-- #wrapper --> 47 46 48 47 <?php 49 /** 50 * Always have wp_footer() just before the closing </body> 48 /* Always have wp_footer() just before the closing </body> 51 49 * tag of your theme, or you will break many plugins, which 52 50 * generally use this hook to reference JavaScript files. 53 51 */ -
src/wp-content/themes/twentyten/functions.php
38 38 * @since Twenty Ten 1.0 39 39 */ 40 40 41 /** 42 * Set the content width based on the theme's design and stylesheet. 41 /* Set the content width based on the theme's design and stylesheet. 43 42 * 44 43 * Used to set the width of images and content. Should be equal to the width the theme 45 44 * is designed for, generally via the style.css stylesheet. … … 47 46 if ( ! isset( $content_width ) ) 48 47 $content_width = 640; 49 48 50 /* *Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */49 /* Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */ 51 50 add_action( 'after_setup_theme', 'twentyten_setup' ); 52 51 53 52 if ( ! function_exists( 'twentyten_setup' ) ): … … 84 83 // Add default posts and comments RSS feed links to head 85 84 add_theme_support( 'automatic-feed-links' ); 86 85 87 /** 88 * Make theme available for translation. 86 /* Make theme available for translation. 89 87 * Translations can be filed in the /languages/ directory 90 88 */ 91 89 load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' ); … … 104 102 // The custom header business starts here. 105 103 106 104 $custom_header_support = array( 107 /** 108 * The default image to use. 105 /* The default image to use. 109 106 * The %s is a placeholder for the theme template directory URI. 110 107 */ 111 108 'default-image' => '%s/images/headers/path.jpg', … … 147 144 add_custom_background(); 148 145 } 149 146 150 /** 151 * We'll be using post thumbnails for custom header images on posts and pages. 147 /* We'll be using post thumbnails for custom header images on posts and pages. 152 148 * We want them to be 940 pixels wide by 198 pixels tall. 153 149 * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. 154 150 */ -
src/wp-content/themes/twentyten/header.php
37 37 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> 38 38 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 39 39 <?php 40 /** 41 * We add some JavaScript to pages with the comment form 40 /* We add some JavaScript to pages with the comment form 42 41 * to support sites with threaded comments (when in use). 43 42 */ 44 43 if ( is_singular() && get_option( 'thread_comments' ) ) 45 44 wp_enqueue_script( 'comment-reply' ); 46 45 47 /** 48 * Always have wp_head() just before the closing </head> 46 /* Always have wp_head() just before the closing </head> 49 47 * tag of your theme, or you will break many plugins, which 50 48 * generally use this hook to add elements to <head> such 51 49 * as styles, scripts, and meta tags. … … 70 68 <?php 71 69 // Compatibility with versions of WordPress prior to 3.4. 72 70 if ( function_exists( 'get_custom_header' ) ) { 73 /** 74 * We need to figure out what the minimum width should be for our featured image. 71 /* We need to figure out what the minimum width should be for our featured image. 75 72 * This result would be the suggested width if the theme were to implement flexible widths. 76 73 */ 77 74 $header_image_width = get_theme_support( 'custom-header', 'width' ); -
src/wp-content/themes/twentyten/index.php
19 19 <div id="content" role="main"> 20 20 21 21 <?php 22 /** 23 * Run the loop to output the posts. 22 /* Run the loop to output the posts. 24 23 * If you want to overload this in a child theme then include a file 25 24 * called loop-index.php and that will be used instead. 26 25 */ -
src/wp-content/themes/twentyten/loop.php
39 39 <?php endif; ?> 40 40 41 41 <?php 42 /** 43 * Start the Loop. 42 /* Start the Loop. 44 43 * 45 44 * In Twenty Ten we use the same loop in multiple contexts. 46 45 * It is broken into three main parts: when we're displaying -
src/wp-content/themes/twentyten/onecolumn-page.php
18 18 <div id="content" role="main"> 19 19 20 20 <?php 21 /** 22 * Run the loop to output the page. 21 /* Run the loop to output the page. 23 22 * If you want to overload this in a child theme then include a file 24 23 * called loop-page.php and that will be used instead. 25 24 */ -
src/wp-content/themes/twentyten/page.php
18 18 <div id="content" role="main"> 19 19 20 20 <?php 21 /** 22 * Run the loop to output the page. 21 /* Run the loop to output the page. 23 22 * If you want to overload this in a child theme then include a file 24 23 * called loop-page.php and that will be used instead. 25 24 */ -
src/wp-content/themes/twentyten/search.php
15 15 <?php if ( have_posts() ) : ?> 16 16 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1> 17 17 <?php 18 /** 19 * Run the loop for the search to output the results. 18 /* Run the loop for the search to output the results. 20 19 * If you want to overload this in a child theme then include a file 21 20 * called loop-search.php and that will be used instead. 22 21 */ -
src/wp-content/themes/twentyten/sidebar-footer.php
9 9 ?> 10 10 11 11 <?php 12 /** 13 * The footer widget area is triggered if any of the areas 12 /* The footer widget area is triggered if any of the areas 14 13 * have widgets. So let's check that first. 15 14 * 16 15 * If none of the sidebars have widgets, then let's bail early. -
src/wp-content/themes/twentyten/sidebar.php
12 12 <ul class="xoxo"> 13 13 14 14 <?php 15 /** 16 * When we call the dynamic_sidebar() function, it'll spit out 15 /* When we call the dynamic_sidebar() function, it'll spit out 17 16 * the widgets for that widget area. If it instead returns false, 18 17 * then the sidebar simply doesn't exist, so we'll hard-code in 19 18 * some default sidebar stuff just in case. -
src/wp-content/themes/twentyten/single.php
13 13 <div id="content" role="main"> 14 14 15 15 <?php 16 /** 17 * Run the loop to output the post. 16 /* Run the loop to output the post. 18 17 * If you want to overload this in a child theme then include a file 19 18 * called loop-single.php and that will be used instead. 20 19 */ -
src/wp-content/themes/twentyten/tag.php
17 17 ?></h1> 18 18 19 19 <?php 20 /** 21 * Run the loop for the tag archive to output the posts 20 /* Run the loop for the tag archive to output the posts 22 21 * If you want to overload this in a child theme then include a file 23 22 * called loop-tag.php and that will be used instead. 24 23 */