X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fef8173b8c3bad08f495551e43cfdeac1cae6021..refs/tags/wordpress-3.3-scripts2:/wp-admin/theme-editor.php diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 7760d507..7b31745b 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -20,26 +20,30 @@ if ( !current_user_can('edit_themes') ) $title = __("Edit Themes"); $parent_file = 'themes.php'; -$help = '

' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '

'; -$help .= '

' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '

'; -$help .= '

' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '

'; -$help .= '

' . __('After typing in your edits, click Update File.') . '

'; -$help .= '

' . __('Advice: think very carefully about your site crashing if you are live-editing the theme currently in use.') . '

'; -$help .= '

' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a child theme instead.') . '

'; -if ( is_network_admin() ) - $help .= '

' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '

'; -$help .= '

' . __('For more information:') . '

'; -$help .= '

' . __('Documentation on Theme Development') . '

'; -$help .= '

' . __('Documentation on Using Themes') . '

'; -$help .= '

' . __('Documentation on Editing Files') . '

'; -$help .= '

' . __('Documentation on Template Tags') . '

'; -$help .= '

' . __('Support Forums') . '

'; -add_contextual_help($current_screen, $help); +get_current_screen()->add_help_tab( array( +'id' => 'overview', +'title' => __('Overview'), +'content' => + '

' . __('You can use the Theme Editor to edit the individual CSS and PHP files which make up your theme.') . '

+

' . __('Begin by choosing a theme to edit from the dropdown menu and clicking Select. A list then appears of all the template files. Clicking once on any file name causes the file to appear in the large Editor box.') . '

+

' . __('For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Lookup takes you to a web page with reference material about that particular function.') . '

+

' . __('After typing in your edits, click Update File.') . '

+

' . __('Advice: think very carefully about your site crashing if you are live-editing the theme currently in use.') . '

+

' . __('Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a child theme instead.') . '

' . + ( is_network_admin() ? '

' . __('Any edits to files from this screen will be reflected on all sites in the network.') . '

' : '' ) +) ); + +get_current_screen()->set_help_sidebar( + '

' . __('For more information:') . '

' . + '

' . __('Documentation on Theme Development') . '

' . + '

' . __('Documentation on Using Themes') . '

' . + '

' . __('Documentation on Editing Files') . '

' . + '

' . __('Documentation on Template Tags') . '

' . + '

' . __('Support Forums') . '

' +); wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'theme', 'dir')); -wp_admin_css( 'theme-editor' ); - $themes = get_themes(); if (empty($theme)) { @@ -192,7 +196,7 @@ if ($allowed_files) : ksort( $template_mapping ); while ( list( $template_sorted_key, list( $template_file, $filedesc ) ) = each( $template_mapping ) ) : ?> -
  • &theme=&dir=theme">
  • +
  • @@ -214,7 +218,7 @@ if ($allowed_files) : ksort( $template_mapping ); while ( list( $template_sorted_key, list( $style_file, $filedesc ) ) = each( $template_mapping ) ) : ?> -
  • &theme=&dir=style">
  • +