X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/a66f9e26487c560245ef9cd17d7e87c0cbb650af..177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4:/wp-admin/theme-editor.php diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 5541f312..f17a48c1 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -6,6 +6,11 @@ $parent_file = 'themes.php'; wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'theme')); +add_action( 'admin_head', 'theme_editor_css' ); +function theme_editor_css(){ + wp_admin_css( 'css/theme-editor' ); +} + $themes = get_themes(); if (empty($theme)) { @@ -78,42 +83,63 @@ default: ?>

- -
-
- + (%s)" : "%s"; +?> +
+
+

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

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

'; - } - ?> + + + +
+
+
+ +
+
+
+
-

'%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=">
@@ -128,15 +154,18 @@ if ($allowed_files) :
+ +
-

+

"; + echo ""; ?>

-

+

the Codex for more information.'); ?>

+