From ec9cd4e3955e31d0e79592ca44e1feca61ad8f5b Mon Sep 17 00:00:00 2001 From: saxmatt Date: Tue, 14 Sep 2004 12:01:31 +0000 Subject: [PATCH] Some UI changes to theme manager. Seems to be updating the stylesheet but not the template. git-svn-id: http://svn.automattic.com/wordpress/trunk@1655 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 2 +- wp-admin/themes.php | 51 ++++++++++++++++++++---------------- 2 files changed, 29 insertions(+), 24 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 3d01243d65..4526904df3 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -565,7 +565,7 @@ function get_themes() { } // The default theme always exists. - $themes['Default'] = array('Name' => 'Default', 'Title' => 'Default', 'Description' => 'The default theme', 'Author' => '', 'Version' => '1.3', 'Template' => 'default', 'Stylesheet' => 'default', 'Template Files' => $default_template_files, 'Stylesheet Files' => $default_stylesheet_files, 'Template Dir' => '/', 'Stylesheet Dir' => '/', 'Parent Theme' => ''); + $themes['Default'] = array('Name' => 'Default', 'Title' => 'WordPress Default', 'Description' => 'The default theme included with WordPress.', 'Author' => 'Dave Shea', 'Version' => '1.3', 'Template' => 'default', 'Stylesheet' => 'default', 'Template Files' => $default_template_files, 'Stylesheet Files' => $default_stylesheet_files, 'Template Dir' => '/', 'Stylesheet Dir' => '/', 'Parent Theme' => ''); if (!$themes_dir || !$theme_files) { return $themes; diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 1d8bee0244..667aec7d1b 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -15,7 +15,7 @@ if ( isset($_GET['action']) ) { update_option('stylesheet', $_GET['stylesheet']); } - header('Location: themes.php?activate=true'); + header('Location: themes.php?activated=true'); } } @@ -24,13 +24,19 @@ $title = __('Manage Themes'); $parent_file = 'themes.php'; require_once('admin-header.php'); -if ($user_level < 9) // Must be at least level 9 - die (__('Sorry, you must be at least a level 8 user to modify themes.')); +if ($user_level < 9) + die (__('Sorry, you must be at least a level 9 user to modify themes.')); ?> + +

+ + - -

%s. The template files are located in %s. The stylesheet files are located in %s. %s uses templates from %s. Changes made to the templates will affect both themes.'), $current_theme, $current_template_dir, $current_stylesheet_dir, $current_theme, $current_parent_theme); ?>

- -

%s. The template files are located in %s. The stylesheet files are located in %s.'), $current_theme, $current_template_dir, $current_stylesheet_dir); ?>

- -
-

-

wp-content/themes directory. Once a theme is installed, you may select it here.'); ?>

- +
+

+

+ +

%s. The template files are located in %s. The stylesheet files are located in %s. %s uses templates from %s. Changes made to the templates will affect both themes.'), $current_theme, $current_template_dir, $current_stylesheet_dir, $current_theme, $current_parent_theme); ?>

+ +

%s. The template files are located in %s. The stylesheet files are located in %s.'), $current_theme, $current_template_dir, $current_stylesheet_dir); ?>

+ +
-if (empty($themes)) { - _e("

Couldn't open themes directory or there are no themes available.

"); // TODO: make more helpful -} else { -?> +

+

wp-content/themes directory. Once a theme is installed, you may select it here.'); ?>

+ + - - + @@ -76,7 +82,7 @@ if (empty($themes)) { $author = $themes[$theme_name]['Author']; if ($template == $current_template && $stylesheet == $current_stylesheet) { - $action = "" . __('Active Theme') . ''; + $action = __('Active Theme'); } else { $action = "" . __('Select') . ''; } @@ -84,11 +90,10 @@ if (empty($themes)) { $theme = ('class="alternate"' == $theme) ? '' : 'class="alternate"'; echo " - - - + + - + "; } ?>
$title$version$author$title $version$author $description$action$action