Skip to content

Commit

Permalink
More piddling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Dec 2, 2021
1 parent 459a17f commit cbcc27b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions src/wp-accessibility-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,17 @@ function wpa_admin_settings() {
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'wpa-nonce' ); ?>"/>
<input type="hidden" name="action" value="asl"/>
</p>
<p><input type="submit" name="wpa-settings" class="button-primary" value="<?php _e( 'Update Skiplink Settings', 'wp-accessibility' ); ?>"/></p>
<p><input type="submit" name="wpa-settings" class="button-primary" value="<?php esc_html_e( 'Update Skiplink Settings', 'wp-accessibility' ); ?>"/></p>
</form>
<?php
}
?>
</div>
</div>
<div class="postbox">
<h2 id="toolbar" class='hndle'><?php _e( 'Accessibility Toolbar Settings', 'wp-accessibility' ); ?></h2>
<h2 id="toolbar" class='hndle'><?php esc_html_e( 'Accessibility Toolbar Settings', 'wp-accessibility' ); ?></h2>
<div class="inside">
<form method="post" action="<?php echo admin_url( 'options-general.php?page=wp-accessibility/wp-accessibility.php' ); ?>">
<form method="post" action="<?php echo esc_url( admin_url( 'options-general.php?page=wp-accessibility/wp-accessibility.php' ) ); ?>">
<ul>
<li>
<input type="checkbox" id="wpa_toolbar" name="wpa_toolbar" <?php checked( get_option( 'wpa_toolbar' ), 'on' ); ?>/>
Expand Down Expand Up @@ -408,8 +408,8 @@ function wpa_admin_settings() {
<input type="text" id="wpa_focus_color" name="wpa_focus_color" value="#<?php echo esc_attr( get_option( 'wpa_focus_color' ) ); ?>"/></li>
</ul>
<p>
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'wpa-nonce' ); ?>"/>
<input type="hidden" name="action" value="misc"/>
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'wpa-nonce' ); ?>" />
<input type="hidden" name="action" value="misc" />
</p>

<p><input type="submit" name="wpa-settings" class="button-primary" value="<?php _e( 'Update Miscellaneous Settings', 'wp-accessibility' ); ?>"/></p>
Expand All @@ -431,8 +431,8 @@ function wpa_admin_settings() {
</ul>
</fieldset>
<p>
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'wpa-nonce' ); ?>"/>
<input type="hidden" name="action" value="rta"/>
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'wpa-nonce' ); ?>" />
<input type="hidden" name="action" value="rta" />
</p>

<p><input type="submit" name="wpa-settings" class="button-primary" value="<?php _e( 'Update Title Attribute Settings', 'wp-accessibility' ); ?>"/></p>
Expand Down Expand Up @@ -501,8 +501,8 @@ function wpa_admin_settings() {
</ul>
</fieldset>
<p>
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'wpa-nonce' ); ?>"/>
<input type="hidden" name="action" value="contrast"/>
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'wpa-nonce' ); ?>" />
<input type="hidden" name="action" value="contrast" />
</p>

<p><input type="submit" name="wpa-settings" class="button-primary" value="<?php _e( 'Check Color Contrast', 'wp-accessibility' ); ?>"/></p>
Expand Down
12 changes: 6 additions & 6 deletions src/wp-accessibility-toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ function wpa_toolbar_shortcode( $atts, $content ) {
* @return string HTML.
*/
function wpa_toolbar_html( $type = 'widget', $control = 'button' ) {
$contrast = __( 'Toggle High Contrast', 'wp-accessibility' );
$grayscale = __( 'Toggle Grayscale', 'wp-accessibility' );
$fontsize = __( 'Toggle Font size', 'wp-accessibility' );
$contrast = esc_html__( 'Toggle High Contrast', 'wp-accessibility' );
$grayscale = esc_html__( 'Toggle Grayscale', 'wp-accessibility' );
$fontsize = esc_html__( 'Toggle Font size', 'wp-accessibility' );
$enable_grayscale = ( 'on' === get_option( 'wpa_toolbar_gs' ) && current_user_can( 'manage_options' ) ) ? true : false;
$enable_contrast = ( 'off' === get_option( 'wpa_toolbar_ct' ) ) ? false : true;
$enable_fontsize = ( 'off' === get_option( 'wpa_toolbar_fs' ) ) ? false : true;
Expand Down Expand Up @@ -153,9 +153,9 @@ function wpa_toolbar_js() {
$is_right = ( 'on' === get_option( 'wpa_toolbar_right' ) ) ? 'right' : 'left';
$responsive = ( 'on' === get_option( 'wpa_toolbar_mobile' ) ) ? 'a11y-responsive' : 'a11y-non-responsive';

$contrast = __( 'Toggle High Contrast', 'wp-accessibility' );
$grayscale = __( 'Toggle Grayscale', 'wp-accessibility' );
$fontsize = __( 'Toggle Font size', 'wp-accessibility' );
$contrast = esc_html__( 'Toggle High Contrast', 'wp-accessibility' );
$grayscale = esc_html__( 'Toggle Grayscale', 'wp-accessibility' );
$fontsize = esc_html__( 'Toggle Font size', 'wp-accessibility' );
$enable_grayscale = ( 'on' === get_option( 'wpa_toolbar_gs' ) && current_user_can( 'manage_options' ) ) ? 'true' : 'false';
$enable_fontsize = ( 'off' === get_option( 'wpa_toolbar_fs' ) ) ? 'false' : 'true';
$enable_contrast = ( 'off' === get_option( 'wpa_toolbar_ct' ) ) ? 'false' : 'true';
Expand Down

0 comments on commit cbcc27b

Please sign in to comment.