Customizer Theme Switcher: Update JavaScript template after [31975].

see #31289.
Built from https://develop.svn.wordpress.org/trunk@31976


git-svn-id: http://core.svn.wordpress.org/trunk@31955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-04-01 23:06:28 +00:00
parent 254b9e3264
commit 216fc034fb
2 changed files with 6 additions and 17 deletions

View File

@ -1202,7 +1202,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
public function content_template() {
$preview_url = site_url( add_query_arg( 'theme', '{{ data.theme.id }}' ) );
?>
<div class="theme<# if ( data.theme.active ) { #> active<# } #>"<# if ( ! data.theme.active ) { #> tabindex="0"<# } #> data-preview-url="<?php echo esc_attr( $preview_url ); ?>" aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name">
<div class="theme" tabindex="0" data-preview-url="<?php echo esc_attr( $preview_url ); ?>" aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name">
<# if ( data.theme.screenshot[0] ) { #>
<div class="theme-screenshot">
<img src="{{ data.theme.screenshot[0] }}" alt="" />
@ -1213,22 +1213,11 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
<span class="more-details" id="{{ data.theme.id }}-action"><?php _e( 'Live Preview' ); ?></span>
<div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.theme.author }}' ); ?></div>
<# if ( data.theme.active ) { #>
<h3 class="theme-name" id="{{ data.theme.id }}-name">
<?php
/* translators: %s: theme name */
printf( __( '<span>Previewing:</span> %s' ), '{{ data.theme.name }}' );
?>
</h3>
<# } else { #>
<h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
<# } #>
<h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
<# if ( ! data.theme.active ) { #>
<div class="theme-actions">
<button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button>
</div>
<# } #>
<div class="theme-actions">
<button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button>
</div>
</div>
<?php
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-beta3-31975';
$wp_version = '4.2-beta3-31976';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.