@@ -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 |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | /* |
10 | 10 | * Hooks |
11 | 11 | */ |
12 | -remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); |
|
13 | -remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); |
|
12 | +remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); |
|
13 | +remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); |
|
14 | 14 | |
15 | 15 | add_action('woocommerce_before_main_content', 'lsx_woocommerce_before_content', 10); |
16 | 16 | add_action('woocommerce_after_main_content', 'lsx_woocommerce_after_content', 10); |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | * @subpackage woocommerce |
26 | 26 | * @category layout |
27 | 27 | */ |
28 | -function lsx_woocommerce_before_content(){ ?> |
|
28 | +function lsx_woocommerce_before_content() { ?> |
|
29 | 29 | <?php lsx_content_wrap_before(); ?> |
30 | 30 | |
31 | - <div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
31 | + <div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
32 | 32 | |
33 | 33 | <?php lsx_content_before(); ?> |
34 | 34 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @subpackage woocommerce |
44 | 44 | * @category layout |
45 | 45 | */ |
46 | -function lsx_woocommerce_after_content(){ ?> |
|
46 | +function lsx_woocommerce_after_content() { ?> |
|
47 | 47 | <?php lsx_content_bottom(); ?> |
48 | 48 | |
49 | 49 | </main><!-- #main --> |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | * @subpackage woocommerce |
67 | 67 | * @category styles |
68 | 68 | */ |
69 | -add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); |
|
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 | -add_action( 'wp_enqueue_scripts', 'lsx_woocommerce_styles' ); |
|
77 | 76 | \ No newline at end of file |
77 | +add_action('wp_enqueue_scripts', 'lsx_woocommerce_styles'); |
|
78 | 78 | \ No newline at end of file |