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