PluginProbe ʕ •ᴥ•ʔ
Ally – Web Accessibility & Usability / 4.0.1
Ally – Web Accessibility & Usability v4.0.1
4.1.2 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.2.0 3.3.0 3.4.0 3.5.0 3.5.1 3.5.2 3.6.0 3.7.0 3.8.0 3.8.1 3.9.0 3.9.1 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1
pojo-accessibility / pojo-accessibility.php
pojo-accessibility Last commit date
assets 4 months ago classes 4 months ago includes 9 months ago modules 4 months ago vendor 4 months ago plugin.php 1 year ago pojo-accessibility.php 4 months ago readme.txt 4 months ago wpml-config.xml 10 years ago
pojo-accessibility.php
92 lines
1 <?php
2 /**
3 * Plugin Name: Ally - Web Accessibility & Usability
4 * Plugin URI: https://elementor.com/
5 * Description: Improve your website’s accessibility with ease. Customize capabilities such as text resizing, contrast modes, link highlights, and easily generate an accessibility statement to demonstrate your commitment to inclusivity.
6 * Author: Elementor.com
7 * Author URI: https://elementor.com/
8 * Version: 4.0.1
9 * Text Domain: pojo-accessibility
10 * Domain Path: /languages/
11 */
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 } // Exit if accessed directly
15
16 // Legacy
17 define( 'POJO_A11Y_CUSTOMIZER_OPTIONS', 'pojo_a11y_customizer_options' );
18 define( 'EA11Y_VERSION', '4.0.1' );
19 define( 'EA11Y_MAIN_FILE', __FILE__ );
20 define( 'EA11Y_BASE', plugin_basename( EA11Y_MAIN_FILE ) );
21 define( 'EA11Y_PATH', plugin_dir_path( __FILE__ ) );
22 define( 'EA11Y_URL', plugins_url( '/', __FILE__ ) );
23 define( 'EA11Y_ASSETS_PATH', EA11Y_PATH . 'assets/' );
24 define( 'EA11Y_ASSETS_URL', EA11Y_URL . 'assets/' );
25
26 final class Pojo_Accessibility {
27
28 /**
29 * @var Pojo_Accessibility The one true Pojo_Accessibility
30 * @since 1.0.0
31 */
32 public static $instance = null;
33
34 /**
35 * Throw error on object clone
36 * The whole idea of the singleton design pattern is that there is a single
37 * object therefore, we don't want the object to be cloned.
38 * @return void
39 * @since 1.0.0
40 */
41 public function __clone() {
42 // Cloning instances of the class is forbidden
43 _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'pojo-accessibility' ), '1.0.0' );
44 }
45
46 /**
47 * Disable unserializing of the class
48 * @return void
49 * @since 1.0.0
50 */
51 public function __wakeup() {
52 // Unserializing instances of the class is forbidden
53 _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'pojo-accessibility' ), '1.0.0' );
54 }
55
56 /**
57 * @return Pojo_Accessibility
58 */
59 public static function instance() {
60 if ( is_null( self::$instance ) ) {
61 self::$instance = new self();
62 }
63
64 return self::$instance;
65 }
66
67 /**
68 * Initialize the plugin
69 * Do your Validations here:
70 * for example checks for basic plugin requirements, if one check fail don't continue,
71 * if all check have passed include the plugin class.
72 * Fired by `plugins_loaded` action hook.
73 * @since 2.2.0
74 * @access public
75 */
76 public function init() {
77 // Once we get here, We have passed all validation checks, so we can safely include our plugin
78 require_once 'plugin.php';
79 }
80
81 private function __construct() {
82 // Load Composer autoloader
83 require_once EA11Y_PATH . 'vendor/autoload.php';
84
85 // Init Plugin
86 add_action( 'plugins_loaded', [ $this, 'init' ] );
87 }
88
89 }
90
91 Pojo_Accessibility::instance();
92