-
Notifications
You must be signed in to change notification settings - Fork 2
/
accessible-content.php
42 lines (34 loc) · 1.19 KB
/
accessible-content.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Accessible Content main plugin file
*
* @package campus-a11y
*/
/**
* Plugin Name: Accessible Content
* Description: Check your pages and posts for potential accessibility issues and get help with ensuring your content is accessible.
* Version: 1.1.0
* Text Domain: campus-a11y
* Author: CampusPress
* Author URI: https://campuspress.com
*/
namespace Campus\A11y;
define( 'CAMPUS_A11Y_VERSION', '1.1.0' );
define( __NAMESPACE__ . '\PLUGIN_FILE', __FILE__ );
define( __NAMESPACE__ . '\PLUGIN_DIR', basename( dirname( __FILE__ ) ) );
define( __NAMESPACE__ . '\PLUGIN_FILENAME', basename( __FILE__ ) );
require_once dirname( __FILE__ ) . '/src/exceptions.php';
require_once dirname( __FILE__ ) . '/src/loader.php';
add_action( 'init', [ Main::get(), 'boot' ] );
/**
* Enables automatic updates from GitHub
*/
require_once dirname( __FILE__ ) . '/src/plugin-update-checker/plugin-update-checker.php';
if ( class_exists( '\Puc_v4_Factory' ) ) {
$accessible_content_update_checker = \Puc_v4_Factory::buildUpdateChecker(
'https://github.com/campuspress/accessible-content',
__FILE__,
'accessible-content'
);
$accessible_content_update_checker->getVcsApi()->enableReleaseAssets();
}