-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmain.php
48 lines (44 loc) · 1.19 KB
/
main.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
43
44
45
46
47
48
<?php
/**
* Simple Lightbox
*
* @package Simple Lightbox
* @author Archetyped <[email protected]>
* @copyright 2024 Archetyped
*
* Plugin Name: Simple Lightbox
* Plugin URI: http://archetyped.com/tools/simple-lightbox/
* Description: The highly customizable lightbox for WordPress
* Version: 0.0.0-dev
* Requires at least: 5.3
* Requires PHP: 5.6.20
* Text Domain: simple-lightbox
* Domain Path: /l10n
* Author: Archetyped
* Author URI: http://archetyped.com
* Support URI: https://github.com/archetyped/simple-lightbox/wiki/Feedback-&-Support
*/
require_once dirname( __FILE__ ) . '/includes/class-requirements-check.php';
/* @var array Plugin Requirements */
$slb_requirements = new SLB_Requirements_Check(
array(
'name' => __( 'Simple Lightbox', 'simple-lightbox' ),
'file' => __FILE__,
'uri' => array(
'reference' => 'https://github.com/archetyped/simple-lightbox/wiki/Requirements',
),
)
);
// Check requirements before initializing plugin.
if ( $slb_requirements->passes() ) {
/**
* Initialize SLB
*
* @return void
*/
function slb_init() {
require_once dirname( __FILE__ ) . '/load.php';
}
add_action( 'init', 'slb_init', 1 );
}
unset( $slb_requirements );