X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be15bd505d66a91e2c80062190b13e315a04a9..849f15aeed7a5e39314057bdc0064d8edd60dd7d:/wp-admin/customize.php?autofocus%5Bcontrol%5D=background_image diff --git a/wp-admin/customize.php b/wp-admin/customize.php index a9e05c2f..178db282 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -1,6 +1,6 @@ theme()->display('Name') ) ) ); -?><?php echo $admin_title; ?>is_theme_active() ) { + $document_title_tmpl = _x( 'Customize: %s', 'Placeholder is the document title from the preview' ); +} else { + $document_title_tmpl = _x( 'Live Preview: %s', 'Placeholder is the document title from the preview' ); +} +$document_title_tmpl = html_entity_decode( $document_title_tmpl, ENT_QUOTES, 'UTF-8' ); // because exported to JS and assigned to document.title +$admin_title = sprintf( $document_title_tmpl, __( 'Loading…' ) ); + +?><?php echo $admin_title; ?> + + +
+
theme()->get_screenshot(); - $cannot_expand = ! ( $screenshot || $wp_customize->theme()->get('Description') ); + $cannot_expand = ! ( $wp_customize->is_theme_active() || $screenshot || $wp_customize->theme()->get('Description') ); ?> -
+
+
-
+
' . $wp_customize->theme()->display('Name') . '' ); + if ( ! $wp_customize->is_theme_active() ) { + /* translators: %s is the theme name in the Customize/Live Preview pane */ + echo sprintf( __( 'You are previewing %s' ), '' . $wp_customize->theme()->display('Name') . '' ); + } else { + /* translators: %s is the site/panel title in the Customize pane */ + echo sprintf( __( 'You are customizing %s' ), '' . get_bloginfo( 'name' ) . '' ); + } ?>
- - - - - theme()->get('Description') ): ?> -
theme()->display('Description'); ?>
- + is_theme_active() ) : + if ( $screenshot ) : ?> + + + + theme()->get('Description') ): ?> +
theme()->display('Description'); ?>
+
-
    - sections() as $section ) - $section->maybe_render(); - ?> -
+
+
+
+