Make WordPress Core

Ticket #23608: 23608.3.diff

File 23608.3.diff, 5.2 KB (added by DrewAPicture, 11 years ago)

A fresh start.

  • wp-admin/nav-menus.php

     
    448448if ( ! current_theme_supports( 'menus' ) && ! wp_get_nav_menus() )
    449449        $messages[] = '<div id="message" class="updated"><p>' . __('The current theme does not natively support menus, but you can use the &#8220;Custom Menu&#8221; widget to add any menus you create here to the theme&#8217;s sidebar.') . '</p></div>';
    450450
     451$overview  = '<p>' . __( 'This screen is used for managing your custom navigation menus.' ) . '</p>';
     452$overview .= '<p>' . __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a Custom Menus widget on the Widgets screen. ' );
     453$overview .= sprintf( __( 'If your theme does not support the custom menus feature (the default themes, %1$s and %2$s, do), you can learn about adding this support by following the Documentation link to the side.' ), 'Twenty Thirteen', 'Twenty Twelve' ) . '</p>';
     454
     455$overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
     456$overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';
     457$overview .= '<li>' . __( 'Add, organize, and modify individual menu items' ) . '</li></ul>';
     458
    451459get_current_screen()->add_help_tab( array(
    452 'id'            => 'overview',
    453 'title'         => __('Overview'),
    454 'content'       =>
    455         '<p>' . __('This feature allows you to use a custom menu in place of your theme&#8217;s default menus.') . '</p>' .
    456         '<p>' . __('Custom menus may contain links to pages, categories, custom links or other content types (use the Screen Options tab to decide which ones to show on the screen). You can specify a different navigation label for a menu item as well as other attributes. You can create multiple menus. If your theme includes more than one menu location, you can choose which custom menu to associate with each. You can also use custom menus in conjunction with the Custom Menus widget.') . '</p>' .
    457         '<p>' . sprintf( __('If your theme does not support the custom menus feature (the default themes, %1$s and %2$s, do), you can learn about adding this support by following the Documentation link to the side.'), 'Twenty Thirteen', 'Twenty Twelve' ) . '</p>'
     460        'id'      => 'overview',
     461        'title'   => __( 'Overview' ),
     462        'content' => $overview
    458463) );
     464
     465$menu_management  = '<p>' . __( 'The menu management box at the top of the screen is used to control which menu is active in the editor below.' ) . '</p>';
     466$menu_management .= '<ul><li>' . __( 'To edit an existing menu, <strong>choose a menu from the drop down and click Select</strong>' ) . '</li>';
     467$menu_management .= '<li>' . __( 'If you haven&#8217;t yet created any menus, <strong>click the &#8217;create a new menu&#8217; link or the Add New button</strong> to get started' ) . '</li></ul>';
     468$menu_management .= '<p>' . __( 'You can assign theme locations to individual menus by <strong>selecting the desired settings</strong> at the bottom of the menu editor. To assign menus to all theme locations at once, <strong>visit the Manage Locations tab</strong> at the top of the screen.' ) . '</p>';
     469
    459470get_current_screen()->add_help_tab( array(
    460 'id'            => 'create-menus',
    461 'title'         => __('Create Menus'),
    462 'content'       =>
    463         '<p>' . __('To create a new custom menu, click on the + tab, give the menu a name, and click Create Menu. Next, add menu items from the appropriate boxes. You&#8217;ll be able to edit the information for each menu item, and can drag and drop to change their order. You can also drag a menu item a little to the right to make it a submenu. Don&#8217;t forget to click Save Menu when you&#8217;re finished.') . '</p>'
     471        'id'      => 'menu-management',
     472        'title'   => __( 'Menu Management' ),
     473        'content' => $menu_management
    464474) );
    465475
     476$editing_menus  = '<p>' . __( 'Each custom menu may contain a unique mix of links to pages, categories, custom URLs or other content types. Menu links are added by selecting items from the expanding boxes in the left-hand column below.' ) . '</p>';
     477$editing_menus .= '<ul><li>' . __( 'Add one or several items at once by <strong>selecting the checkbox next to each item and clicking Add to Menu</strong>' ) . '</li>';
     478$editing_menus .= '<li>' . __( 'To add a custom link, <strong>expand the Links section, enter a URL and link text, and click Add to Menu</strong>' ) .'</li>';
     479$editing_menus .= '<li>' . __( 'To reorganize menu items, <strong>drag and drop items with your mouse or use your keyboard</strong>. Drag or move a menu item a little to the right to make it a submenu' ) . '</li>';
     480$editing_menus .= '<li>' . __( 'Delete a menu item by <strong>expanding it and clicking the Remove link</strong>' ) . '</li></ul>';
     481$editing_menus .= '<p>' . __( 'Additional settings such as link target, CSS classes, link relationships, and link descriptions can be enabled and disabled via the Screen Options tab.' ) . '</p>';
     482
     483get_current_screen()->add_help_tab( array(
     484        'id'      => 'editing-menus',
     485        'title'   => __( 'Editing Menus' ),
     486        'content' => $editing_menus
     487) );
     488
    466489get_current_screen()->set_help_sidebar(
    467490        '<p><strong>' . __('For more information:') . '</strong></p>' .
    468491        '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_Screen" target="_blank">Documentation on Menus</a>') . '</p>' .