X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..refs/tags/wordpress-4.0:/wp-admin/customize.php diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 093f9987..3cfa0c78 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -1,6 +1,6 @@ theme()->display('Name') ) ) ); -?><?php echo $admin_title; ?><?php echo $admin_title; ?> + + + @@ -78,44 +118,57 @@ do_action( 'customize_controls_print_scripts' ); submit_button( $save_text, 'primary save', 'save', false ); ?> - - + + + 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(); + foreach ( $wp_customize->containers() as $container ) { + $container->maybe_render(); + } ?>
+