236
238
<div class="theme-screenshot blank"></div>
238
240
<span class="more-details"><?php _ex( 'Details & Preview', 'theme' ); ?></span>
239
<div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.author }}' ); ?></div>
241
<div class="theme-author">
243
/* translators: %s: Theme author name */
244
printf( __( 'By %s' ), '{{ data.author }}' );
240
247
<h3 class="theme-name">{{ data.name }}</h3>
242
249
<div class="theme-actions">
243
<a class="button button-primary" href="{{ data.install_url }}"><?php esc_html_e( 'Install' ); ?></a>
244
<a class="button button-secondary preview install-theme-preview" href="#"><?php esc_html_e( 'Preview' ); ?></a>
250
<# if ( data.installed ) { #>
252
/* translators: %s: Theme name */
253
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
255
<# if ( data.activate_url ) { #>
256
<a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>
258
<# if ( data.customize_url ) { #>
259
<a class="button button-secondary load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a>
261
<button class="button-secondary preview install-theme-preview"><?php _e( 'Preview' ); ?></button>
265
/* translators: %s: Theme name */
266
$aria_label = sprintf( __( 'Install %s' ), '{{ data.name }}' );
268
<a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a>
269
<button class="button-secondary preview install-theme-preview"><?php _e( 'Preview' ); ?></button>
247
273
<# if ( data.installed ) { #>
248
<div class="theme-installed"><?php _ex( 'Already Installed', 'theme' ); ?></div>
274
<div class="notice notice-success notice-alt"><p><?php _ex( 'Installed', 'theme' ); ?></p></div>
252
278
<script id="tmpl-theme-preview" type="text/template">
253
279
<div class="wp-full-overlay-sidebar">
254
280
<div class="wp-full-overlay-header">
255
<a href="#" class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></a>
256
<a href="#" class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme' ); ?></span></a>
257
<a href="#" class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme' ); ?></span></a>
258
<# if ( data.installed ) { #>
259
<a href="#" class="button button-primary theme-install disabled"><?php _ex( 'Installed', 'theme' ); ?></a>
261
<a href="{{ data.install_url }}" class="button button-primary theme-install"><?php _e( 'Install' ); ?></a>
281
<button class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button>
282
<button class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme' ); ?></span></button>
283
<button class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme' ); ?></span></button>
284
<# if ( data.installed ) { #>
285
<a class="button button-primary activate" href="{{ data.activate_url }}"><?php _e( 'Activate' ); ?></a>
287
<a href="{{ data.install_url }}" class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>
264
290
<div class="wp-full-overlay-sidebar-content">
265
291
<div class="install-theme-info">
266
292
<h3 class="theme-name">{{ data.name }}</h3>
267
<span class="theme-by"><?php printf( __( 'By %s' ), '{{ data.author }}' ); ?></span>
269
<img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
271
<div class="theme-details">
272
<# if ( data.rating ) { #>
273
<div class="theme-rating">
275
<span class="num-ratings" aria-hidden="true">({{ data.num_ratings }})</span>
293
<span class="theme-by">
295
/* translators: %s: Theme author name */
296
printf( __( 'By %s' ), '{{ data.author }}' );
300
<img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
302
<div class="theme-details">
303
<# if ( data.rating ) { #>
304
<div class="theme-rating">
306
<span class="num-ratings">({{ data.num_ratings }})</span>
309
<span class="no-rating"><?php _e( 'This theme has not been rated yet.' ); ?></span>
311
<div class="theme-version">
313
/* translators: %s: Theme version */
314
printf( __( 'Version: %s' ), '{{ data.version }}' );
278
<span class="no-rating"><?php _e( 'This theme has not been rated yet.' ); ?></span>
280
<div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
281
<div class="theme-description">{{{ data.description }}}</div>
317
<div class="theme-description">{{{ data.description }}}</div>
285
<div class="wp-full-overlay-footer">
286
<div class="devices">
287
<button type="button" class="preview-desktop active" aria-pressed="true" data-device="desktop"><span class="screen-reader-text"><?php _e( 'Enter desktop preview mode' ); ?></span></button>
288
<button type="button" class="preview-tablet" aria-pressed="false" data-device="tablet"><span class="screen-reader-text"><?php _e( 'Enter tablet preview mode' ); ?></span></button>
289
<button type="button" class="preview-mobile" aria-pressed="false" data-device="mobile"><span class="screen-reader-text"><?php _e( 'Enter mobile preview mode' ); ?></span></button>
321
<div class="wp-full-overlay-footer">
322
<button type="button" class="collapse-sidebar button-secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
323
<span class="collapse-sidebar-arrow"></span>
324
<span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>
291
<button type="button" class="collapse-sidebar button-secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
292
<span class="collapse-sidebar-arrow"></span>
293
<span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>
297
<div class="wp-full-overlay-main">
298
<iframe src="{{ data.preview_url }}" title="<?php esc_attr_e( 'Preview' ); ?>" />
328
<div class="wp-full-overlay-main">
329
<iframe src="{{ data.preview_url }}" title="<?php esc_attr_e( 'Preview' ); ?>"></iframe>
334
wp_print_request_filesystem_credentials_modal();
335
wp_print_admin_notice_templates();
303
337
include(ABSPATH . 'wp-admin/admin-footer.php');