<a class="button button-primary disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>
<div class="wp-full-overlay-sidebar-content">
<div class="install-theme-info">
<h3 class="theme-name">{{ data.name }}</h3>
/* translators: %s: Theme author name. */
printf( __( 'By %s' ), '{{ data.author }}' );
<div class="theme-screenshot">
<img class="theme-screenshot" src="{{ data.screenshot_url }}?ver={{ data.version }}" alt="" />
<div class="theme-details">
<# if ( data.rating ) { #>
<div class="theme-rating">
<a class="num-ratings" href="{{ data.reviews_url }}">
/* translators: %s: Number of ratings. */
printf( __( '(%s ratings)' ), '{{ data.num_ratings }}' );
<span class="no-rating"><?php _e( 'This theme has not been rated yet.' ); ?></span>
<div class="theme-version">
/* translators: %s: Theme version. */
printf( __( 'Version: %s' ), '{{ data.version }}' );
<# if ( ! data.compatible_wp || ! data.compatible_php ) { #>
<div class="notice notice-error notice-alt notice-large"><p>
<# if ( ! data.compatible_wp && ! data.compatible_php ) { #>
_e( 'This theme does not work with your versions of WordPress and PHP.' );
if ( current_user_can( 'update_core' ) && current_user_can( 'update_php' ) ) {
/* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
' ' . __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
self_admin_url( 'update-core.php' ),
esc_url( wp_get_update_php_url() )
wp_update_php_annotation( '</p><p><em>', '</em>' );
} elseif ( current_user_can( 'update_core' ) ) {
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
} elseif ( current_user_can( 'update_php' ) ) {
/* translators: %s: URL to Update PHP page. */
' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( wp_get_update_php_url() )
wp_update_php_annotation( '</p><p><em>', '</em>' );
<# } else if ( ! data.compatible_wp ) { #>
_e( 'This theme does not work with your version of WordPress.' );
if ( current_user_can( 'update_core' ) ) {
/* translators: %s: URL to WordPress Updates screen. */
' ' . __( '<a href="%s">Please update WordPress</a>.' ),
self_admin_url( 'update-core.php' )
<# } else if ( ! data.compatible_php ) { #>
_e( 'This theme does not work with your version of PHP.' );
if ( current_user_can( 'update_php' ) ) {
/* translators: %s: URL to Update PHP page. */
' ' . __( '<a href="%s">Learn more about updating PHP</a>.' ),
esc_url( wp_get_update_php_url() )
wp_update_php_annotation( '</p><p><em>', '</em>' );
<div class="theme-description">{{{ data.description }}}</div>
<div class="wp-full-overlay-footer">
<button type="button" class="collapse-sidebar button" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
<span class="collapse-sidebar-arrow" aria-hidden="true"></span>
<span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>
<div class="wp-full-overlay-main">
<iframe src="{{ data.preview_url }}" title="<?php esc_attr_e( 'Preview' ); ?>"></iframe>
wp_print_request_filesystem_credentials_modal();
wp_print_admin_notice_templates();
require_once ABSPATH . 'wp-admin/admin-footer.php';