mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-21 12:16:59 +08:00
* [APP-0000] add elementor one * [APP-0000] add elementor one * [APP-2207] add dashboard widget * [APP-2207] add dashboard widget * [APP-2207] add dashboard widget * [APP-2207] add dashboard widget * [APP-0000] Add slug to the connect config * [APP-0000] Update connect config * [APP-0000] Update connect config * [APP-0000] Update connect config * [APP-0000] Update connect config * [APP-0000] Update connect config * Hide sidebar footer if Elementor One is connected * fix: import errors on opening the scanner * [APP-0000] Update connect config * Update modules/settings/module.php Co-authored-by: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com> * [APP-2270] Top bar implementation (#458) * [APP-2270] Top bar implementation * Update top bar title * Update packages * fix: env for top bar * update: ally menu location * Fix pointer * Update * Update * Update * Update * Update * Fix design saving * Add missing pro icon to sidebar menu * Sidebar icons sizes * Fix link to "Manage subscription" * fix: header name * Update logo icon in the sidebar * Remove logos from modal/dialog headers * Update button colors * Make the "Get started" modal dismissible * Update crown icon * Update * Role attribute * Update logo icon * Update list item padding * [APP-0000] Update connect config * [ACD-7909] Enable Pro features on One * Update menu order * [ACD-7909] Enable Pro features on One * [ACD-7909] Enable Pro features on One * Hide pointers from Elementor One users * [ACD-7909] Enable Pro features on One * fix: don't show notices in some cases (#466) * [ACD-7794] Fix subitem color and spacing, info and pro icon size (#464) * fix: subitem color and spacing, info and pro icon size * chore: update elementor-one-assets package to 0.4.16 * fix: PLG margin and button style issue (#463) --------- Co-authored-by: Nirbhay Singh <nirbhayr@elementor.com> Co-authored-by: vasyldinets <vasyld@elementor.red> Co-authored-by: Nirbhay Singh <121793120+nirbhayel@users.noreply.github.com> --------- Co-authored-by: Rami Yushuvaev <ramiy@elementor.com> Co-authored-by: Nirbhay Singh <nirbhayr@elementor.com> Co-authored-by: Rami Yushuvaev <92088692+rami-elementor@users.noreply.github.com> Co-authored-by: Nirbhay Singh <121793120+nirbhayel@users.noreply.github.com>
91 lines
2.6 KiB
PHP
91 lines
2.6 KiB
PHP
<?php
|
||
/**
|
||
* Plugin Name: Ally - Web Accessibility & Usability
|
||
* Plugin URI: https://elementor.com/
|
||
* 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.
|
||
* Author: Elementor.com
|
||
* Author URI: https://elementor.com/
|
||
* Version: 3.9.1
|
||
* Text Domain: pojo-accessibility
|
||
* Domain Path: /languages/
|
||
*/
|
||
if ( ! defined( 'ABSPATH' ) ) {
|
||
exit;
|
||
} // Exit if accessed directly
|
||
|
||
// Legacy
|
||
define( 'POJO_A11Y_CUSTOMIZER_OPTIONS', 'pojo_a11y_customizer_options' );
|
||
define( 'EA11Y_VERSION', '3.9.1' );
|
||
define( 'EA11Y_MAIN_FILE', __FILE__ );
|
||
define( 'EA11Y_BASE', plugin_basename( EA11Y_MAIN_FILE ) );
|
||
define( 'EA11Y_PATH', plugin_dir_path( __FILE__ ) );
|
||
define( 'EA11Y_URL', plugins_url( '/', __FILE__ ) );
|
||
define( 'EA11Y_ASSETS_PATH', EA11Y_PATH . 'assets/' );
|
||
define( 'EA11Y_ASSETS_URL', EA11Y_URL . 'assets/' );
|
||
|
||
final class Pojo_Accessibility {
|
||
|
||
/**
|
||
* @var Pojo_Accessibility The one true Pojo_Accessibility
|
||
* @since 1.0.0
|
||
*/
|
||
public static $instance = null;
|
||
|
||
/**
|
||
* Throw error on object clone
|
||
* The whole idea of the singleton design pattern is that there is a single
|
||
* object therefore, we don't want the object to be cloned.
|
||
* @return void
|
||
* @since 1.0.0
|
||
*/
|
||
public function __clone() {
|
||
// Cloning instances of the class is forbidden
|
||
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'pojo-accessibility' ), '1.0.0' );
|
||
}
|
||
|
||
/**
|
||
* Disable unserializing of the class
|
||
* @return void
|
||
* @since 1.0.0
|
||
*/
|
||
public function __wakeup() {
|
||
// Unserializing instances of the class is forbidden
|
||
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'pojo-accessibility' ), '1.0.0' );
|
||
}
|
||
|
||
/**
|
||
* @return Pojo_Accessibility
|
||
*/
|
||
public static function instance() {
|
||
if ( is_null( self::$instance ) ) {
|
||
self::$instance = new self();
|
||
}
|
||
|
||
return self::$instance;
|
||
}
|
||
|
||
/**
|
||
* Initialize the plugin
|
||
* Do your Validations here:
|
||
* for example checks for basic plugin requirements, if one check fail don't continue,
|
||
* if all check have passed include the plugin class.
|
||
* Fired by `plugins_loaded` action hook.
|
||
* @since 2.2.0
|
||
* @access public
|
||
*/
|
||
public function init() {
|
||
// Once we get here, We have passed all validation checks, so we can safely include our plugin
|
||
require_once 'plugin.php';
|
||
}
|
||
|
||
private function __construct() {
|
||
// Load Composer autoloader
|
||
require_once EA11Y_PATH . 'vendor/autoload.php';
|
||
|
||
// Init Plugin
|
||
add_action( 'plugins_loaded', [ $this, 'init' ] );
|
||
}
|
||
|
||
}
|
||
|
||
Pojo_Accessibility::instance();
|