WordPress.org

Make WordPress Core

Changeset 17729


Ignore:
Timestamp:
04/27/2011 09:44:09 PM (7 years ago)
Author:
lancewillett
Message:

Twenty Eleven: add first batch of new header images, courtesy of the immeasurable photomatt archives - see #17198

Location:
trunk/wp-content/themes/twentyeleven
Files:
12 added
1 deleted
1 edited

Legend:

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

    r17722 r17729  
    127127
    128128    // No CSS, just an IMG call. The %s is a placeholder for the theme template directory URI.
    129     define( 'HEADER_IMAGE', '%s/images/headers/default.jpg' );
     129    define( 'HEADER_IMAGE', '' ); // Leaving empty for random image rotation.
    130130
    131131    // The height and width of your custom header. You can hook into the theme's own filters to change these values.
     
    148148
    149149    // ... and thus ends the changeable header business.
     150
     151    // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
     152    register_default_headers( array(
     153        'wheel' => array(
     154            'url' => '%s/images/headers/wheel.jpg',
     155            'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg',
     156            /* translators: header image description */
     157            'description' => __( 'Wheel', 'twentyeleven' )
     158        ),
     159        'shore' => array(
     160            'url' => '%s/images/headers/shore.jpg',
     161            'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg',
     162            /* translators: header image description */
     163            'description' => __( 'Shore', 'twentyeleven' )
     164        ),
     165        'trolley' => array(
     166            'url' => '%s/images/headers/trolley.jpg',
     167            'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg',
     168            /* translators: header image description */
     169            'description' => __( 'Trolley', 'twentyeleven' )
     170        ),
     171        'pine-cone' => array(
     172            'url' => '%s/images/headers/pine-cone.jpg',
     173            'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg',
     174            /* translators: header image description */
     175            'description' => __( 'Pine Cone', 'twentyeleven' )
     176        ),
     177        'chessboard' => array(
     178            'url' => '%s/images/headers/chessboard.jpg',
     179            'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg',
     180            /* translators: header image description */
     181            'description' => __( 'Chessboard', 'twentyeleven' )
     182        ),
     183        'lanterns' => array(
     184            'url' => '%s/images/headers/lanterns.jpg',
     185            'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg',
     186            /* translators: header image description */
     187            'description' => __( 'Lanterns', 'twentyeleven' )
     188        )
     189    ) );
    150190}
    151191endif; // twentyeleven_setup
Note: See TracChangeset for help on using the changeset viewer.