Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/nav-menus.php

    r15429 r17039  
    1111
    1212/** Load WordPress Administration Bootstrap */
    13 require_once( 'admin.php' );
     13require_once( './admin.php' );
    1414
    1515// Load all the nav menu interface functions
     
    7171                $menu_item_data = (array) wp_setup_nav_menu_item( get_post( $menu_item_id ) );
    7272
    73                 // setup the data we need in one pass through the array of menu items
     73                // set up the data we need in one pass through the array of menu items
    7474                $dbids_to_orders = array();
    7575                $orders_to_dbids = array();
     
    145145                $menu_item_data = (array) wp_setup_nav_menu_item( get_post( $menu_item_id ) );
    146146
    147                 // setup the data we need in one pass through the array of menu items
     147                // set up the data we need in one pass through the array of menu items
    148148                $dbids_to_orders = array();
    149149                $orders_to_dbids = array();
     
    450450    $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>';
    451451
    452 $help =  '<p>' . __('This feature is new in version 3.0; to use a custom menu in place of your theme&#8217;s default menus, support for this feature must be registered in the theme&#8217;s functions.php file. If your theme does not support the custom menus feature yet (the new default theme, Twenty Ten, does), you can learn about adding support yourself by following the below link.') . '</p>';
     452$help =  '<p>' . __('This feature, introduced in version 3.0, allows you to use a custom menu in place of your theme&#8217;s default menus. If your theme does not support the custom menus feature yet (the default theme, Twenty Ten, does), you can learn about adding this support by following the Documentation link in this tab. You can still use the &#8220;Custom Menu&#8221; widget to add menus to a sidebar.') . '</p>';
    453453$help .= '<p>' . __('You can create custom menus for your site. These 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, you can choose which custom menu to associate with each. You can also use custom menus in conjunction with the Custom Menus widget.') . '</p>';
    454 $help .= '<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 put them in order. You can also drag a menu item a little to the right to make it a submenu, to create menus with hierarchy. You&#8217;ll see when the position of the drop target shifts over to create the nested placement. Don&#8217;t forget to click Save when you&#8217;re finished.') . '</p>';
     454$help .= '<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 put them in order. You can also drag a menu item a little to the right to make it a submenu, to create menus with hierarchy. Drop the item into its new nested placement when the dotted rectangle target shifts over, also a little to the right. Don&#8217;t forget to click Save when you&#8217;re finished.') . '</p>';
    455455$help .= '<p><strong>' . __('For more information:') . '</strong></p>';
    456 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_SubPanel" target="_blank">Menus Documentation</a>') . '</p>';
     456$help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Menus_SubPanel" target="_blank">Documentation on Menus</a>') . '</p>';
    457457$help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
    458458
     
    460460
    461461// Get the admin header
    462 require_once( 'admin-header.php' );
     462require_once( './admin-header.php' );
    463463?>
    464464<div class="wrap">
     
    495495                    </select>
    496496                    <input type="hidden" name="action" value="edit" />
    497                     <input class="button-secondary" name="select_menu" type="submit" value="<?php esc_attr_e('Select'); ?>" />
     497                    <?php submit_button( __( 'Select' ), 'secondary', 'select_menu', false ); ?>
    498498                </form>
    499499            </div>
     
    557557                                <br class="clear" />
    558558                                <div class="publishing-action">
    559                                     <input class="button-primary menu-save" name="save_menu" type="submit" value="<?php empty($nav_menu_selected_id) ? esc_attr_e('Create Menu') : esc_attr_e('Save Menu'); ?>" />
     559                                    <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false ); ?>
    560560                                </div><!-- END .publishing-action -->
    561561
     
    591591                        </div><!-- /#post-body-content -->
    592592                    </div><!-- /#post-body -->
     593                    <div id="nav-menu-footer">
     594                        <div class="major-publishing-actions">
     595                        <div class="publishing-action">
     596                            <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false ); ?>
     597                        </div>
     598                        </div>
     599                    </div><!-- /#nav-menu-footer -->
    593600                </form><!-- /#update-nav-menu -->
    594601            </div><!-- /.menu-edit -->
     
    599606
    600607
    601 <?php include( 'admin-footer.php' ); ?>
     608<?php include( './admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.