lightspeeddevelopment /
lsx-customizer
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Plugin Name: LSX Customizer |
||
| 4 | * Plugin URI: https://www.lsdev.biz/product/lsx-site-customizer/ |
||
| 5 | * Description: The LSX Customizer extension gives you complete control over the appearance of your LSX-powered WordPress site |
||
| 6 | * Version: 1.5.0 |
||
| 7 | * Author: LightSpeed |
||
| 8 | * Author URI: https://www.lsdev.biz/ |
||
| 9 | * License: GPLv3 or later |
||
| 10 | * License URI: https://www.gnu.org/licenses/gpl-3.0.html |
||
| 11 | * Text Domain: lsx-customizer |
||
| 12 | * Domain Path: /languages |
||
| 13 | * |
||
| 14 | * @package lsx-customizer |
||
| 15 | */ |
||
| 16 | |||
| 17 | // If this file is called directly, abort. |
||
| 18 | if ( ! defined( 'WPINC' ) ) { |
||
| 19 | die; |
||
| 20 | } |
||
| 21 | |||
| 22 | define( 'LSX_CUSTOMIZER_PATH', plugin_dir_path( __FILE__ ) ); |
||
| 23 | define( 'LSX_CUSTOMIZER_CORE', __FILE__ ); |
||
| 24 | define( 'LSX_CUSTOMIZER_URL', plugin_dir_url( __FILE__ ) ); |
||
| 25 | define( 'LSX_CUSTOMIZER_VER', '1.5.0' ); |
||
| 26 | |||
| 27 | /* ======================= Below is the Plugin Class init ========================= */ |
||
| 28 | |||
| 29 | require_once LSX_CUSTOMIZER_PATH . 'classes/class-lsx-customizer.php'; |
||
| 30 | |||
| 31 | 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' ) ) ) ) { |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 32 | require LSX_CUSTOMIZER_PATH . 'includes/yoast/class-lsx-yoast.php'; |
||
|
0 ignored issues
–
show
|
|||
| 33 | } |
||
| 34 | |||
| 35 | if ( class_exists( 'Tribe__Events__Main' ) ) { |
||
|
0 ignored issues
–
show
|
|||
| 36 | require LSX_CUSTOMIZER_PATH . 'includes/the-events-calendar/the-events-calendar.php'; |
||
|
0 ignored issues
–
show
|
|||
| 37 | } |
||
| 38 | |||
| 39 | if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) { |
||
|
0 ignored issues
–
show
|
|||
| 40 | require LSX_CUSTOMIZER_PATH . 'includes/sensei/class-lsx-sensei.php'; |
||
|
0 ignored issues
–
show
|
|||
| 41 | } |
||
| 42 | |||
| 43 | if ( class_exists( 'Popup_Maker' ) ) { |
||
|
0 ignored issues
–
show
|
|||
| 44 | require LSX_CUSTOMIZER_PATH . 'includes/popup-maker/class-lsx-popup-maker.php'; |
||
|
0 ignored issues
–
show
|
|||
| 45 | } |
||
| 46 | |||
| 47 | if ( class_exists( 'bbPress' ) ) { |
||
|
0 ignored issues
–
show
|
|||
| 48 | require LSX_CUSTOMIZER_PATH . 'includes/bbpress/bbpress.php'; |
||
|
0 ignored issues
–
show
|
|||
| 49 | } |
||
| 50 |