Make WordPress Core

Ticket #23608: 23608.2.diff

File 23608.2.diff, 5.5 KB (added by JerrySarcastic, 12 years ago)

Changes to "Overview" help strings

  • wp-admin/nav-menus.php

     
    427427if ( ! current_theme_supports( 'menus' ) && ! wp_get_nav_menus() )
    428428        $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>';
    429429
     430$overview  = '<p><strong>' . __( 'This screen is used for managing your custom navigation menus.' ) . '</strong></p>';
     431$overview .= '<p>' . __( 'Menus can be assigned to locations defined by your WordPress theme.  You can also create a custom menus here that you can use with the Custom Menu Widget to add them to other areas of your site.  From this screen you can:' ) . '</p>';
     432$overview .= '<ul><li>' . __( 'Create and manage custom menus' ) . '</li>';
     433$overview .= '<li>' . __( 'Rearrange, add, or remove menu items or "tabs" in an individual menu' ) . '</li>';
     434$overview .= '<li>' . __( 'Assign a menu to a specific location within your theme' ) . '</li></ul>';
     435
     436$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 custom menus to your site using the following documentation and support links.' ), 'Twenty Thirteen', 'Twenty Twelve' ) . '</p>';
     437
     438
    430439get_current_screen()->add_help_tab( array(
    431 'id'            => 'overview',
    432 'title'         => __('Overview'),
    433 'content'       =>
    434         '<p>' . __('This feature allows you to use a custom menu in place of your theme&#8217;s default menus.') . '</p>' .
    435         '<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>' .
    436         '<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>'
     440        'id'      => 'overview',
     441        'title'   => __( 'Overview' ),
     442        'content' => $overview
    437443) );
     444
     445$add_edit_menus  = '<p>' . __( 'Use the menu management box at the top of the screen to add or select existing menus to edit.' ) . '</p>';
     446$add_edit_menus .= '<ul><li>' . __( 'To create your first menu, either give your default menu a name then save by <strong>clicking &#8217;Create Menu&#8217;</strong> or following the steps to add a new menu.' ) . '</li>';
     447$add_edit_menus .= '<li>' . __( 'To create a new menu <strong>click the &#8217;Add New&#8217; button</strong> at the top of the screen. Give your menu a name, then <strong>click &#8217;Create Menu&#8217;</strong>.' ) . '</li>';
     448$add_edit_menus .= '<li>' . __( 'To edit an existing menu, choose a menu from the drop down and <strong>click &#8217;Select&#8217;</strong>.' ) . '</li></ul>';
     449
     450$add_edit_menus .= '<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). If your theme includes more than one menu location, you can choose which custom menu to associate with each.' ) . '</p>';
     451$add_edit_menus .= '<ul><li>' . __( 'Add menu items by selecting links from the boxes in the left column and <strong>clicking &#8217;Add to Menu&#8217;</strong>.' ) . '</li>';
     452$add_edit_menus .= '<li>' . __( 'To rearrange 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>';
     453$add_edit_menus .= '<li>' . __( 'Delete a menu item by expanding it and <strong>clicking the Remove link</strong>.' ) . '</li></ul>';
     454
    438455get_current_screen()->add_help_tab( array(
    439 'id'            => 'create-menus',
    440 'title'         => __('Create Menus'),
    441 'content'       =>
    442         '<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>'
     456        'id'      => 'add-edit-menus',
     457        'title'   => __( 'Add & Edit Menus' ),
     458        'content' => $add_edit_menus
    443459) );
    444460
     461$other_settings = '<p>' . __( 'In addition to the standard menu item settings, you can also set additional attributes for each menu item. Attributes like link target, CSS classes, link relationships and link descriptions can be enabled and disabled via the Screen Options tab.' ) . '</p>';
     462$other_settings .= '<p>' . __( 'You can find more information about additional menu item attributes by following the Documentation link to the side.' ) . '</p>';
     463
     464get_current_screen()->add_help_tab( array(
     465        'id'      => 'other-settings',
     466        'title'   => __( 'Other Settings' ),
     467        'content' => $other_settings
     468) );
     469
    445470get_current_screen()->set_help_sidebar(
    446471        '<p><strong>' . __('For more information:') . '</strong></p>' .
    447472        '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_Screen" target="_blank">Documentation on Menus</a>') . '</p>' .