diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css index 7b4ee94411..a0c26600b8 100644 --- a/wp-admin/css/wp-admin.dev.css +++ b/wp-admin/css/wp-admin.dev.css @@ -5224,7 +5224,9 @@ body.full-overlay-active { right: 0; } -.wp-full-overlay.collapsed { +.wp-full-overlay.collapsed, +.wp-full-overlay.collapsed div.wp-full-overlay-header, +.wp-full-overlay.collapsed div.wp-full-overlay-footer { left: -302px; } @@ -5248,6 +5250,9 @@ body.full-overlay-active { top: 0; bottom: 0; } +.wp-full-overlay.collapsed .wp-full-overlay-main { + left: 0; +} .wp-full-overlay-sidebar div.wp-full-overlay-header, .wp-full-overlay-sidebar div.wp-full-overlay-footer { @@ -5322,7 +5327,10 @@ body.full-overlay-active { /* Animations */ .wp-full-overlay, -.wp-full-overlay .collapse-sidebar { +.wp-full-overlay .collapse-sidebar, +.wp-full-overlay-sidebar div.wp-full-overlay-header, +.wp-full-overlay-sidebar div.wp-full-overlay-footer, +.wp-full-overlay-main { -moz-transition-property: left, right, top, bottom; -webkit-transition-property: left, right, top, bottom; -o-transition-property: left, right, top, bottom; @@ -5347,12 +5355,68 @@ body.full-overlay-active { display: block; } -#customize-container iframe { +#customize-container iframe, +#theme-installer iframe { height: 100%; width: 100%; z-index: 20; } +#theme-installer { + display: none; +} + +.install-theme-info { + display: none; + padding: 45px 20px 15px; +} + +#theme-installer .install-theme-info { + display: block; +} + +.install-theme-info .theme-install { + float: right; + margin-top: 18px; +} + +.install-theme-info .theme-name { + font-size: 16px; + line-height: 24px; + margin-bottom: 0; +} + +.install-theme-info .theme-screenshot { + margin-top: 15px; + width: 258px; + border: 1px solid #ccc; +} + +.install-theme-info .theme-version { + margin: 15px 0; + float: right; +} + +.install-theme-info .theme-rating { + margin: 14px 0; + width: 100px; + height: 17px; + float: left; + background: url('../images/stars.png?ver=20120307') repeat-x bottom left; +} +.install-theme-info .theme-rating div { + background: url('../images/stars.png?ver=20120307') repeat-x top left; + height: 17px; + float: left; +} + +.install-theme-info .theme-description { + margin-top: 34px; + padding-top: 1em; + color: #777; + line-height: 20px; +} + /*------------------------------------------------------------------------------ 25.0 - Misc ------------------------------------------------------------------------------*/ diff --git a/wp-admin/images/stars.png b/wp-admin/images/stars.png new file mode 100644 index 0000000000..98e32a5937 Binary files /dev/null and b/wp-admin/images/stars.png differ diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 5d4efce59f..7b8b493c79 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -158,6 +158,18 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { display_theme( $themes[$theme_name] ); ?> +
+ string 'Magazine Basic' (length=14) + * public 'slug' => string 'magazine-basic' (length=14) + * public 'version' => string '1.1' (length=3) + * public 'author' => string 'tinkerpriest' (length=12) + * public 'preview_url' => string 'http://wp-themes.com/?magazine-basic' (length=36) + * public 'screenshot_url' => string 'http://wp-themes.com/wp-content/themes/magazine-basic/screenshot.png' (length=68) + * public 'rating' => float 80 + * public 'num_ratings' => int 1 + * public 'homepage' => string 'http://wordpress.org/extend/themes/magazine-basic' (length=49) + * public 'description' => string 'A basic magazine style layout with a fully customizable layout through a backend interface. Designed by c.bavota of Tinker Priest Media.' (length=214) + * public 'download_link' => string 'http://wordpress.org/extend/themes/download/magazine-basic.1.1.zip' (length=66) + */ +function display_theme( $theme ) { global $themes_allowedtags; - if ( empty($theme) ) + if ( empty( $theme ) ) return; - $name = wp_kses($theme->name, $themes_allowedtags); - $author = wp_kses($theme->author, $themes_allowedtags); - $desc = wp_kses($theme->description, $themes_allowedtags); - //if ( strlen($desc) > 30 ) - // $desc = substr($desc, 0, 15) . '...' . substr($desc, -15) . ''; + $name = wp_kses( $theme->name, $themes_allowedtags ); + $author = wp_kses( $theme->author, $themes_allowedtags ); - $preview_link = $theme->preview_url . '?TB_iframe=true&width=600&height=400'; - if ( !is_array($actions) ) { - $actions = array(); - $actions[] = '' . __('Install') . ''; - if ( !is_network_admin() ) - $actions[] = '' . __('Preview') . ''; - $actions = apply_filters('theme_install_action_links', $actions, $theme); - } + $num_ratings = sprintf( _n( '(based on %s rating)', '(based on %s ratings)', $theme->num_ratings ), number_format_i18n( $theme->num_ratings ) ); + + $preview_url = add_query_arg( 'theme_preview', '1' ); + $preview_title = sprintf( __('Preview “%s”'), $name ); + + $install_url = add_query_arg( array( + 'action' => 'install-theme', + 'theme' => $theme->slug, + ), self_admin_url( 'update.php' ) ); - $actions = implode ( ' | ', $actions ); ?> -'> -