This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
lsx-customizer.php
49 lines (40 loc) · 1.73 KB
/
lsx-customizer.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
49
<?php
/**
* Plugin Name: LSX Customizer
* Plugin URI: https://www.lsdev.biz/product/lsx-site-customizer/
* Description: The LSX Customizer extension gives you complete control over the appearance of your LSX-powered WordPress site
* Version: 1.5.4
* Author: LightSpeed
* Author URI: https://www.lsdev.biz/
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: lsx-customizer
* Domain Path: /languages
*
* @package lsx-customizer
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'LSX_CUSTOMIZER_PATH', plugin_dir_path( __FILE__ ) );
define( 'LSX_CUSTOMIZER_CORE', __FILE__ );
define( 'LSX_CUSTOMIZER_URL', plugin_dir_url( __FILE__ ) );
define( 'LSX_CUSTOMIZER_VER', '1.5.4' );
/* ======================= Below is the Plugin Class init ========================= */
require_once LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer.php';
if ( in_array( 'wordpress-seo/wp-seo.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || in_array( 'wordpress-seo-premium/wp-seo-premium.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
require LSX_CUSTOMIZER_PATH . 'includes/yoast/class-lsx-yoast.php';
}
if ( class_exists( 'Tribe__Events__Main' ) ) {
require LSX_CUSTOMIZER_PATH . 'includes/the-events-calendar/the-events-calendar.php';
}
if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) {
require LSX_CUSTOMIZER_PATH . 'includes/sensei/class-lsx-sensei.php';
}
if ( class_exists( 'Popup_Maker' ) ) {
require LSX_CUSTOMIZER_PATH . 'includes/popup-maker/class-lsx-popup-maker.php';
}
if ( class_exists( 'bbPress' ) ) {
require LSX_CUSTOMIZER_PATH . 'includes/bbpress/bbpress.php';
}