Ticket #25256: twentyeleven.3.diff
File twentyeleven.3.diff, 10.2 KB (added by , 12 years ago) |
---|
-
src/wp-content/themes/twentyeleven/author.php
15 15 <?php if ( have_posts() ) : ?> 16 16 17 17 <?php 18 /* *18 /* 19 19 * Queue the first post, that way we know what author 20 20 * we're dealing with (if that is the case). 21 21 * … … 30 30 </header> 31 31 32 32 <?php 33 /* *33 /* 34 34 * Since we called the_post() above, we need to 35 35 * rewind the loop back to the beginning that way 36 36 * we can run the loop properly, in full. … … 67 67 <?php while ( have_posts() ) : the_post(); ?> 68 68 69 69 <?php 70 /* *70 /* 71 71 * Include the Post-Format-specific template for the content. 72 72 * If you want to overload this in a child theme then include a file 73 73 * called content-___.php (where ___ is the Post Format name) and that will be used instead. -
src/wp-content/themes/twentyeleven/category.php
40 40 <?php while ( have_posts() ) : the_post(); ?> 41 41 42 42 <?php 43 /* *43 /* 44 44 * Include the Post-Format-specific template for the content. 45 45 * If you want to overload this in a child theme then include a file 46 46 * called content-___.php (where ___ is the Post Format name) and that will be used instead. -
src/wp-content/themes/twentyeleven/comments.php
17 17 <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p> 18 18 </div><!-- #comments --> 19 19 <?php 20 /* *20 /* 21 21 * Stop the rest of comments.php from being processed, 22 22 * but don't kill the script entirely -- we still have 23 23 * 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 twentyeleven_comment() to format the comments. 52 52 * If you want to overload this in a child theme then you can … … 66 66 <?php endif; // check for comment navigation ?> 67 67 68 68 <?php 69 /* *69 /* 70 70 * If there are no comments and comments are closed, let's leave a little note, shall we? 71 71 * But we only want the note on posts and pages that had comments in the first place. 72 72 */ -
src/wp-content/themes/twentyeleven/footer.php
15 15 <footer id="colophon" role="contentinfo"> 16 16 17 17 <?php 18 /* *18 /* 19 19 * A sidebar in the footer? Yep. You can can customize 20 20 * your footer with three columns of widgets. 21 21 */ -
src/wp-content/themes/twentyeleven/functions.php
38 38 * @since Twenty Eleven 1.0 39 39 */ 40 40 41 /** 42 * Set the content width based on the theme's design and stylesheet. 43 */ 41 // Set the content width based on the theme's design and stylesheet. 44 42 if ( ! isset( $content_width ) ) 45 43 $content_width = 584; 46 44 47 /* *45 /* 48 46 * Tell WordPress to run twentyeleven_setup() when the 'after_setup_theme' hook is run. 49 47 */ 50 48 add_action( 'after_setup_theme', 'twentyeleven_setup' ); … … 72 70 */ 73 71 function twentyeleven_setup() { 74 72 75 /* *73 /* 76 74 * Make Twenty Eleven available for translation. 77 75 * Translations can be added to the /languages/ directory. 78 76 * If you're building a theme based on Twenty Eleven, use … … 107 105 108 106 // Add support for custom backgrounds. 109 107 add_theme_support( 'custom-background', array( 110 /* *108 /* 111 109 * Let WordPress know what our default background color is. 112 110 * This is dependent on our current color scheme. 113 111 */ … … 162 160 add_custom_background(); 163 161 } 164 162 165 /* *163 /* 166 164 * We'll be using post thumbnails for custom header images on posts and pages. 167 165 * We want them to be the size of the header image that we just defined. 168 166 * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. 169 167 */ 170 168 set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); 171 169 172 /* *170 /* 173 171 * Add Twenty Eleven's custom image sizes. 174 172 * Used for large feature (header) images. 175 173 */ -
src/wp-content/themes/twentyeleven/header.php
25 25 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 26 26 <meta name="viewport" content="width=device-width" /> 27 27 <title><?php 28 /** 29 * Print the <title> tag based on what is being viewed. 30 */ 28 // Print the <title> tag based on what is being viewed. 31 29 global $page, $paged; 32 30 33 31 wp_title( '|', true, 'right' ); … … 52 50 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> 53 51 <![endif]--> 54 52 <?php 55 /* *53 /* 56 54 * We add some JavaScript to pages with the comment form 57 55 * to support sites with threaded comments (when in use). 58 56 */ 59 57 if ( is_singular() && get_option( 'thread_comments' ) ) 60 58 wp_enqueue_script( 'comment-reply' ); 61 59 62 /* *60 /* 63 61 * Always have wp_head() just before the closing </head> 64 62 * tag of your theme, or you will break many plugins, which 65 63 * generally use this hook to add elements to <head> such … … 83 81 if ( $header_image ) : 84 82 // Compatibility with versions of WordPress prior to 3.4. 85 83 if ( function_exists( 'get_custom_header' ) ) { 86 /* *84 /* 87 85 * We need to figure out what the minimum width should be for our featured image. 88 86 * This result would be the suggested width if the theme were to implement flexible widths. 89 87 */ … … 94 92 ?> 95 93 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"> 96 94 <?php 97 /* *95 /* 98 96 * The header image. 99 97 * Check if this is a post or page, if it has a thumbnail, and if it's a big one 100 98 */ -
src/wp-content/themes/twentyeleven/image.php
48 48 <div class="entry-attachment"> 49 49 <div class="attachment"> 50 50 <?php 51 /* *51 /* 52 52 * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery, 53 53 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file 54 54 */ -
src/wp-content/themes/twentyeleven/search.php
24 24 <?php while ( have_posts() ) : the_post(); ?> 25 25 26 26 <?php 27 /* *27 /* 28 28 * Include the Post-Format-specific template for the content. 29 29 * If you want to overload this in a child theme then include a file 30 30 * called content-___.php (where ___ is the Post Format name) and that -
src/wp-content/themes/twentyeleven/showcase.php
26 26 <?php while ( have_posts() ) : the_post(); ?> 27 27 28 28 <?php 29 /* *29 /* 30 30 * We are using a heading by rendering the_content 31 31 * If we have content for this page, let's display it. 32 32 */ … … 37 37 <?php endwhile; ?> 38 38 39 39 <?php 40 /* *40 /* 41 41 * Begin the featured posts section. 42 42 * 43 43 * See if we have any sticky posts and use them to create our featured posts. … … 61 61 // Proceed only if published posts exist 62 62 if ( $featured->have_posts() ) : 63 63 64 /* *64 /* 65 65 * We will need to count featured posts starting from zero 66 66 * to create the slider navigation. 67 67 */ … … 84 84 // Increase the counter. 85 85 $counter_slider++; 86 86 87 /* *87 /* 88 88 * We're going to add a class to our featured post for featured images 89 89 * by default it'll have the feature-text class. 90 90 */ … … 108 108 <section class="featured-post <?php echo $feature_class; ?>" id="featured-post-<?php echo $counter_slider; ?>"> 109 109 110 110 <?php 111 /* *111 /* 112 112 * If the thumbnail is as big as the header image 113 113 * make it a large featured post, otherwise render it small 114 114 */ -
src/wp-content/themes/twentyeleven/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/twentyeleven/tag.php
40 40 <?php while ( have_posts() ) : the_post(); ?> 41 41 42 42 <?php 43 /* *43 /* 44 44 * Include the Post-Format-specific template for the content. 45 45 * If you want to overload this in a child theme then include a file 46 46 * called content-___.php (where ___ is the Post Format name) and that