Theme Customizer: Add mini screenshot and description to theme info section. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -52,6 +52,9 @@ do_action( 'customize_controls_print_scripts' );
|
||||
|
||||
<div id="customize-info" class="customize-section">
|
||||
<div class="customize-section-title">
|
||||
<?php if ( $screenshot ) : ?>
|
||||
<img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" />
|
||||
<?php endif; ?>
|
||||
<strong class="theme-name"><?php echo $theme['Name']; ?></strong>
|
||||
<span class="theme-by"><?php printf( __( 'By %s' ), $theme['Author'] ); ?></span>
|
||||
</div>
|
||||
@@ -59,6 +62,10 @@ do_action( 'customize_controls_print_scripts' );
|
||||
<?php if ( $screenshot ) : ?>
|
||||
<img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $theme->description ): ?>
|
||||
<div class="theme-description"><?php echo $theme->description; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user