@@ 15-30 (lines=16) @@ | ||
12 | ||
13 | global $bbpress; |
|
14 | ||
15 | if ( ! function_exists( 'lsx_bbpress_scripts_add_styles' ) ) : |
|
16 | ||
17 | /** |
|
18 | * bbPress enqueue styles. |
|
19 | * |
|
20 | * @package lsx |
|
21 | * @subpackage bbpress |
|
22 | */ |
|
23 | function lsx_bbpress_scripts_add_styles() { |
|
24 | wp_enqueue_style( 'bbpress-lsx', get_template_directory_uri() . '/assets/css/bb-press/bb-press.css', array( 'lsx_main' ), LSX_VERSION ); |
|
25 | wp_style_add_data( 'bbpress-lsx', 'rtl', 'replace' ); |
|
26 | } |
|
27 | ||
28 | add_action( 'wp_enqueue_scripts', 'lsx_bbpress_scripts_add_styles' ); |
|
29 | ||
30 | endif; |
|
31 | ||
32 | /**** Remove "Archives:" from the forums archive title. ******/ |
|
33 |
@@ 13-28 (lines=16) @@ | ||
10 | exit; |
|
11 | } |
|
12 | ||
13 | if ( ! function_exists( 'lsx_tec_scripts_add_styles' ) ) : |
|
14 | ||
15 | /** |
|
16 | * The Events Calendar enqueue styles. |
|
17 | * |
|
18 | * @package lsx |
|
19 | * @subpackage the-events-calendar |
|
20 | */ |
|
21 | function lsx_tec_scripts_add_styles() { |
|
22 | wp_enqueue_style( 'the-events-calendar-lsx', get_template_directory_uri() . '/assets/css/the-events-calendar/the-events-calendar.css', array( 'lsx_main' ), LSX_VERSION ); |
|
23 | wp_style_add_data( 'the-events-calendar-lsx', 'rtl', 'replace' ); |
|
24 | } |
|
25 | ||
26 | add_action( 'wp_enqueue_scripts', 'lsx_tec_scripts_add_styles' ); |
|
27 | ||
28 | endif; |
|
29 | ||
30 | if ( ! function_exists( 'lsx_tec_theme_wrapper_start' ) ) : |
|
31 |
@@ 76-94 (lines=19) @@ | ||
73 | ||
74 | endif; |
|
75 | ||
76 | if ( ! function_exists( 'lsx_welcome_style' ) ) : |
|
77 | ||
78 | /** |
|
79 | * Load welcome screen css. |
|
80 | * |
|
81 | * @package lsx |
|
82 | * @subpackage welcome-page |
|
83 | * |
|
84 | * @param string $hook_suffix the current page hook suffix. |
|
85 | */ |
|
86 | function lsx_welcome_style( $hook_suffix ) { |
|
87 | if ( 'appearance_page_lsx-welcome' === $hook_suffix ) { |
|
88 | wp_enqueue_style( 'lsx-welcome-screen-mailchimp', '//cdn-images.mailchimp.com/embedcode/classic-10_7.css', array(), LSX_VERSION ); |
|
89 | wp_enqueue_style( 'lsx-welcome-screen', get_template_directory_uri() . '/assets/css/admin/welcome.css', array( 'lsx-welcome-screen-mailchimp' ), LSX_VERSION ); |
|
90 | wp_style_add_data( 'lsx-welcome-screen', 'rtl', 'replace' ); |
|
91 | } |
|
92 | } |
|
93 | ||
94 | endif; |
|
95 | ||
96 | add_action( 'admin_enqueue_scripts', 'lsx_welcome_style' ); |
|
97 |
@@ 32-50 (lines=19) @@ | ||
29 | ||
30 | endif; |
|
31 | ||
32 | if ( ! function_exists( 'lsx_wc_scripts_add_styles' ) ) : |
|
33 | ||
34 | /** |
|
35 | * WooCommerce enqueue styles. |
|
36 | * |
|
37 | * @package lsx |
|
38 | * @subpackage woocommerce |
|
39 | */ |
|
40 | function lsx_wc_scripts_add_styles() { |
|
41 | wp_enqueue_style( 'woocommerce-lsx', get_template_directory_uri() . '/assets/css/woocommerce/woocommerce.css', array( 'lsx_main' ), LSX_VERSION ); |
|
42 | wp_style_add_data( 'woocommerce-lsx', 'rtl', 'replace' ); |
|
43 | ||
44 | // Remove WC Shipping Multiple Addresses specific script causing issues on checkout. |
|
45 | wp_dequeue_script( 'wcms-country-select' ); |
|
46 | } |
|
47 | ||
48 | add_action( 'wp_enqueue_scripts', 'lsx_wc_scripts_add_styles' ); |
|
49 | ||
50 | endif; |
|
51 | ||
52 | if ( ! function_exists( 'lsx_wc_form_field_args' ) ) : |
|
53 |