123 | | <div id="customize-info" class="accordion-section <?php if ( $cannot_expand ) echo ' cannot-expand'; ?>"> |
124 | | <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0"> |
125 | | <span class="preview-notice"><?php |
126 | | /* translators: %s is the theme name in the Customize/Live Preview pane */ |
127 | | echo sprintf( __( 'You are previewing %s' ), '<strong class="theme-name">' . $wp_customize->theme()->display('Name') . '</strong>' ); |
128 | | ?></span> |
129 | | </div> |
130 | | <?php if ( ! $cannot_expand ) : ?> |
131 | | <div class="accordion-section-content"> |
132 | | <?php if ( $screenshot ) : ?> |
133 | | <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" /> |
134 | | <?php endif; ?> |
135 | | |
136 | | <?php if ( $wp_customize->theme()->get('Description') ): ?> |
137 | | <div class="theme-description"><?php echo $wp_customize->theme()->display('Description'); ?></div> |
| 118 | <?php if ( ! $wp_customize->is_theme_active() ): ?> |
| 119 | <?php |
| 120 | $screenshot = $wp_customize->theme()->get_screenshot(); |
| 121 | $cannot_expand = ! ( $screenshot || $wp_customize->theme()->get( 'Description' ) ); |
| 122 | ?> |
| 123 | <div id="customize-info" class="accordion-section <?php if ( $cannot_expand ) { echo ' cannot-expand'; } ?>"> |
| 124 | <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0"> |
| 125 | <span class="preview-notice"><?php |
| 126 | /* translators: %s is the theme name in the Customize/Live Preview pane */ |
| 127 | echo sprintf( __( 'You are previewing %s' ), '<strong class="theme-name">' . $wp_customize->theme()->display( 'Name' ) . '</strong>' ); |
| 128 | ?></span> |
| 129 | </div> |
| 130 | <?php if ( ! $cannot_expand ) : ?> |
| 131 | <div class="accordion-section-content"> |
| 132 | <?php if ( $screenshot ) : ?> |
| 133 | <img class="theme-screenshot" src="<?php echo esc_url( $screenshot ); ?>" /> |
| 134 | <?php endif; ?> |
| 135 | |
| 136 | <?php if ( $wp_customize->theme()->get( 'Description' ) ): ?> |
| 137 | <div class="theme-description"><?php echo $wp_customize->theme()->display( 'Description' ); ?></div> |
| 138 | <?php endif; ?> |
| 139 | </div> |