@@ -6,13 +6,13 @@ discard block |
||
| 6 | 6 | * @subpackage bbpress |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 9 | +if ( ! defined('ABSPATH')) { |
|
| 10 | 10 | exit; |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | global $bbpress; |
| 14 | 14 | |
| 15 | -if ( ! function_exists( 'lsx_bbpress_scripts_add_styles' ) ) : |
|
| 15 | +if ( ! function_exists('lsx_bbpress_scripts_add_styles')) : |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * bbPress enqueue styles. |
@@ -21,10 +21,10 @@ discard block |
||
| 21 | 21 | * @subpackage bbpress |
| 22 | 22 | */ |
| 23 | 23 | function lsx_bbpress_scripts_add_styles() { |
| 24 | - wp_enqueue_style( 'bbpress-lsx', get_template_directory_uri() . '/assets/css/bb-press.css', array( 'lsx_main' ), LSX_VERSION ); |
|
| 25 | - wp_style_add_data( 'bbpress-lsx', 'rtl', 'replace' ); |
|
| 24 | + wp_enqueue_style('bbpress-lsx', get_template_directory_uri() . '/assets/css/bb-press.css', array('lsx_main'), LSX_VERSION); |
|
| 25 | + wp_style_add_data('bbpress-lsx', 'rtl', 'replace'); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - add_action( 'wp_enqueue_scripts', 'lsx_bbpress_scripts_add_styles' ); |
|
| 28 | + add_action('wp_enqueue_scripts', 'lsx_bbpress_scripts_add_styles'); |
|
| 29 | 29 | |
| 30 | 30 | endif; |
@@ -5,25 +5,25 @@ |
||
| 5 | 5 | * @package lsx |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 8 | +if ( ! defined('ABSPATH')) { |
|
| 9 | 9 | exit; |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | -define( 'LSX_VERSION', '2.1.5' ); |
|
| 12 | +define('LSX_VERSION', '2.1.5'); |
|
| 13 | 13 | |
| 14 | -if ( class_exists( 'WooCommerce' ) ) { |
|
| 14 | +if (class_exists('WooCommerce')) { |
|
| 15 | 15 | require get_template_directory() . '/includes/plugins/woocommerce.php'; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | -if ( class_exists( 'Tribe__Events__Main' ) ) { |
|
| 18 | +if (class_exists('Tribe__Events__Main')) { |
|
| 19 | 19 | require get_template_directory() . '/includes/plugins/the-events-calendar.php'; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | -if ( class_exists( 'Sensei_WC' ) ) { |
|
| 22 | +if (class_exists('Sensei_WC')) { |
|
| 23 | 23 | require get_template_directory() . '/includes/plugins/sensei.php'; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | -if ( class_exists( 'bbPress' ) ) { |
|
| 26 | +if (class_exists('bbPress')) { |
|
| 27 | 27 | require get_template_directory() . '/includes/plugins/bbpress.php'; |
| 28 | 28 | } |
| 29 | 29 | |