PluginProbe
Accessibility Tool Kit: WP Accessibility checker plugin for WCAG, Section 508, ADA, EAA Compliance / 2.0.6
Accessibility Tool Kit: WP Accessibility checker plugin for WCAG, Section 508, ADA, EAA Compliance v2.0.6
2.2.0 2.1.2 1.1.1 1.1.2 1.1.3 1.2 1.2.1 1.2.2 1.2.3 1.2.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 trunk 1.0.0 1.0.1 All 30 releases
accessibility-plus / accessibility.php

accessibility.php in Accessibility Tool Kit: WP Accessibility checker plugin for WCAG, Section 508, ADA, EAA Compliance 2.0.6, at accessibility.php

84 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 *
6 * This file is read by WordPress to generate the plugin information in the plugin
7 * admin area. This file also includes all of the dependencies used by the plugin,
8 * registers the activation and deactivation functions, and defines a function
9 * that starts the plugin.
10 *
11 * @link https://www.webyes.com/
12 * @since 1.6.6
13 * @package AccessibilityPlus
14 *
15 * @wordpress-plugin
16 * Plugin Name: Accessibility Tool Kit by WebYes: WP Accessibility Plugin for ADA, EAA Readiness
17 * Plugin URI: https://www.webyes.com/
18 * Description: A simple way to make your website more accessible.
19 * Version: 2.0.6
20 * Author: WebYes
21 * Author URI: https://www.webyes.com/
22 * License: GPLv3
23 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
24 * Text Domain: accessibility-plus
25 */
26
27 /*
28 Copyright 2025 AccessibilityPlus
29
30 This program is free software; you can redistribute it and/or modify
31 it under the terms of the GNU General Public License, version 2, as
32 published by the Free Software Foundation.
33
34 This program is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU General Public License for more details.
38
39 You should have received a copy of the GNU General Public License
40 along with this program; if not, write to the Free Software
41 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
42 */
43
44 // If this file is called directly, abort.
45 if ( ! defined( 'WPINC' ) ) {
46 die;
47 }
48
49 define( 'WY_A11Y_VERSION', '2.0.6' );
50 define( 'WY_A11Y_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
51 define( 'WY_A11Y_PLUGIN_BASEPATH', plugin_dir_path( __FILE__ ) );
52 define( 'WY_A11Y_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
53 // Previous version settings (deprecated from 0.9 onwards).
54 define( 'WY_A11Y_PLUGIN_FILENAME', __FILE__ );
55 define( 'WY_A11Y_DEFAULT_LANGUAGE', wya11y_set_default_language() );
56
57
58 function wya11y_set_default_language() {
59 $default = get_option( 'WPLANG', 'en_US' );
60 if ( empty( $default ) || strlen( $default ) <= 1 ) {
61 $default = 'en';
62 }
63 return substr( $default, 0, 2 );
64 }
65
66 /**
67 * Check if plugin is in legacy version.
68 *
69 * @return boolean
70 */
71 function wya11y_is_legacy() {
72 if ( empty( get_option( 'wya11y_settings', array() ) ) && ! empty( get_option( 'easywpstuff_assesplus_booster_options', '' ) ) ) {
73 return true;
74 } else {
75 return false;
76 }
77 }
78
79 if ( wya11y_is_legacy() ) {
80 require_once WY_A11Y_PLUGIN_BASEPATH . 'legacy/loader.php';
81 } else {
82 require_once WY_A11Y_PLUGIN_BASEPATH . 'lite/loader.php';
83 }
84