@@ -6,27 +6,27 @@ |
||
6 | 6 | * @subpackage 404-widget |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! function_exists( 'lsx_widget_area_404_init' ) ) : |
|
9 | +if ( ! function_exists('lsx_widget_area_404_init')) : |
|
10 | 10 | function lsx_widget_area_404_init() { |
11 | - register_sidebar( array( |
|
12 | - 'name' => esc_html__( '404 page', 'lsx' ), |
|
11 | + register_sidebar(array( |
|
12 | + 'name' => esc_html__('404 page', 'lsx'), |
|
13 | 13 | 'id' => 'sidebar-404', |
14 | 14 | 'before_widget' => '<aside id="%1$s" class="widget %2$s">', |
15 | 15 | 'after_widget' => '</aside>', |
16 | 16 | 'before_title' => '<h3 class="widget-title">', |
17 | 17 | 'after_title' => '</h3>', |
18 | - ) ); |
|
18 | + )); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | endif; |
22 | 22 | |
23 | -add_action( 'widgets_init', 'lsx_widget_area_404_init' ); |
|
23 | +add_action('widgets_init', 'lsx_widget_area_404_init'); |
|
24 | 24 | |
25 | -if ( ! function_exists( 'my_search_placeholder' ) ) : |
|
25 | +if ( ! function_exists('my_search_placeholder')) : |
|
26 | 26 | function my_search_placeholder() { |
27 | - return __( 'lsdev.biz', 'lsx' ); |
|
27 | + return __('lsdev.biz', 'lsx'); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | endif; |
31 | 31 | |
32 | -add_filter( 'search_placeholder_text', 'my_search_placeholder' ); |
|
32 | +add_filter('search_placeholder_text', 'my_search_placeholder'); |
@@ -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 |
@@ -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,19 +21,19 @@ 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; |
31 | 31 | |
32 | 32 | /**** Remove "Archives:" from the forums archive title. ******/ |
33 | 33 | |
34 | -add_filter( 'get_the_archive_title', 'modify_archive_title', 10, 1 ); |
|
34 | +add_filter('get_the_archive_title', 'modify_archive_title', 10, 1); |
|
35 | 35 | |
36 | -function modify_archive_title( $title ) { |
|
37 | - $title = __( 'Forums', 'lsx' ); |
|
36 | +function modify_archive_title($title) { |
|
37 | + $title = __('Forums', 'lsx'); |
|
38 | 38 | return $title; |
39 | 39 | } |