WordPress.org

Plugin Directory

Changeset 796949


Ignore:
Timestamp:
11/01/13 00:39:13 (6 months ago)
Author:
joedolson
Message:

Update dev version

Location:
wp-accessibility/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • wp-accessibility/trunk/diagnostic-head.css

    r741201 r796949  
    1515    background-color: lightyellow !important; 
    1616} 
    17  
    1817 
    1918/* 
  • wp-accessibility/trunk/readme.txt

    r776397 r796949  
    44Tags: title, accessibility, accessible, navigation, wcag, a11y, section508, focus 
    55Requires at least: 3.4.2 
    6 Tested up to: 3.6.0 
     6Tested up to: 3.7.0 
    77Stable tag: 1.2.5 
    88License: GPLv2 or later 
     
    4949 
    5050== Changelog == 
     51 
     52= 1.2.6 = 
     53 
     54* Truly hides grayscale option, not dependent on CSS. 
     55* Eliminates in-page anchor focusing, due to conflicts with plug-ins that attach scripts to links with hashes. 
     56* Remove row action visibility from default admin stylesheet, due to 3.7 changes making those links keyboard accessible. 
     57* Added row actions always visible option. 
    5158 
    5259= 1.2.5 = 
  • wp-accessibility/trunk/toolbar/js/a11y.js

    r776397 r796949  
    114114    } 
    115115 
    116     // Focuses on the correct section of the page if we're page linking 
     116    // Focuses on the correct section of the page if we're in-page linking 
    117117    // Thanks to WebAIM.org for this idea 
    118118    // does not support 'name' targets 
     119    /* Removed, because it conflicts with many other plug-ins.  
    119120    $('a[href^="#"]').click(function(event) { 
    120121        var inPageAnchor = "#" + this.href.split('#')[1]; 
    121          
    122122        $(inPageAnchor).scrollTo({ duration: 1000 }); 
    123123        setTimeout(function() { 
     
    126126        return false; 
    127127    }); 
     128    */ 
    128129}); 
  • wp-accessibility/trunk/wp-accessibility.php

    r776397 r796949  
    44Plugin URI: http://www.joedolson.com/articles/wp-accessibility/ 
    55Description: Provides options to improve accessibility in your WordPress site, including removing title attributes. 
    6 Version: 1.2.5 
     6Version: 1.2.6 
    77Author: Joe Dolson 
    88Author URI: http://www.joedolson.com/ 
     
    3737// ACTIVATION 
    3838function wpa_install() { 
    39     $wpa_version = '1.2.5'; 
     39    $wpa_version = '1.2.6'; 
    4040    if ( get_option('wpa_installed') != 'true' ) { 
    4141        add_option('rta_from_nav_menu', 'on'); 
     
    9494        wp_enqueue_style( 'wp-a11y-css' ); 
    9595    } 
     96    if ( get_option( 'wpa_row_actions' ) == 'on' ) { 
     97        if ( file_exists( get_stylesheet_directory() . '/wp-admin-row-actions.css' ) ) { 
     98            $file = get_stylesheet_directory_uri() . '/wp-admin-row-actions.css'; 
     99        } else { 
     100            $file = plugins_url('wp-admin-row-actions.css', __FILE__); 
     101        } 
     102        wp_register_style( 'wp-row-actions', $file ); 
     103        wp_enqueue_style( 'wp-row-actions' );    
     104    }    
    96105} 
    97106function wpa_admin_js() {} // just a placeholder 
     
    171180        insert_a11y_toolbar += '<div class=\"a11y-toolbar\">'; 
    172181        insert_a11y_toolbar += '<ul>'; 
    173         insert_a11y_toolbar += '<li><a href=\"#\" class=\"a11y-toggle-contrast toggle-contrast\" id=\"is_normal_contrast\" title=\"$contrast\"><span class=\"offscreen\">$contrast</span><i class=\"icon icon-adjust\"></i></a></li>'; 
    174         insert_a11y_toolbar += '<li><a href=\"#\" class=\"a11y-toggle-grayscale toggle-grayscale\" id=\"is_normal_color\" title=\"$grayscale\"><span class=\"offscreen\">$grayscale</span><i class=\"icon icon-tint\"></i></a></li>'; 
     182        insert_a11y_toolbar += '<li><a href=\"#\" class=\"a11y-toggle-contrast toggle-contrast\" id=\"is_normal_contrast\" title=\"$contrast\"><span class=\"offscreen\">$contrast</span><i class=\"icon icon-adjust\"></i></a></li>';"; 
     183        $enable_grayscale = ( get_option('wpa_toolbar_gs') == 'on' )?true:false; 
     184        if ( get_option( 'wpa_toolbar' ) == 'on' && $enable_grayscale ) { 
     185            echo "insert_a11y_toolbar += '<li><a href=\"#\" class=\"a11y-toggle-grayscale toggle-grayscale\" id=\"is_normal_color\" title=\"$grayscale\"><span class=\"offscreen\">$grayscale</span><i class=\"icon icon-tint\"></i></a></li>';"; 
     186        } 
     187echo "   
    175188        insert_a11y_toolbar += '<li><a href=\"#\" class=\"a11y-toggle-fontsize toggle-fontsize\" id=\"is_normal_fontsize\" title=\"$fontsize\"><span class=\"offscreen\">$fontsize</span><i class=\"icon icon-font\"></i></a></li>'; 
    176189        insert_a11y_toolbar += '</ul>'; 
     
    199212        #skiplinks a:active, $vis #skiplinks a:focus { $focus  } 
    200213        "; 
    201     } 
    202     $enable_grayscale = ( get_option('wpa_toolbar_gs') == 'on' )?true:false; 
    203     if ( get_option( 'wpa_toolbar' ) == 'on' && !$enable_grayscale ) { 
    204         $styles .= ".a11y-toolbar ul li:nth-child(2) { display: none; }"; 
    205214    } 
    206215    if ( get_option( 'wpa_focus' ) == 'on' ) { 
     
    464473            $wpa_toolbar_gs = ( isset( $_POST['wpa_toolbar_gs'] ) )?'on':''; 
    465474            $wpa_admin_css = ( isset( $_POST['wpa_admin_css'] ) )?'on':''; 
     475            $wpa_row_actions = ( isset( $_POST['wpa_row_actions'] ) ) ? 'on' : ''; 
    466476            $wpa_diagnostics = ( isset( $_POST['wpa_diagnostics'] ) )?'on':''; 
    467477            update_option('wpa_lang', $wpa_lang ); 
     
    477487            update_option('wpa_continue', $wpa_continue ); 
    478488            update_option('wpa_admin_css', $wpa_admin_css ); 
     489            update_option( 'wpa_row_actions', $wpa_row_actions ); 
    479490            update_option('wpa_diagnostics', $wpa_diagnostics ); 
    480491            $message = __("Miscellaneous Accessibility Settings Updated",'wp-accessibility'); 
     
    631642                        <li><input type="checkbox" id="wpa_tabindex" name="wpa_tabindex" <?php if ( get_option('wpa_tabindex') == "on") { echo 'checked="checked" '; } ?>/> <label for="wpa_tabindex"><?php _e('Remove tabindex from focusable elements','wp-accessibility'); ?></label></li> 
    632643                        <li><input type="checkbox" id="wpa_admin_css" name="wpa_admin_css" <?php if ( get_option('wpa_admin_css') == "on") { echo 'checked="checked" '; } ?>/> <label for="wpa_admin_css"><?php _e('Enable WordPress Admin stylesheet','wp-accessibility'); ?></label></li> 
     644                        <li><input type="checkbox" id="wpa_row_actions" name="wpa_row_actions" <?php if ( get_option('wpa_row_actions') == "on") { echo 'checked="checked" '; } ?>/> <label for="wpa_row_actions"><?php _e('Make row actions always visible','wp-accessibility'); ?></label></li>                        
    633645                        <li><input type="checkbox" id="wpa_image_titles" name="wpa_image_titles" <?php if ( get_option('wpa_image_titles') == "on") { echo 'checked="checked" '; } ?>/> <label for="wpa_image_titles"><?php _e('Remove title attribute from images inserted into post content and featured images.','wp-accessibility'); ?></label></li> 
    634646                        <li><input type="checkbox" id="wpa_toolbar" name="wpa_toolbar" <?php if ( get_option('wpa_toolbar') == "on") { echo 'checked="checked" '; } ?>/> <label for="wpa_toolbar"><?php _e('Add Accessibility toolbar with fontsize adjustment and contrast toggle','wp-accessibility'); ?></label></li>         
     
    730742                    <p><?php _e("If you've found WP Accessibility useful, then please consider <a href='http://wordpress.org/extend/plugins/wp-accessibility/'>rating it five stars</a>, <a href='http://www.joedolson.com/donate.php'>making a donation</a>, or <a href='http://translate.joedolson.com/projects/wp-accessibility'>helping with translation</a>.",'wp-accessibility'); ?></p> 
    731743                            <div> 
    732                     <p><?php _e('<a href="http://www.joedolson.com/donate.php">Make a donation today!</a> Every donation counts - donate $2, $10, or $100 and help me keep this plug-in running!','wp-to-twitter'); ?></p> 
     744                    <p><?php _e('<a href="http://www.joedolson.com/donate.php">Make a donation today!</a> Every donation counts - donate $5, $20, or $100 and help me keep this plug-in running!','wp-to-twitter'); ?></p> 
    733745                    <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
    734746                        <div> 
  • wp-accessibility/trunk/wp-admin.css

    r664937 r796949  
    33Custom Stylesheet provided by WP Accessibility (http://www.joedolson.com/articles/wp-accessibility/) 
    44 
    5 */  
    6 .row-actions { visibility: visible;} 
    7 .row-actions a { opacity: .8; } 
    8 .row-actions a:hover, .row-actions a:focus {  opacity: 1; } 
    9  
     5*/ 
    106a:hover, a:active { 
    117    color: #d54e21; 
Note: See TracChangeset for help on using the changeset viewer.