Changeset 3113185
- Timestamp:
- 07/05/2024 03:59:26 PM (5 weeks ago)
- Location:
- wp-accessibility
- Files:
-
- 75 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-accessibility/trunk/readme.txt
r3087372 r3113185 4 4 Tags: accessibility, wcag, a11y, section508, alt text 5 5 Requires at least: 4.9 6 Tested up to: 6. 56 Tested up to: 6. 7 7 Requires PHP: 7.0 8 Stable tag: 2.1. 98 Stable tag: 2.1. 9 9 Text Domain: wp-accessibility 10 10 License: GPLv2 or later … … 82 82 83 83 [Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/) 84 85 86 87 88 89 90 84 91 85 92 = 2.1.9 = -
wp-accessibility/trunk/toolbar/css/a11y-contrast.css
r2832560 r3113185 442 442 :not(:empty) var:after, :not(:empty) var:before, :not(:empty) 443 443 xmp:after, :not(:empty) xmp:before, :root:not(HTML), :root:not(HTML) 444 :not(:empty) {444 :not(:empty) { 445 445 background: black !important; 446 446 background-color: black !important; -
wp-accessibility/trunk/toolbar/css/a11y-fontsize.css
r3087372 r3113185 1 1 /* enqueue these as a separate stylesheet so they can be filtered */ 2 .fontsize, .fontsize h1, .fontsize h2, .fontsize h3, .fontsize h4, .fontsize h5, .fontsize h6, .fontsize p, .fontsize li:not(.a11y-toolbar-list-item), .fontsize label, .fontsize input, .fontsize select, .fontsize textarea, .fontsize legend, .fontsize code, .fontsize pre, .fontsize dd, .fontsize dt, .fontsize blockquote { 2 .fontsize p, 3 .fontsize div:not(div:has( p, h1, h2, h3, h4, h5, h6)), 4 .fontsize footer:not(footer:has( p, h1, h2, h3, h4, h5, h6)), 5 .fontsize li:not(.a11y-toolbar-list-item), 6 .fontsize label, 7 .fontsize input, 8 .fontsize select, 9 .fontsize textarea, 10 .fontsize legend, 11 .fontsize code, 12 .fontsize pre, 13 .fontsize dd, 14 .fontsize dt, 15 .fontsize blockquote { 3 16 font-size: var(--wpa-font-size) !important; 4 17 line-height: 1.6; 5 18 } 6 19 7 .fontsize h1, .fontsize h2, .fontsize h3, .fontsize h4, .fontsize h5, .fontsize h6 { 8 font-size: var(--wpa-heading-size) !important; 20 .fontsize h1 { 21 font-size: var(--wpa-h1-size) !important; 22 } 23 24 .fontsize h2 { 25 font-size: var(--wpa-h2-size) !important; 26 } 27 .fontsize h3 { 28 font-size: var(--wpa-h3-size) !important; 29 } 30 .fontsize h6, 31 .fontsize h5, 32 .fontsize h4 { 33 font-size: var(--wpa-h4-size) !important; 9 34 } 10 35 -
wp-accessibility/trunk/wp-accessibility-stats.php
r3064027 r3113185 335 335 $total = 0; 336 336 if ( 'event' === $type ) { 337 // translators: date changed, time changed.338 $hc_text_enabled = __( 'High contrast enabled on %1$s at %2$s', 'wp-accessibility' );339 // translators: date changed, time changed.340 $lf_text_enabled = __( 'Large font size enabled on %1$s at %2$s', 'wp-accessibility' );341 // translators: date changed, time changed.342 $hc_text_disabled = __( 'High contrast disabled on %1$s at %2$s', 'wp-accessibility' );343 // translators: date changed, time changed.344 $lf_text_disabled = __( 'Large font size disabled on %1$s at %2$s', 'wp-accessibility' );345 $param = ( property_exists( $data, 'contrast' ) ) ? 'contrast' : 'fontsize';346 if ( 'contrast' === $param ) {347 switch ( $data->contrast ) {348 case 'enabled':349 $text = $hc_text_enabled;350 break;351 case 'disabled':352 $text = $hc_text_disabled;353 }354 } else {355 switch ( $data->fontsize ) {356 case 'enabled':357 $text = $lf_text_enabled;358 break;359 case 'disabled':360 $text = $lf_text_disabled;361 }362 }363 337 $date = gmdate( 'Y-m-d', $data->timestamp ); 364 338 $time = gmdate( 'H:i', $data->timestamp ); 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 365 373 if ( property_exists( $data, 'alttext' ) ) { 366 $image_link = '<a href="' . esc_url( add_query_arg( 'item', $data->alttext, admin_url( 'upload.php' ) ) ) . '">' . esc_html( $data->alttext ) . '</a>'; 374 $alt_img = preg_replace( '/[^0-9]/', '', $data->alttext ); 375 $image_link = '<a href="' . esc_url( get_edit_post_link( $alt_img ) ) . '">' . esc_html( $data->alttext ) . '</a>'; 367 376 // translators: 1) image link. 2) date 3) time. 368 377 $text = sprintf( __( 'Alt text expanded on image %1$s on %2$s at %3$s', 'wp-accessibility' ), $image_link, $date, $time ); 369 378 } 370 379 if ( property_exists( $data, 'longdesc' ) ) { 371 $image_link = '<a href="' . esc_url( add_query_arg( 'item', $data->longdesc, admin_url( 'upload.php' ) ) ) . '">' . esc_html( $data->longdesc ) . '</a>'; 380 $ld_img = preg_replace( '/[^0-9]/', '', $data->longdesc ); 381 $image_link = '<a href="' . esc_url( get_edit_post_link( $ld_img ) ) . '">' . esc_html( $data->longdesc ) . '</a>'; 372 382 // translators: 1) image link. 2) date 3) time. 373 383 $text = sprintf( __( 'Long description expanded on image %1$s on %2$s at %3$s', 'wp-accessibility' ), $image_link, $date, $time ); 374 384 } 375 $line = '<li>' . sprintf( $text, $date, $time ). '</li>';385 $line = '<li>' . . '</li>'; 376 386 if ( 'all' === $limit ) { 377 387 $limit = count( $history ) + 1; -
wp-accessibility/trunk/wp-accessibility-toolbar.php
r3087372 r3113185 55 55 } 56 56 $plugin_path = array( 57 'path' => $plugin_path,57 'path' => , 58 58 ); 59 59 wp_localize_script( 'ui-a11y', 'wpa11y', $plugin_path ); … … 89 89 wp_register_style( 'ui-fontsize.css', $fontsize, array(), $wpa_version ); 90 90 if ( 'on' === get_option( 'wpa_alternate_fontsize' ) ) { 91 $vars = 'html { --wpa-font-size: "200%"; }';91 $vars = 'html { --wpa-font-size: ; }'; 92 92 } else { 93 $vars = 'html { --wpa-font-size: "250%"; --wpa-heading-size : "150%"; --wpa-sub-list-size: "110%"; --wpa-sub-sub-list-size: "100%"; } ';93 $vars = 'html { --wpa-font-size: ; } '; 94 94 } 95 95 wp_add_inline_style( 'ui-fontsize.css', $vars ); -
wp-accessibility/trunk/wp-accessibility.php
r3087372 r3113185 18 18 * License: GPL-2.0+ 19 19 * License URI: http://www.gnu.org/license/gpl-2.0.txt 20 * Version: 2.1. 920 * Version: 2.1. 21 21 */ 22 22 … … 95 95 */ 96 96 function wpa_install() { 97 $wpa_version = '2.1. 9';97 $wpa_version = '2.1.'; 98 98 if ( 'true' !== get_option( 'wpa_installed' ) ) { 99 99 add_option( 'rta_from_tag_clouds', 'on' );
Note: See TracChangeset
for help on using the changeset viewer.