Make WordPress Core


Ignore:
Timestamp:
03/04/2012 02:40:18 AM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: Add mini screenshot and description to theme info section. see #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/customize-controls.php

    r20106 r20108  
    5353        <div id="customize-info" class="customize-section">
    5454            <div class="customize-section-title">
     55                <?php if ( $screenshot ) : ?>
     56                    <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" />
     57                <?php endif; ?>
    5558                <strong class="theme-name"><?php echo $theme['Name']; ?></strong>
    5659                <span class="theme-by"><?php printf( __( 'By %s' ), $theme['Author'] ); ?></span>
     
    5962                <?php if ( $screenshot ) : ?>
    6063                    <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" />
     64                <?php endif; ?>
     65
     66                <?php if ( $theme->description ): ?>
     67                    <div class="theme-description"><?php echo $theme->description; ?></div>
    6168                <?php endif; ?>
    6269            </div>
Note: See TracChangeset for help on using the changeset viewer.