From 8348cde19810289b1cad52f3a30b07cc55dbec74 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 16 Feb 2008 22:08:13 +0000 Subject: [PATCH] Theme editor restyling from hansengel. see #5871 git-svn-id: https://develop.svn.wordpress.org/trunk@6878 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/css/theme-editor.css | 45 +++++++++++++++++++ wp-admin/theme-editor.php | 81 ++++++++++++++++++++++------------- wp-admin/wp-admin.css | 26 +++-------- 3 files changed, 102 insertions(+), 50 deletions(-) create mode 100644 wp-admin/css/theme-editor.css diff --git a/wp-admin/css/theme-editor.css b/wp-admin/css/theme-editor.css new file mode 100644 index 0000000000..e4dccdf17d --- /dev/null +++ b/wp-admin/css/theme-editor.css @@ -0,0 +1,45 @@ +#template textarea { + font: small 'Courier New', Courier, monospace; + width: 97%; +} + +#templateside { + float: right; + width: 200px; + overflow: hidden; + position: absolute; + right: 15%; + top: 250px; +} + +#templateside h3, #postcustom p.submit { + margin: 0; +} + +#templateside ol, #templateside ul { + list-style: none; + margin: .5em; + padding: 0; +} + +#templateside ol li, #templateside ul li { + margin: 1px 0px; +} + +#themeselector { + padding-right: 5px; + float: right; + position: relative; + bottom: 25px; +} + +.nonessential { + font-size: small; + color: #999999; +} + +.highlight { + background-color: #E4F2FD; + padding: 1px; + color: #d54e21; +} \ No newline at end of file diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 745882c2bc..43d18ce76b 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -5,6 +5,7 @@ $title = __("Edit Themes"); $parent_file = 'themes.php'; wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'theme')); +wp_admin_css( 'css/theme-editor' ); $themes = get_themes(); @@ -78,42 +79,64 @@ default: ?>

- -
-
- - - -
-
+ - ' . sprintf(__('Editing %s'), $file_show) . ''; - } else { - echo '

' . sprintf(__('Browsing %s'), $file_show) . '

'; - } - ?> +$description = get_file_description($file); +$desc_header = ( $description != $file_show ) ? "$description (%s)" : "%s"; +?> +
+
+

Theme Editor

+
+ + + +
+
+
+
+
+ +
+
+
+
-

'%s' theme files"), $theme) ?>

+

+

    - -
  • &theme=">
  • +($template_show)" : "$description"; + $filedesc = ( $template_file == $file ) ? "$description ($template_show)" : $filedesc; + ?> +
  • &theme=">
  • + +
+

+
    +($style_show)" : "$description"; + $filedesc = ( $style_file == $file ) ? "$description ($style_show)" : $filedesc; + ?> +
  • &theme=">
diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 85e254d34b..81a4568596 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -380,27 +380,6 @@ input.delete:hover { zoom: 1; } -#template textarea { - font: small 'Courier New', Courier, monospace; - width: 97%; -} - -#templateside { - float: right; - width: 170px; - overflow: hidden; -} - -#templateside h3, #postcustom p.submit { - margin: 0; -} - -#templateside ol, #templateside ul { - list-style: none; - margin: .5em; - padding: 0; -} - .active td { background: #BEB; } @@ -1219,6 +1198,11 @@ p#post-search { padding: 0 0 .2em 1px; } +.bordertitle { + padding-bottom: 5px; + border-bottom: 1px solid #dadada; +} + /* Global classes */ .wp-hidden-children .wp-hidden-child { display: none; } .wp-no-js-hidden { display: none; }