From 54bf093efc1b250ca06bbf4b85d95f0d28a6cf06 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 19 Apr 2009 20:56:02 +0000 Subject: [PATCH] Better view on Manage Themes when only one theme installed. Fixes #9029. git-svn-id: https://develop.svn.wordpress.org/trunk@11008 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/themes.php | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 1d16e979dd..393d92f48e 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -45,6 +45,7 @@ require_once('admin-header.php'); name]); uksort( $themes, "strnatcasecmp" ); $theme_total = count( $themes ); @@ -132,10 +133,13 @@ function theme_update_available( $theme ) { +

+ +
' . __( 'Displaying %s–%s of %s' ) . '%s', @@ -147,7 +151,6 @@ function theme_update_available( $theme ) {
- $theme_name ) { $author = $themes[$theme_name]['Author']; $screenshot = $themes[$theme_name]['Screenshot']; $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; + $template_dir = $themes[$theme_name]['Template Dir']; + $parent_theme = $themes[$theme_name]['Parent Theme']; $preview_link = clean_url( get_option('home') . '/'); $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); $preview_text = attribute_escape( sprintf( __('Preview of "%s"'), $title ) ); @@ -202,11 +207,18 @@ foreach ( $cols as $col => $theme_name ) { -

- -

+

+

+ + +

%2$s. The stylesheet files are located in %3$s. %4$s uses templates from %5$s. Changes made to the templates will affect both themes.'), $title, $template_dir, $stylesheet_dir, $title, $parent_theme); ?>

+ +

%2$s.'), $title, $template_dir, $stylesheet_dir); ?>

+ -

+

@@ -215,8 +227,9 @@ foreach ( $cols as $col => $theme_name ) {
- - + +

+
@@ -265,7 +278,7 @@ if ( count($broken_themes) ) { } ?> -

+

WordPress theme directory. To install a theme you generally just need to upload the theme folder into your wp-content/themes directory. Once a theme is uploaded, you should see it on this page.'); ?>