Changeset 29034
- Timestamp:
- 07/08/2014 07:52:17 PM (11 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/customize-controls.css
r29031 r29034 51 51 } 52 52 53 #customize-info.open .accordion-section-title,54 #customize-info .accordion-section-title:hover,55 #customize-info .accordion-section-title:focus {56 color: #555555;57 }58 59 53 #customize-info.open .accordion-section-title:after, 60 54 #customize-info .accordion-section-title:hover:after, … … 63 57 } 64 58 65 #customize-info.open .accordion-section-title {66 border-color: transparent;67 }68 69 59 #customize-info .preview-notice { 70 60 font-size: 13px; … … 104 94 } 105 95 96 #customize-info.open .accordion-section-title, 97 #customize-info .accordion-section-title:hover, 98 #customize-info .accordion-section-title:focus, 106 99 #customize-theme-controls .control-section:hover > .accordion-section-title, 107 100 #customize-theme-controls .control-section .accordion-section-title:hover, … … 126 119 } 127 120 121 #customize-info.open, 128 122 #customize-theme-controls .control-section.open { 129 123 border-bottom: 1px solid #eeeeee; -
trunk/src/wp-admin/customize.php
r29031 r29034 120 120 <?php 121 121 $screenshot = $wp_customize->theme()->get_screenshot(); 122 $cannot_expand = ! ( $ screenshot || $wp_customize->theme()->get('Description') );122 $cannot_expand = ! ( $wp_customize->is_theme_active() || $screenshot || $wp_customize->theme()->get('Description') ); 123 123 ?> 124 124 … … 128 128 <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0"> 129 129 <span class="preview-notice"><?php 130 /* translators: %s is the theme name in the Customize/Live Preview pane */ 131 echo sprintf( __( 'You are previewing %s' ), '<strong class="theme-name">' . $wp_customize->theme()->display('Name') . '</strong>' ); 130 if ( ! $wp_customize->is_theme_active() ) { 131 /* translators: %s is the theme name in the Customize/Live Preview pane */ 132 echo sprintf( __( 'You are previewing %s' ), '<strong class="theme-name">' . $wp_customize->theme()->display('Name') . '</strong>' ); 133 } else { 134 /* translators: %s is the site title in the Customize pane */ 135 echo sprintf( __( 'You are customizing %s' ), '<strong class="theme-name site-title">' . get_bloginfo( 'name' ) . '</strong>' ); 136 } 132 137 ?></span> 133 138 </div> 134 139 <?php if ( ! $cannot_expand ) : ?> 135 140 <div class="accordion-section-content"> 136 <?php if ( $screenshot ) : ?> 137 <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" /> 138 <?php endif; ?> 139 140 <?php if ( $wp_customize->theme()->get('Description') ): ?> 141 <div class="theme-description"><?php echo $wp_customize->theme()->display('Description'); ?></div> 142 <?php endif; ?> 141 <?php if ( ! $wp_customize->is_theme_active() ) : 142 if ( $screenshot ) : ?> 143 <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" /> 144 <?php endif; ?> 145 146 <?php if ( $wp_customize->theme()->get('Description') ): ?> 147 <div class="theme-description"><?php echo $wp_customize->theme()->display('Description'); ?></div> 148 <?php endif; 149 else: 150 echo __( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' ); 151 endif; ?> 143 152 </div> 144 153 <?php endif; ?> -
trunk/src/wp-admin/js/customize-controls.js
r29031 r29034 917 917 body = $( document.body ), 918 918 overlay = body.children( '.wp-full-overlay' ), 919 title = $( '#customize-info .theme-name.site-title' ), 919 920 closeBtn = $( '.customize-controls-close' ), 920 921 saveBtn = $( '#save' ); … … 1112 1113 event.preventDefault(); 1113 1114 }); 1115 1116 // Bind site title display to the corresponding field. 1117 if ( title.length ) { 1118 $( '#customize-control-blogname input' ).on( 'input', function() { 1119 title.text( this.value ); 1120 } ); 1121 } 1114 1122 1115 1123 // Create a potential postMessage connection with the parent frame.
Note: See TracChangeset
for help on using the changeset viewer.