238 </h3> |
238 </h3> |
239 <div class="theme-actions"> |
239 <div class="theme-actions"> |
240 <button type="button" class="button button-primary customize-theme" aria-label="<?php echo esc_attr( $customize_label ); ?>"><?php _e( 'Customize' ); ?></button> |
240 <button type="button" class="button button-primary customize-theme" aria-label="<?php echo esc_attr( $customize_label ); ?>"><?php _e( 'Customize' ); ?></button> |
241 </div> |
241 </div> |
242 </div> |
242 </div> |
243 <div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div> |
243 <?php |
|
244 wp_admin_notice( |
|
245 _x( 'Installed', 'theme' ), |
|
246 array( |
|
247 'type' => 'success', |
|
248 'additional_classes' => array( 'notice-alt' ), |
|
249 ) |
|
250 ); |
|
251 ?> |
244 <# } else if ( 'installed' === data.theme.type ) { #> |
252 <# } else if ( 'installed' === data.theme.type ) { #> |
245 <# if ( data.theme.blockTheme ) { #> |
253 <# if ( data.theme.blockTheme ) { #> |
246 <div class="theme-id-container"> |
254 <div class="theme-id-container"> |
247 <h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3> |
255 <h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3> |
248 <div class="theme-actions"> |
256 <div class="theme-actions"> |
253 ?> |
261 ?> |
254 <a href="{{{ data.theme.actions.activate }}}" class="button button-primary activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> |
262 <a href="{{{ data.theme.actions.activate }}}" class="button button-primary activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> |
255 <# } #> |
263 <# } #> |
256 </div> |
264 </div> |
257 </div> |
265 </div> |
258 <div class="notice notice-error notice-alt"><p> |
266 <?php $customizer_not_supported_message = __( 'This theme doesn\'t support Customizer.' ); ?> |
259 <?php |
|
260 _e( 'This theme doesn\'t support Customizer.' ); |
|
261 ?> |
|
262 <# if ( data.theme.actions.activate ) { #> |
267 <# if ( data.theme.actions.activate ) { #> |
263 <?php |
268 <?php |
264 echo ' '; |
269 $customizer_not_supported_message .= ' ' . sprintf( |
265 printf( |
|
266 /* translators: %s: URL to the themes page (also it activates the theme). */ |
270 /* translators: %s: URL to the themes page (also it activates the theme). */ |
267 __( 'However, you can still <a href="%s">activate this theme</a>, and use the Site Editor to customize it.' ), |
271 __( 'However, you can still <a href="%s">activate this theme</a>, and use the Site Editor to customize it.' ), |
268 '{{{ data.theme.actions.activate }}}' |
272 '{{{ data.theme.actions.activate }}}' |
269 ); |
273 ); |
270 ?> |
274 ?> |
271 <# } #> |
275 <# } #> |
272 </p></div> |
276 |
|
277 <?php |
|
278 wp_admin_notice( |
|
279 $customizer_not_supported_message, |
|
280 array( |
|
281 'type' => 'error', |
|
282 'additional_classes' => array( 'notice-alt' ), |
|
283 ) |
|
284 ); |
|
285 ?> |
273 <# } else { #> |
286 <# } else { #> |
274 <div class="theme-id-container"> |
287 <div class="theme-id-container"> |
275 <h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3> |
288 <h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3> |
276 <div class="theme-actions"> |
289 <div class="theme-actions"> |
277 <# if ( data.theme.compatibleWP && data.theme.compatiblePHP ) { #> |
290 <# if ( data.theme.compatibleWP && data.theme.compatiblePHP ) { #> |
279 <# } else { #> |
292 <# } else { #> |
280 <button type="button" class="button button-primary disabled" aria-label="<?php echo esc_attr( $preview_label ); ?>"><?php _e( 'Live Preview' ); ?></button> |
293 <button type="button" class="button button-primary disabled" aria-label="<?php echo esc_attr( $preview_label ); ?>"><?php _e( 'Live Preview' ); ?></button> |
281 <# } #> |
294 <# } #> |
282 </div> |
295 </div> |
283 </div> |
296 </div> |
284 <div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div> |
297 <?php |
|
298 wp_admin_notice( |
|
299 _x( 'Installed', 'theme' ), |
|
300 array( |
|
301 'type' => 'success', |
|
302 'additional_classes' => array( 'notice-alt' ), |
|
303 ) |
|
304 ); |
|
305 ?> |
285 <# } #> |
306 <# } #> |
286 <# } else { #> |
307 <# } else { #> |
287 <div class="theme-id-container"> |
308 <div class="theme-id-container"> |
288 <h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3> |
309 <h3 class="theme-name" id="{{ data.section }}-{{ data.theme.id }}-name">{{ data.theme.name }}</h3> |
289 <div class="theme-actions"> |
310 <div class="theme-actions"> |