@@ -45,15 +45,15 @@ |
||
45 | 45 | add_action( 'widgets_init', 'lsx_widget_area_init' ); |
46 | 46 | |
47 | 47 | function lsx_sidebar_footer_params( $params ) { |
48 | - $sidebar_id = $params[0]['id']; |
|
48 | + $sidebar_id = $params[0]['id']; |
|
49 | 49 | |
50 | - if ( 'sidebar-footer' == $sidebar_id ) { |
|
51 | - $total_widgets = wp_get_sidebars_widgets(); |
|
52 | - $sidebar_widgets = count($total_widgets[$sidebar_id]); |
|
50 | + if ( 'sidebar-footer' == $sidebar_id ) { |
|
51 | + $total_widgets = wp_get_sidebars_widgets(); |
|
52 | + $sidebar_widgets = count($total_widgets[$sidebar_id]); |
|
53 | 53 | |
54 | - $params[0]['before_widget'] = str_replace('class="styler', 'class="col-sm-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']); |
|
55 | - } |
|
54 | + $params[0]['before_widget'] = str_replace('class="styler', 'class="col-sm-' . floor(12 / $sidebar_widgets), $params[0]['before_widget']); |
|
55 | + } |
|
56 | 56 | |
57 | - return $params; |
|
57 | + return $params; |
|
58 | 58 | } |
59 | 59 | add_filter( 'dynamic_sidebar_params', 'lsx_sidebar_footer_params' ); |
60 | 60 | \ No newline at end of file |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | |
20 | 20 | function lsx_events_styles() { |
21 | - wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION ); |
|
21 | + wp_enqueue_style( 'events', get_template_directory_uri() . '/css/the-events-calendar.css', array(), LSX_VERSION ); |
|
22 | 22 | } |
23 | 23 | add_action( 'wp_enqueue_scripts', 'lsx_events_styles' ); |
24 | 24 |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * @category styles |
126 | 126 | */ |
127 | 127 | function lsx_sensei_styles() { |
128 | - wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION ); |
|
128 | + wp_enqueue_style( 'sensei', get_template_directory_uri() . '/css/sensei.css', array(), LSX_VERSION ); |
|
129 | 129 | } |
130 | 130 | add_action( 'wp_enqueue_scripts', 'lsx_sensei_styles' ); |
131 | 131 | |
@@ -136,10 +136,10 @@ discard block |
||
136 | 136 | * @category styles |
137 | 137 | */ |
138 | 138 | function lsx_sensei_redirect_to_home( $query ){ |
139 | - if(!is_admin() && is_post_type_archive( 'lesson' ) ) { |
|
140 | - wp_redirect( home_url() . '/courses-overview' ); |
|
141 | - exit; |
|
142 | - } |
|
139 | + if(!is_admin() && is_post_type_archive( 'lesson' ) ) { |
|
140 | + wp_redirect( home_url() . '/courses-overview' ); |
|
141 | + exit; |
|
142 | + } |
|
143 | 143 | } |
144 | 144 | add_action( 'parse_query', 'lsx_sensei_redirect_to_home' ); |
145 | 145 |
@@ -14,6 +14,6 @@ |
||
14 | 14 | */ |
15 | 15 | |
16 | 16 | function lsx_wp_job_manager_styles() { |
17 | - wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION ); |
|
17 | + wp_enqueue_style( 'wp_job_manager', get_template_directory_uri() . '/css/wp-job-manager.css', array(), LSX_VERSION ); |
|
18 | 18 | } |
19 | 19 | add_action( 'wp_enqueue_scripts', 'lsx_wp_job_manager_styles' ); |
20 | 20 | \ No newline at end of file |
@@ -69,8 +69,8 @@ |
||
69 | 69 | add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
70 | 70 | |
71 | 71 | function lsx_woocommerce_styles() { |
72 | - wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' ); |
|
73 | - wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | - wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' ); |
|
72 | + wp_enqueue_style( 'woocommerce-layout', get_template_directory_uri() . '/css/woocommerce-layout.css', array(), LSX_VERSION, 'all' ); |
|
73 | + wp_enqueue_style( 'woocommerce-smallscreen', get_template_directory_uri() . '/css/woocommerce-smallscreen.css', array( 'woocommerce-layout' ), LSX_VERSION, 'only screen and (max-width: 767px)' ); |
|
74 | + wp_enqueue_style( 'woocommerce-general', get_template_directory_uri() . '/css/woocommerce.css', array(), LSX_VERSION, 'all' ); |
|
75 | 75 | } |
76 | 76 | add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' ); |
77 | 77 | \ No newline at end of file |