mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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:
parent
254b9e3264
commit
216fc034fb
@ -1202,7 +1202,7 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
|||||||
public function content_template() {
|
public function content_template() {
|
||||||
$preview_url = site_url( add_query_arg( 'theme', '{{ data.theme.id }}' ) );
|
$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] ) { #>
|
<# if ( data.theme.screenshot[0] ) { #>
|
||||||
<div class="theme-screenshot">
|
<div class="theme-screenshot">
|
||||||
<img src="{{ data.theme.screenshot[0] }}" alt="" />
|
<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>
|
<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>
|
<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">{{ data.theme.name }}</h3>
|
||||||
<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>
|
|
||||||
<# } #>
|
|
||||||
|
|
||||||
<# if ( ! data.theme.active ) { #>
|
<div class="theme-actions">
|
||||||
<div class="theme-actions">
|
<button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button>
|
||||||
<button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button>
|
</div>
|
||||||
</div>
|
|
||||||
<# } #>
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user