561 | | <h1 class="nav-tab-wrapper"> |
| 561 | <h1><?php echo esc_html( __( 'Menus' ) ); ?> |
| 562 | <?php |
| 563 | if ( current_user_can( 'customize' ) ) : |
| 564 | $focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' ); |
| 565 | printf( |
| 566 | ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', |
| 567 | esc_url( add_query_arg( array( |
| 568 | array( 'autofocus' => $focus ), |
| 569 | 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), |
| 570 | ), admin_url( 'customize.php' ) ) ), |
| 571 | __( 'Manage in Customizer' ) |
| 572 | ); |
| 573 | endif; |
| 574 | ?> |
| 575 | </h1> |
| 576 | <h2 class="nav-tab-wrapper"> |
567 | | |
568 | | if ( current_user_can( 'customize' ) ) : |
569 | | $focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' ); |
570 | | printf( |
571 | | ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', |
572 | | esc_url( add_query_arg( array( |
573 | | array( 'autofocus' => $focus ), |
574 | | 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), |
575 | | ), admin_url( 'customize.php' ) ) ), |
576 | | __( 'Manage in Customizer' ) |
577 | | ); |
578 | | endif; |