From 9155619b9e05f9830375bb83c4d09d6eac7d9b52 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 6 Dec 2008 20:54:51 +0000 Subject: [PATCH] Some basic help for screens that have postboxes git-svn-id: https://develop.svn.wordpress.org/trunk@10089 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 32 ++++++++++++++++++++++++++++++-- wp-admin/wp-admin.css | 8 ++------ 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index d427389242..8339ced9f0 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -3312,10 +3312,31 @@ function screen_meta($screen) { if ( !isset($_wp_contextual_help) ) $_wp_contextual_help = array(); - if ( !isset($_wp_contextual_help['post']) ) - $_wp_contextual_help['post'] = __('Writing Posts'); + + if ( !isset($_wp_contextual_help['post']) ) { + $help = drag_drop_help(); + $help .= '

' . __('Writing Posts') . '

'; + $_wp_contextual_help['post'] = $help; + } + + if ( !isset($_wp_contextual_help['page']) ) { + $help = drag_drop_help(); + $_wp_contextual_help['page'] = $help; + } + + if ( !isset($_wp_contextual_help['dashboard']) ) { + $help = drag_drop_help(); + $_wp_contextual_help['dashboard'] = $help; + } + + if ( !isset($_wp_contextual_help['link']) ) { + $help = drag_drop_help(); + $_wp_contextual_help['link'] = $help; + } + if ( !isset($_wp_contextual_help['options-general']) ) $_wp_contextual_help['options-general'] = __('General Settings'); + $_wp_contextual_help = apply_filters('contextual_help_list', $_wp_contextual_help, $screen); ?>