Make WordPress Core


Ignore:
Timestamp:
04/30/2009 02:33:22 AM (18 years ago)
Author:
azaozz
Message:

Add some help for the widgets screen, make css class .description usable everywhere, fixes #5859

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11132 r11133  
    34593459                        }
    34603460                        break;
     3461                case 'widgets':
     3462                        if ( !isset($_wp_contextual_help['widgets']) ) {
     3463                                $help = widgets_help();
     3464                                $_wp_contextual_help['widgets'] = $help;
     3465                        }
     3466                        break;
    34613467        }
    34623468?>
    … …  
    35633569}
    35643570
     3571function widgets_help() {
     3572        return '
     3573        <p>' .  __('Widgets can be added or arranged by dragging. If you hover your mouse over the title bar of a widget you&rsquo;ll notice the 4 arrow cursor appears to let you know it is movable. Click on it, hold down the mouse button and start dragging the widget to a new location. As you drag the module, notice the dotted gray box that also moves. This box indicates where the widget will be placed when you release the mouse button.') . '</p>
     3574        <p>' . __('To show or hide the settings for a widget, click on the arrow that appears on the right of the widget title.') . '</p>
     3575        <p>' . __('The Inactive Widgets area stores all widgets that are configured but not curently used on the web site. After changing themes if the new theme has less sidebars than the old theme, all widgets that were in these sidebars will be transfered to Inactive Widgets.') . '</p>
     3576';
     3577}
     3578
    35653579function screen_layout($screen) {
    35663580        global $screen_layout_columns;
Note: See TracChangeset for help on using the changeset viewer.