Changeset 41586 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 09/24/2017 03:59:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r41558 r41586 4169 4169 /* Custom CSS */ 4170 4170 $section_description = '<p>'; 4171 $section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' , 'better-code-editing');4171 $section_description .= __( 'Add your own CSS code here to customize the appearance and layout of your site.' ); 4172 4172 $section_description .= sprintf( 4173 4173 ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>', 4174 esc_url( __( 'https://codex.wordpress.org/CSS' , 'default') ),4175 __( 'Learn more about CSS' , 'default'),4174 esc_url( __( 'https://codex.wordpress.org/CSS' ) ), 4175 __( 'Learn more about CSS' ), 4176 4176 /* translators: accessibility text */ 4177 __( '(opens in a new window)' , 'default')4177 __( '(opens in a new window)' ) 4178 4178 ); 4179 4179 $section_description .= '</p>'; 4180 4180 4181 $section_description .= '<p >' . __( 'When using a keyboard to navigate:', 'better-code-editing' ) . '</p>';4181 $section_description .= '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>'; 4182 4182 $section_description .= '<ul>'; 4183 $section_description .= '<li>' . __( 'In the CSS edit field, Tab enters a tab character.', 'better-code-editing' ) . '</li>'; 4184 $section_description .= '<li>' . __( 'To move keyboard focus, press Esc then Tab for the next element, or Esc then Shift+Tab for the previous element.', 'better-code-editing' ) . '</li>'; 4183 $section_description .= '<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>'; 4184 $section_description .= '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>'; 4185 $section_description .= '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>'; 4185 4186 $section_description .= '</ul>'; 4186 4187 … … 4189 4190 $section_description .= sprintf( 4190 4191 /* translators: placeholder is link to user profile */ 4191 __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' , 'better-code-editing'),4192 __( 'The edit field automatically highlights code syntax. You can disable this in your %s to work in plain text mode.' ), 4192 4193 sprintf( 4193 4194 ' <a href="%1$s" class="external-link" target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>', 4194 esc_url( get_edit_profile_url() . '#syntax_highlighting'),4195 __( 'user profile' , 'better-code-editing'),4195 esc_url( get_edit_profile_url() ), 4196 __( 'user profile' ), 4196 4197 /* translators: accessibility text */ 4197 __( '(opens in a new window)' , 'default')4198 __( '(opens in a new window)' ) 4198 4199 ) 4199 4200 ); … … 4202 4203 4203 4204 $section_description .= '<p class="section-description-buttons">'; 4204 $section_description .= '<button type="button" class="button-link section-description-close">' . __( 'Close' , 'default') . '</button>';4205 $section_description .= '<button type="button" class="button-link section-description-close">' . __( 'Close' ) . '</button>'; 4205 4206 $section_description .= '</p>'; 4206 4207 … … 4219 4220 4220 4221 $this->add_control( new WP_Customize_Code_Editor_Control( $this, 'custom_css', array( 4221 'section' => 'custom_css', 4222 'settings' => array( 'default' => $custom_css_setting->id ), 4223 'code_type' => 'text/css', 4222 'label' => __( 'CSS code' ), 4223 'section' => 'custom_css', 4224 'settings' => array( 'default' => $custom_css_setting->id ), 4225 'code_type' => 'text/css', 4226 'input_attrs' => array( 4227 'aria-describedby' => 'editor-keyboard-trap-help-1 editor-keyboard-trap-help-2 editor-keyboard-trap-help-3 editor-keyboard-trap-help-4', 4228 ), 4224 4229 ) ) ); 4225 4230 }
Note: See TracChangeset
for help on using the changeset viewer.