Make WordPress Core

Ticket #25256: twentyeleven.3.diff

File twentyeleven.3.diff, 10.2 KB (added by ericlewis, 12 years ago)
  • src/wp-content/themes/twentyeleven/author.php

     
    1515                        <?php if ( have_posts() ) : ?>
    1616
    1717                                <?php
    18                                         /**
     18                                        /*
    1919                                         * Queue the first post, that way we know what author
    2020                                         * we're dealing with (if that is the case).
    2121                                         *
     
    3030                                </header>
    3131
    3232                                <?php
    33                                         /**
     33                                        /*
    3434                                         * Since we called the_post() above, we need to
    3535                                         * rewind the loop back to the beginning that way
    3636                                         * we can run the loop properly, in full.
     
    6767                                <?php while ( have_posts() ) : the_post(); ?>
    6868
    6969                                        <?php
    70                                                 /**
     70                                                /*
    7171                                                 * Include the Post-Format-specific template for the content.
    7272                                                 * If you want to overload this in a child theme then include a file
    7373                                                 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  • src/wp-content/themes/twentyeleven/category.php

     
    4040                                <?php while ( have_posts() ) : the_post(); ?>
    4141
    4242                                        <?php
    43                                                 /**
     43                                                /*
    4444                                                 * Include the Post-Format-specific template for the content.
    4545                                                 * If you want to overload this in a child theme then include a file
    4646                                                 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  • src/wp-content/themes/twentyeleven/comments.php

     
    1717                <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p>
    1818        </div><!-- #comments -->
    1919        <?php
    20                         /**
     20                        /*
    2121                         * Stop the rest of comments.php from being processed,
    2222                         * but don't kill the script entirely -- we still have
    2323                         * to fully load the template.
     
    4646
    4747                <ol class="commentlist">
    4848                        <?php
    49                                 /**
     49                                /*
    5050                                 * Loop through and list the comments. Tell wp_list_comments()
    5151                                 * to use twentyeleven_comment() to format the comments.
    5252                                 * If you want to overload this in a child theme then you can
     
    6666                <?php endif; // check for comment navigation ?>
    6767
    6868                <?php
    69                 /**
     69                /*
    7070                 * If there are no comments and comments are closed, let's leave a little note, shall we?
    7171                 * But we only want the note on posts and pages that had comments in the first place.
    7272                 */
  • src/wp-content/themes/twentyeleven/footer.php

     
    1515        <footer id="colophon" role="contentinfo">
    1616
    1717                        <?php
    18                                 /**
     18                                /*
    1919                                 * A sidebar in the footer? Yep. You can can customize
    2020                                 * your footer with three columns of widgets.
    2121                                 */
  • src/wp-content/themes/twentyeleven/functions.php

     
    3838 * @since Twenty Eleven 1.0
    3939 */
    4040
    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.
    4442if ( ! isset( $content_width ) )
    4543        $content_width = 584;
    4644
    47 /**
     45/*
    4846 * Tell WordPress to run twentyeleven_setup() when the 'after_setup_theme' hook is run.
    4947 */
    5048add_action( 'after_setup_theme', 'twentyeleven_setup' );
     
    7270 */
    7371function twentyeleven_setup() {
    7472
    75         /**
     73        /*
    7674         * Make Twenty Eleven available for translation.
    7775         * Translations can be added to the /languages/ directory.
    7876         * If you're building a theme based on Twenty Eleven, use
     
    107105
    108106        // Add support for custom backgrounds.
    109107        add_theme_support( 'custom-background', array(
    110                 /**
     108                /*
    111109                 * Let WordPress know what our default background color is.
    112110                 * This is dependent on our current color scheme.
    113111                 */
     
    162160                add_custom_background();
    163161        }
    164162
    165         /**
     163        /*
    166164         * We'll be using post thumbnails for custom header images on posts and pages.
    167165         * We want them to be the size of the header image that we just defined.
    168166         * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
    169167         */
    170168        set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );
    171169
    172         /**
     170        /*
    173171         * Add Twenty Eleven's custom image sizes.
    174172         * Used for large feature (header) images.
    175173         */
  • src/wp-content/themes/twentyeleven/header.php

     
    2525<meta charset="<?php bloginfo( 'charset' ); ?>" />
    2626<meta name="viewport" content="width=device-width" />
    2727<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.
    3129        global $page, $paged;
    3230
    3331        wp_title( '|', true, 'right' );
     
    5250<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    5351<![endif]-->
    5452<?php
    55         /**
     53        /*
    5654         * We add some JavaScript to pages with the comment form
    5755         * to support sites with threaded comments (when in use).
    5856         */
    5957        if ( is_singular() && get_option( 'thread_comments' ) )
    6058                wp_enqueue_script( 'comment-reply' );
    6159
    62         /**
     60        /*
    6361         * Always have wp_head() just before the closing </head>
    6462         * tag of your theme, or you will break many plugins, which
    6563         * generally use this hook to add elements to <head> such
     
    8381                                if ( $header_image ) :
    8482                                        // Compatibility with versions of WordPress prior to 3.4.
    8583                                        if ( function_exists( 'get_custom_header' ) ) {
    86                                                 /**
     84                                                /*
    8785                                                 * We need to figure out what the minimum width should be for our featured image.
    8886                                                 * This result would be the suggested width if the theme were to implement flexible widths.
    8987                                                 */
     
    9492                                        ?>
    9593                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
    9694                                <?php
    97                                         /**
     95                                        /*
    9896                                         * The header image.
    9997                                         * Check if this is a post or page, if it has a thumbnail, and if it's a big one
    10098                                         */
  • src/wp-content/themes/twentyeleven/image.php

     
    4848                                                        <div class="entry-attachment">
    4949                                                                <div class="attachment">
    5050<?php
    51         /**
     51        /*
    5252         * 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,
    5353         * 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
    5454         */
  • src/wp-content/themes/twentyeleven/search.php

     
    2424                                <?php while ( have_posts() ) : the_post(); ?>
    2525
    2626                                        <?php
    27                                                 /**
     27                                                /*
    2828                                                 * Include the Post-Format-specific template for the content.
    2929                                                 * If you want to overload this in a child theme then include a file
    3030                                                 * called content-___.php (where ___ is the Post Format name) and that
  • src/wp-content/themes/twentyeleven/showcase.php

     
    2626                                <?php while ( have_posts() ) : the_post(); ?>
    2727
    2828                                <?php
    29                                         /**
     29                                        /*
    3030                                         * We are using a heading by rendering the_content
    3131                                         * If we have content for this page, let's display it.
    3232                                         */
     
    3737                                <?php endwhile; ?>
    3838
    3939                                <?php
    40                                         /**
     40                                        /*
    4141                                         * Begin the featured posts section.
    4242                                         *
    4343                                         * See if we have any sticky posts and use them to create our featured posts.
     
    6161                                        // Proceed only if published posts exist
    6262                                        if ( $featured->have_posts() ) :
    6363
    64                                         /**
     64                                        /*
    6565                                         * We will need to count featured posts starting from zero
    6666                                         * to create the slider navigation.
    6767                                         */
     
    8484                                        // Increase the counter.
    8585                                        $counter_slider++;
    8686
    87                                         /**
     87                                        /*
    8888                                         * We're going to add a class to our featured post for featured images
    8989                                         * by default it'll have the feature-text class.
    9090                                         */
     
    108108                                        <section class="featured-post <?php echo $feature_class; ?>" id="featured-post-<?php echo $counter_slider; ?>">
    109109
    110110                                                <?php
    111                                                         /**
     111                                                        /*
    112112                                                         * If the thumbnail is as big as the header image
    113113                                                         * make it a large featured post, otherwise render it small
    114114                                                         */
  • src/wp-content/themes/twentyeleven/sidebar-footer.php

     
    99?>
    1010
    1111<?php
    12         /**
     12        /*
    1313         * The footer widget area is triggered if any of the areas
    1414         * have widgets. So let's check that first.
    1515         *
  • src/wp-content/themes/twentyeleven/tag.php

     
    4040                                <?php while ( have_posts() ) : the_post(); ?>
    4141
    4242                                        <?php
    43                                                 /**
     43                                                /*
    4444                                                 * Include the Post-Format-specific template for the content.
    4545                                                 * If you want to overload this in a child theme then include a file
    4646                                                 * called content-___.php (where ___ is the Post Format name) and that