@@ 610-612 (lines=3) @@ | ||
607 | if ( $locations_screen ) : |
|
608 | if ( 1 == $num_locations ) { |
|
609 | echo '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '</p>'; |
|
610 | } else { |
|
611 | echo '<p>' . sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '</p>'; |
|
612 | } |
|
613 | ?> |
|
614 | <div id="menu-locations-wrap"> |
|
615 | <form method="post" action="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>"> |
@@ 517-520 (lines=4) @@ | ||
514 | $num_locations = count( array_keys( $locations ) ); |
|
515 | if ( 1 == $num_locations ) { |
|
516 | $description = '<p>' . __( 'Your theme supports one menu. Select which menu you would like to use.' ) . '</p>'; |
|
517 | } else { |
|
518 | /* translators: %s: number of menu locations */ |
|
519 | $description = '<p>' . sprintf( _n( 'Your theme supports %s menu. Select which menu appears in each location.', 'Your theme supports %s menus. Select which menu appears in each location.', $num_locations ), number_format_i18n( $num_locations ) ) . '</p>'; |
|
520 | } |
|
521 | if ( current_theme_supports( 'widgets' ) ) { |
|
522 | /* translators: URL to the widgets panel of the customizer */ |
|
523 | $description .= '<p>' . sprintf( __( 'You can also place menus in <a href="%s">widget areas</a> with the “Custom Menu” widget.' ), "javascript:wp.customize.panel( 'widgets' ).focus();" ) . '</p>'; |