Changeset 43569 for trunk/src/wp-admin/nav-menus.php
- Timestamp:
- 08/15/2018 06:22:00 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/nav-menus.php
r42857 r43569 629 629 <h2 class="nav-tab-wrapper wp-clearfix"> 630 630 <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php echo $nav_tab_active_class; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a> 631 <?php if ( $num_locations && $menu_count ) : ?>632 <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab633 <?php634 if ( $locations_screen ) {635 echo ' nav-tab-active';}636 ?>637 "><?php esc_html_e( 'Manage Locations' ); ?></a>638 631 <?php 639 endif; 632 if ( $num_locations && $menu_count ) { 633 $active_tab_class = ''; 634 if ( $locations_screen ) { 635 $active_tab_class = ' nav-tab-active'; 636 } 637 ?> 638 <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php echo $active_tab_class; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a> 639 <?php 640 } 640 641 ?> 641 642 </h2> … … 695 696 ) 696 697 ); 697 ?>698 ">698 ?> 699 "> 699 700 <span aria-hidden="true"><?php _ex( 'Edit', 'menu' ); ?></span><span class="screen-reader-text"><?php _e( 'Edit selected menu' ); ?></span> 700 701 </a> … … 713 714 ) 714 715 ); 715 ?>716 ">716 ?> 717 "> 717 718 <?php _ex( 'Use new menu', 'menu' ); ?> 718 719 </a> … … 819 820 820 821 $metabox_holder_disabled_class = ''; 821 if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) {822 $metabox_holder_disabled_class = ' metabox-holder-disabled';823 }822 if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) { 823 $metabox_holder_disabled_class = ' metabox-holder-disabled'; 824 } 824 825 ?> 825 826 </div><!-- /manage-menus --> … … 843 844 <?php 844 845 $new_screen_class = ''; 845 if ( $add_new_screen ) {846 $new_screen_class = 'blank-slate';847 }846 if ( $add_new_screen ) { 847 $new_screen_class = 'blank-slate'; 848 } 848 849 ?> 849 850 <h2><?php _e( 'Menu structure' ); ?></h2> … … 907 908 908 909 $no_menus_style = ''; 909 if ( $one_theme_location_no_menus ) {910 $no_menus_style = 'style="display: none;"';911 }910 if ( $one_theme_location_no_menus ) { 911 $no_menus_style = 'style="display: none;"'; 912 } 912 913 ?> 913 914 <div class="menu-settings" <?php echo $no_menus_style; ?>> … … 977 978 ) 978 979 ); 979 ?>980 "><?php _e( 'Delete Menu' ); ?></a>980 ?> 981 "><?php _e( 'Delete Menu' ); ?></a> 981 982 </span><!-- END .delete-action --> 982 983 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.