equal
deleted
inserted
replaced
9 |
9 |
10 /** |
10 /** |
11 * Customize Nav Menu Locations Control Class. |
11 * Customize Nav Menu Locations Control Class. |
12 * |
12 * |
13 * @since 4.9.0 |
13 * @since 4.9.0 |
|
14 * |
|
15 * @see WP_Customize_Control |
14 */ |
16 */ |
15 class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control { |
17 class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control { |
16 |
18 |
17 /** |
19 /** |
18 * Control type. |
20 * Control type. |
49 printf( |
51 printf( |
50 /* translators: 1: Codex URL, 2: additional link attributes, 3: accessibility text */ |
52 /* translators: 1: Codex URL, 2: additional link attributes, 3: accessibility text */ |
51 _x( '(If you plan to use a menu <a href="%1$s" %2$s>widget%3$s</a>, skip this step.)', 'menu locations' ), |
53 _x( '(If you plan to use a menu <a href="%1$s" %2$s>widget%3$s</a>, skip this step.)', 'menu locations' ), |
52 __( 'https://codex.wordpress.org/WordPress_Widgets' ), |
54 __( 'https://codex.wordpress.org/WordPress_Widgets' ), |
53 ' class="external-link" target="_blank"', |
55 ' class="external-link" target="_blank"', |
54 sprintf( '<span class="screen-reader-text"> %s</span>', |
56 sprintf( |
|
57 '<span class="screen-reader-text"> %s</span>', |
55 /* translators: accessibility text */ |
58 /* translators: accessibility text */ |
56 __( '(opens in a new window)' ) |
59 __( '(opens in a new tab)' ) |
57 ) |
60 ) |
58 ); |
61 ); |
59 ?> |
62 ?> |
60 </em> |
63 </em> |
61 </p> |
64 </p> |
71 <input id="{{ elementId }}" type="checkbox" data-menu-id="{{ data.menu_id }}" data-location-id="<?php echo esc_attr( $location ); ?>" class="menu-location" /> |
74 <input id="{{ elementId }}" type="checkbox" data-menu-id="{{ data.menu_id }}" data-location-id="<?php echo esc_attr( $location ); ?>" class="menu-location" /> |
72 <label for="{{ elementId }}"> |
75 <label for="{{ elementId }}"> |
73 <?php echo $description; ?> |
76 <?php echo $description; ?> |
74 <span class="theme-location-set"> |
77 <span class="theme-location-set"> |
75 <?php |
78 <?php |
76 /* translators: %s: menu name */ |
79 printf( |
77 printf( _x( '(Current: %s)', 'menu location' ), |
80 /* translators: %s: menu name */ |
|
81 _x( '(Current: %s)', 'menu location' ), |
78 '<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>' |
82 '<span class="current-menu-location-name-' . esc_attr( $location ) . '"></span>' |
79 ); |
83 ); |
80 ?> |
84 ?> |
81 </span> |
85 </span> |
82 </label> |
86 </label> |