Changeset 23844 for trunk/wp-admin/nav-menus.php
- Timestamp:
- 03/29/2013 03:39:34 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/nav-menus.php
r23810 r23844 474 474 $messages[] = '<div id="message" class="updated"><p>' . __('The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.') . '</p></div>'; 475 475 476 get_current_screen()->add_help_tab( array( 477 'id' => 'overview', 478 'title' => __('Overview'), 479 'content' => 480 '<p>' . __('This feature allows you to use a custom menu in place of your theme’s default menus.') . '</p>' . 481 '<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>' . 482 '<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>' 483 ) ); 484 get_current_screen()->add_help_tab( array( 485 'id' => 'create-menus', 486 'title' => __('Create Menus'), 487 'content' => 488 '<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’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’t forget to click Save Menu when you’re finished.') . '</p>' 489 ) ); 476 if ( ! $locations_screen ) : // Main tab 477 $overview = '<p>' . __( 'This screen is used for managing your custom navigation menus.' ) . '</p>'; 478 $overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a Custom Menus widget on the <a href="%s">Widgets</a> screen. ' ), admin_url( 'widgets.php') ); 479 $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>'; 480 $overview .= '<p>' . __( 'From this screen you can:' ) . '</p>'; 481 $overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>'; 482 $overview .= '<li>' . __( 'Add, organize, and modify individual menu items' ) . '</li></ul>'; 483 484 get_current_screen()->add_help_tab( array( 485 'id' => 'overview', 486 'title' => __( 'Overview' ), 487 'content' => $overview 488 ) ); 489 490 $menu_management = '<p>' . __( 'The menu management box at the top of the screen is used to control which menu is opened in the editor below.' ) . '</p>'; 491 $menu_management .= '<ul><li>' . __( 'To edit an existing menu, <strong>choose a menu from the drop down and click Select</strong>' ) . '</li>'; 492 $menu_management .= '<li>' . __( 'If you haven’t yet created any menus, <strong>click the ’create a new menu’ link or the Add New button</strong> to get started' ) . '</li></ul>'; 493 $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>'; 494 495 get_current_screen()->add_help_tab( array( 496 'id' => 'menu-management', 497 'title' => __( 'Menu Management' ), 498 'content' => $menu_management 499 ) ); 500 501 $editing_menus = '<p>' . __( 'Each custom menu may contain a 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>'; 502 $editing_menus .= '<p>' . __( '<strong>Clicking the title of any menu item</strong> in the editor will reveal a standard group of settings. Additional settings such as link target, CSS classes, link relationships, and link descriptions can be enabled and disabled via the Screen Options tab.' ) . '</p>'; 503 $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>'; 504 $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>'; 505 $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>'; 506 $editing_menus .= '<li>' . __( 'Delete a menu item by <strong>expanding it and clicking the Remove link</strong>' ) . '</li></ul>'; 507 508 get_current_screen()->add_help_tab( array( 509 'id' => 'editing-menus', 510 'title' => __( 'Editing Menus' ), 511 'content' => $editing_menus 512 ) ); 513 else : // Locations Tab 514 $locations_overview = '<p>' . __( 'This screen is used for globally assigning menus to locations defined by your theme.' ) . '</p>'; 515 $locations_overview .= '<ul><li>' . __( 'To assign menus to one or more theme locations, <strong>select a menu from each location’s drop down.</strong> When you’re finished, <strong>click Save Changes</strong>' ) . '</li>'; 516 $locations_overview .= '<li>' . __( 'To edit a menu currently assigned to a theme location, <strong>click the adjacent ’Edit’ link</strong>' ) . '</li>'; 517 $locations_overview .= '<li>' . __( 'To add a new menu instead of assigning an existing one, <strong>click the ’Use new menu’ link</strong>. Your new menu will be automatically assigned to that theme location' ) . '</li></ul>'; 518 519 get_current_screen()->add_help_tab( array( 520 'id' => 'locations-overview', 521 'title' => __( 'Overview' ), 522 'content' => $locations_overview 523 ) ); 524 endif; 490 525 491 526 get_current_screen()->set_help_sidebar(
Note: See TracChangeset
for help on using the changeset viewer.