-
Notifications
You must be signed in to change notification settings - Fork 1
/
lsx-banners.php
executable file
·37 lines (30 loc) · 1.23 KB
/
lsx-banners.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
<?php
/*
* Plugin Name: LSX Banners
* Plugin URI: https://lsx.lsdev.biz/extensions/banners/
* Description: The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.
* Version: 1.2.5.1
* Author: LightSpeed
* Author URI: https://www.lsdev.biz/
* License: GPL3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: lsx-banners
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'LSX_BANNERS_PATH', plugin_dir_path( __FILE__ ) );
define( 'LSX_BANNERS_CORE', __FILE__ );
define( 'LSX_BANNERS_URL', plugin_dir_url( __FILE__ ) );
define( 'LSX_BANNERS_VER', '1.2.5.1' );
if ( ! function_exists( 'cmb_init' ) && is_file( LSX_BANNERS_PATH . 'vendor/Custom-Meta-Boxes/custom-meta-boxes.php' ) && ! defined( 'LSX_BANNER_DISABLE_CMB' ) ) {
if ( isset( $_GET['post'] ) && 'popup' === get_post_type( $_GET['post'] ) ) {
return;
}
require LSX_BANNERS_PATH . 'vendor/Custom-Meta-Boxes/custom-meta-boxes.php';
}
/* ======================= Below is the Plugin Class init ========================= */
require_once( LSX_BANNERS_PATH . 'classes/class-lsx-banners.php' );
$lsx_banners = new LSX_Banners();