@@ -7,29 +7,29 @@ |
||
7 | 7 | * @package lsx |
8 | 8 | */ |
9 | 9 | |
10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
10 | +if ( ! defined('ABSPATH')) { |
|
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | |
14 | -define( 'LSX_VERSION', '2.6.1' ); |
|
14 | +define('LSX_VERSION', '2.6.1'); |
|
15 | 15 | |
16 | -if ( class_exists( 'WooCommerce' ) ) { |
|
16 | +if (class_exists('WooCommerce')) { |
|
17 | 17 | require get_template_directory() . '/includes/woocommerce/woocommerce.php'; |
18 | 18 | } |
19 | 19 | |
20 | -if ( class_exists( 'Tribe__Events__Main' ) ) { |
|
20 | +if (class_exists('Tribe__Events__Main')) { |
|
21 | 21 | require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php'; |
22 | 22 | } |
23 | 23 | |
24 | -if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) { |
|
24 | +if (class_exists('Sensei_Main') || class_exists('Sensei_WC')) { |
|
25 | 25 | require get_template_directory() . '/includes/sensei/class-lsx-sensei.php'; |
26 | 26 | } |
27 | 27 | |
28 | -if ( class_exists( 'Popup_Maker' ) ) { |
|
28 | +if (class_exists('Popup_Maker')) { |
|
29 | 29 | require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php'; |
30 | 30 | } |
31 | 31 | |
32 | -if ( class_exists( 'bbPress' ) ) { |
|
32 | +if (class_exists('bbPress')) { |
|
33 | 33 | require get_template_directory() . '/includes/bbpress/bbpress.php'; |
34 | 34 | } |
35 | 35 |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage popup-maker |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! class_exists( 'LSX_Popup_Maker' ) ) : |
|
13 | +if ( ! class_exists('LSX_Popup_Maker')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * The LSX Popup_Maker integration class |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function __construct() { |
34 | 34 | |
35 | - add_action( 'wp_enqueue_scripts', array( $this, 'lsx_popup_maker_scripts_add_styles' ) ); |
|
35 | + add_action('wp_enqueue_scripts', array($this, 'lsx_popup_maker_scripts_add_styles')); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public static function get_instance() { |
45 | 45 | // If the single instance hasn't been set, set it now. |
46 | - if ( null === self::$instance ) { |
|
46 | + if (null === self::$instance) { |
|
47 | 47 | self::$instance = new self(); |
48 | 48 | } |
49 | 49 | return self::$instance; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @subpackage popup-maker |
57 | 57 | */ |
58 | 58 | public function lsx_popup_maker_scripts_add_styles() { |
59 | - wp_enqueue_style( 'popup-maker-lsx', get_template_directory_uri() . '/assets/css/popup-maker/popup-maker.css', array( 'lsx_main' ), LSX_VERSION ); |
|
59 | + wp_enqueue_style('popup-maker-lsx', get_template_directory_uri() . '/assets/css/popup-maker/popup-maker.css', array('lsx_main'), LSX_VERSION); |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 |