579 | | <h1><?php echo esc_html( __( 'Menus' ) ); ?> |
580 | | <?php |
581 | | if ( current_user_can( 'customize' ) ) : |
582 | | $focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' ); |
583 | | printf( |
584 | | ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', |
585 | | esc_url( add_query_arg( array( |
586 | | array( 'autofocus' => $focus ), |
587 | | 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), |
588 | | ), admin_url( 'customize.php' ) ) ), |
589 | | __( 'Manage with Live Preview' ) |
590 | | ); |
591 | | endif; |
592 | | ?> |
593 | | </h1> |
| 579 | <h1 class="wp-heading-inline"><?php echo esc_html( __( 'Menus' ) ); ?></h1> |
| 580 | <?php |
| 581 | if ( current_user_can( 'customize' ) ) : |
| 582 | $focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' ); |
| 583 | printf( |
| 584 | ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', |
| 585 | esc_url( add_query_arg( array( |
| 586 | array( 'autofocus' => $focus ), |
| 587 | 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), |
| 588 | ), admin_url( 'customize.php' ) ) ), |
| 589 | __( 'Manage with Live Preview' ) |
| 590 | ); |
| 591 | endif; |
| 592 | ?> |
| 593 | |
| 594 | <hr class="wp-header-end"> |
| 595 | |