Make WordPress Core


Ignore:
Timestamp:
09/25/2013 04:49:36 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Eleven: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/header.php

    r23778 r25625  
    11<?php
    22/**
    3  * The Header for our theme.
     3 * Header template for the theme
    44 *
    5  * Displays all of the <head> section and everything up till <div id="main">
     5 * Displays all of the <head> section and everything up till <div id="main">.
    66 *
    77 * @package WordPress
     
    2626<meta name="viewport" content="width=device-width" />
    2727<title><?php
    28     /*
     28    /**
    2929     * Print the <title> tag based on what is being viewed.
    3030     */
     
    5353<![endif]-->
    5454<?php
    55     /* We add some JavaScript to pages with the comment form
     55    /**
     56     * We add some JavaScript to pages with the comment form
    5657     * to support sites with threaded comments (when in use).
    5758     */
     
    5960        wp_enqueue_script( 'comment-reply' );
    6061
    61     /* Always have wp_head() just before the closing </head>
     62    /**
     63     * Always have wp_head() just before the closing </head>
    6264     * tag of your theme, or you will break many plugins, which
    6365     * generally use this hook to add elements to <head> such
     
    8284                    // Compatibility with versions of WordPress prior to 3.4.
    8385                    if ( function_exists( 'get_custom_header' ) ) {
    84                         // We need to figure out what the minimum width should be for our featured image.
    85                         // This result would be the suggested width if the theme were to implement flexible widths.
     86                        /**
     87                         * We need to figure out what the minimum width should be for our featured image.
     88                         * This result would be the suggested width if the theme were to implement flexible widths.
     89                         */
    8690                        $header_image_width = get_theme_support( 'custom-header', 'width' );
    8791                    } else {
     
    9195            <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
    9296                <?php
    93                     // The header image
    94                     // Check if this is a post or page, if it has a thumbnail, and if it's a big one
     97                    /**
     98                     * The header image.
     99                     * Check if this is a post or page, if it has a thumbnail, and if it's a big one
     100                     */
    95101                    if ( is_singular() && has_post_thumbnail( $post->ID ) &&
    96102                            ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) &&
Note: See TracChangeset for help on using the changeset viewer.