+
+<script id="tmpl-theme" type="text/template">
+ <# if ( data.screenshot_url ) { #>
+ <div class="theme-screenshot">
+ <img src="{{ data.screenshot_url }}" alt="" />
+ </div>
+ <# } else { #>
+ <div class="theme-screenshot blank"></div>
+ <# } #>
+ <span class="more-details"><?php _ex( 'Details & Preview', 'theme' ); ?></span>
+ <div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.author }}' ); ?></div>
+ <h3 class="theme-name">{{ data.name }}</h3>
+
+ <div class="theme-actions">
+ <a class="button button-primary" href="{{ data.install_url }}"><?php esc_html_e( 'Install' ); ?></a>
+ <a class="button button-secondary preview install-theme-preview" href="#"><?php esc_html_e( 'Preview' ); ?></a>
+ </div>
+
+ <# if ( data.installed ) { #>
+ <div class="theme-installed"><?php _ex( 'Already Installed', 'theme' ); ?></div>
+ <# } #>
+</script>
+
+<script id="tmpl-theme-preview" type="text/template">
+ <div class="wp-full-overlay-sidebar">
+ <div class="wp-full-overlay-header">
+ <a href="#" class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></a>
+ <a href="#" class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme' ); ?></span></a>
+ <a href="#" class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme' ); ?></span></a>
+ <# if ( data.installed ) { #>
+ <a href="#" class="button button-primary theme-install disabled"><?php _ex( 'Installed', 'theme' ); ?></a>
+ <# } else { #>
+ <a href="{{ data.install_url }}" class="button button-primary theme-install"><?php _e( 'Install' ); ?></a>
+ <# } #>
+ </div>
+ <div class="wp-full-overlay-sidebar-content">
+ <div class="install-theme-info">
+ <h3 class="theme-name">{{ data.name }}</h3>
+ <span class="theme-by"><?php printf( __( 'By %s' ), '{{ data.author }}' ); ?></span>
+
+ <img class="theme-screenshot" src="{{ data.screenshot_url }}" alt="" />
+
+ <div class="theme-details">
+ <# if ( data.rating ) { #>
+ <div class="theme-rating">
+ {{{ data.stars }}}
+ <span class="num-ratings" aria-hidden="true">({{ data.num_ratings }})</span>
+ </div>
+ <# } else { #>
+ <span class="no-rating"><?php _e( 'This theme has not been rated yet.' ); ?></span>
+ <# } #>
+ <div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>
+ <div class="theme-description">{{{ data.description }}}</div>
+ </div>
+ </div>
+ </div>
+ <div class="wp-full-overlay-footer">
+ <div class="devices">
+ <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>
+ <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>
+ <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>
+ </div>
+ <button type="button" class="collapse-sidebar button-secondary" aria-expanded="true" aria-label="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">
+ <span class="collapse-sidebar-arrow"></span>
+ <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>
+ </button>
+ </div>
+ </div>
+ <div class="wp-full-overlay-main">
+ <iframe src="{{ data.preview_url }}" title="<?php esc_attr_e( 'Preview' ); ?>" />
+ </div>
+</script>
+