Manage Themes: Show current theme screen shot when customize is not supported. props ocean90, fixes #20693, see #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-05-16 21:05:11 +00:00
parent 621e3c1fc6
commit 9f550982a1
1 changed files with 2 additions and 1 deletions

View File

@ -123,6 +123,7 @@ $customize_title = sprintf( __( 'Customize “%s”' ), $ct->display('Na
<a href="<?php echo wp_customize_url( $ct->get_stylesheet() ); ?>" class="load-customize hide-if-no-customize" title="<?php echo esc_attr( $customize_title ); ?>"> <a href="<?php echo wp_customize_url( $ct->get_stylesheet() ); ?>" class="load-customize hide-if-no-customize" title="<?php echo esc_attr( $customize_title ); ?>">
<img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview' ); ?>" /> <img src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview' ); ?>" />
</a> </a>
<img class="hide-if-customize" src="<?php echo esc_url( $screenshot ); ?>" alt="<?php esc_attr_e( 'Current theme preview' ); ?>" />
<?php endif; ?> <?php endif; ?>
<h3><?php _e('Current Theme'); ?></h3> <h3><?php _e('Current Theme'); ?></h3>
@ -279,4 +280,4 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
?> ?>
</div> </div>
<?php require('./admin-footer.php'); ?> <?php require('./admin-footer.php'); ?>