Passed
Push — master ( 48967d...0ad406 )
by Virginia
01:49
created
partials/content-widget-product.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,38 +17,38 @@
 block discarded – undo
17 17
  */
18 18
 
19 19
 // Exit if accessed directly
20
-if ( ! defined( 'ABSPATH' ) ) {
20
+if ( ! defined('ABSPATH')) {
21 21
 	exit;
22 22
 }
23 23
 
24 24
 global $product; ?>
25 25
 
26 26
 <div class="lsx-woocommerce-slot">
27
-	<a href="<?php echo esc_url( $product->get_permalink() ); ?>">
27
+	<a href="<?php echo esc_url($product->get_permalink()); ?>">
28 28
 		<figure class="lsx-woocommerce-avatar">
29
-			<?php echo wp_kses_post( $product->get_image( 'lsx-thumbnail-square' ) ); ?>
29
+			<?php echo wp_kses_post($product->get_image('lsx-thumbnail-square')); ?>
30 30
 		</figure>
31 31
 	</a>
32 32
 
33 33
 	<h5 class="lsx-woocommerce-title">
34
-		<a href="<?php echo esc_url( $product->get_permalink() ); ?>"><?php echo wp_kses_post( $product->get_name() ); ?></a>
34
+		<a href="<?php echo esc_url($product->get_permalink()); ?>"><?php echo wp_kses_post($product->get_name()); ?></a>
35 35
 	</h5>
36 36
 
37
-	<?php if ( ! empty( $show_rating ) ) : ?>
37
+	<?php if ( ! empty($show_rating)) : ?>
38 38
 		<div class="lsx-woocommerce-rating">
39
-			<?php echo wp_kses_post( wc_get_rating_html( $product->get_average_rating() ) ); ?>
39
+			<?php echo wp_kses_post(wc_get_rating_html($product->get_average_rating())); ?>
40 40
 		</div>
41 41
 	<?php endif; ?>
42 42
 
43 43
 	<?php
44 44
 		$price_html = $product->get_price_html();
45
-		if ( $price_html ) : ?>
45
+		if ($price_html) : ?>
46 46
 		<div class="lsx-woocommerce-price">
47
-			<?php echo wp_kses_post( $price_html ); ?>
47
+			<?php echo wp_kses_post($price_html); ?>
48 48
 		</div>
49 49
 	<?php endif; ?>
50 50
 
51 51
 	<div class="lsx-woocommerce-content">
52
-		<a href="<?php echo esc_url( $product->get_permalink() ); ?>" class="moretag"><?php esc_attr_e( 'View more', 'lsx' ); ?></a>
52
+		<a href="<?php echo esc_url($product->get_permalink()); ?>" class="moretag"><?php esc_attr_e('View more', 'lsx'); ?></a>
53 53
 	</div>
54 54
 </div>
Please login to merge, or discard this patch.
page-templates/template-sitemap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php lsx_content_wrap_before(); ?>
14 14
 
15
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
15
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
16 16
 
17 17
 	<?php lsx_content_before(); ?>
18 18
 
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27 27
 				<?php lsx_entry_before(); ?>
28 28
 
@@ -55,6 +55,6 @@  discard block
 block discarded – undo
55 55
 
56 56
 <?php lsx_content_wrap_after(); ?>
57 57
 
58
-<?php get_sidebar( 'sitemap' ); ?>
58
+<?php get_sidebar('sitemap'); ?>
59 59
 
60 60
 <?php get_footer();
Please login to merge, or discard this patch.
page-templates/template-archives.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php lsx_content_wrap_before(); ?>
14 14
 
15
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
15
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
16 16
 
17 17
 	<?php lsx_content_before(); ?>
18 18
 
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27 27
 				<?php lsx_entry_before(); ?>
28 28
 
@@ -31,25 +31,25 @@  discard block
 block discarded – undo
31 31
 					<?php lsx_entry_top(); ?>
32 32
 
33 33
 					<div class="entry-content">
34
-						<h2><?php esc_html_e( 'The Last 30 Posts', 'lsx' ); ?></h2>
34
+						<h2><?php esc_html_e('The Last 30 Posts', 'lsx'); ?></h2>
35 35
 
36 36
 						<ul>
37 37
 							<?php
38
-								$loop = new WP_Query( array(
38
+								$loop = new WP_Query(array(
39 39
 									'posts_per_page' => 30,
40
-								) );
40
+								));
41 41
 							?>
42 42
 
43
-							<?php if ( $loop->have_posts() ) : ?>
43
+							<?php if ($loop->have_posts()) : ?>
44 44
 
45
-								<?php while ( $loop->have_posts() ) : ?>
45
+								<?php while ($loop->have_posts()) : ?>
46 46
 
47 47
 									<?php
48 48
 										$loop->the_post();
49 49
 										$loop->is_home = false;
50 50
 									?>
51 51
 
52
-									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li>
52
+									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo esc_html($post->comment_count); ?> <?php esc_html_e('comments', 'lsx'); ?></li>
53 53
 
54 54
 								<?php endwhile; ?>
55 55
 
@@ -58,16 +58,16 @@  discard block
 block discarded – undo
58 58
 							<?php wp_reset_postdata(); ?>
59 59
 						</ul>
60 60
 
61
-						<h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2>
61
+						<h2><?php esc_html_e('Categories', 'lsx'); ?></h2>
62 62
 
63 63
 						<ul>
64
-							<?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?>
64
+							<?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?>
65 65
 						</ul>
66 66
 
67
-						<h2><?php esc_html_e( 'Monthly Archives', 'lsx' ); ?></h2>
67
+						<h2><?php esc_html_e('Monthly Archives', 'lsx'); ?></h2>
68 68
 
69 69
 						<ul>
70
-							<?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?>
70
+							<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
71 71
 						</ul>
72 72
 					</div><!-- .entry-content -->
73 73
 
Please login to merge, or discard this patch.
partials/content-custom.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 		<?php
17 17
 			the_content();
18 18
 
19
-			wp_link_pages( array(
19
+			wp_link_pages(array(
20 20
 				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
21 21
 				'after'       => '</div></div>',
22 22
 				'link_before' => '<span>',
23 23
 				'link_after'  => '</span>',
24
-			) );
24
+			));
25 25
 		?>
26 26
 	</div><!-- .entry-content -->
27 27
 
Please login to merge, or discard this patch.
partials/content.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -17,38 +17,38 @@  discard block
 block discarded – undo
17 17
 			'quote' => 'quote',
18 18
 			'video' => 'video',
19 19
 		);
20
-	$no_thumb_post_formats = apply_filters( 'lsx_no_thumb_post_formats', $no_thumb_post_types );
20
+	$no_thumb_post_formats = apply_filters('lsx_no_thumb_post_formats', $no_thumb_post_types);
21 21
 
22
-	$has_thumb = has_post_thumbnail() && ! has_post_format( $no_thumb_post_formats );
22
+	$has_thumb = has_post_thumbnail() && ! has_post_format($no_thumb_post_formats);
23 23
 
24
-	if ( $has_thumb ) {
24
+	if ($has_thumb) {
25 25
 		$thumb_class = 'has-thumb';
26 26
 	} else {
27 27
 		$thumb_class = 'no-thumb';
28 28
 	}
29 29
 
30
-	$blog_layout = apply_filters( 'lsx_blog_layout', 'default' );
30
+	$blog_layout = apply_filters('lsx_blog_layout', 'default');
31 31
 
32 32
 	$image_class = '';
33 33
 
34
-	$thumbnail_id = get_post_thumbnail_id( get_the_ID() );
35
-	$image_arr    = wp_get_attachment_image_src( $thumbnail_id, 'lsx-thumbnail-single' );
34
+	$thumbnail_id = get_post_thumbnail_id(get_the_ID());
35
+	$image_arr    = wp_get_attachment_image_src($thumbnail_id, 'lsx-thumbnail-single');
36 36
 
37
-	if ( is_array( $image_arr ) ) {
37
+	if (is_array($image_arr)) {
38 38
 		$image_src = $image_arr[0];
39 39
 	}
40 40
 ?>
41 41
 
42
-<article id="post-<?php the_ID(); ?>" <?php post_class( array( 'lsx-slot', $thumb_class ) ); ?>>
42
+<article id="post-<?php the_ID(); ?>" <?php post_class(array('lsx-slot', $thumb_class)); ?>>
43 43
 	<?php lsx_entry_top(); ?>
44 44
 
45 45
 	<div class="entry-layout">
46 46
 		<div class="entry-layout-content entry-layout-content-<?php echo has_post_thumbnail() ? '67' : '100'; ?>">
47 47
 			<header class="entry-header">
48
-				<?php if ( $has_thumb ) : ?>
49
-					<div class="entry-image <?php echo esc_attr( $image_class ); ?>">
48
+				<?php if ($has_thumb) : ?>
49
+					<div class="entry-image <?php echo esc_attr($image_class); ?>">
50 50
 						<a class="thumbnail" href="<?php the_permalink(); ?>">
51
-							<?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?>
51
+							<?php lsx_thumbnail('lsx-thumbnail-single'); ?>
52 52
 						</a>
53 53
 					</div>
54 54
 				<?php endif; ?>
@@ -60,52 +60,52 @@  discard block
 block discarded – undo
60 60
 				<?php
61 61
 					$format = get_post_format();
62 62
 
63
-					if ( false === $format ) {
63
+					if (false === $format) {
64 64
 						$format = 'standard';
65
-						$show_on_front = get_option( 'show_on_front', 'posts' );
65
+						$show_on_front = get_option('show_on_front', 'posts');
66 66
 
67
-						if ( 'page' === $show_on_front ) {
68
-							$archive_link = get_permalink( get_option( 'page_for_posts' ) );
67
+						if ('page' === $show_on_front) {
68
+							$archive_link = get_permalink(get_option('page_for_posts'));
69 69
 						} else {
70 70
 							$archive_link = home_url();
71 71
 						}
72 72
 					} else {
73
-						$archive_link = get_post_format_link( $format );
73
+						$archive_link = get_post_format_link($format);
74 74
 					}
75 75
 
76
-					$format = lsx_translate_format_to_fontawesome( $format );
76
+					$format = lsx_translate_format_to_fontawesome($format);
77 77
 				?>
78 78
 
79 79
 				<h1 class="entry-title">
80
-					<?php if ( has_post_thumbnail() ) : ?>
81
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a>
80
+					<?php if (has_post_thumbnail()) : ?>
81
+						<a href="<?php echo esc_url($archive_link); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr($format); ?>"></a>
82 82
 					<?php else : ?>
83
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a>
83
+						<a href="<?php echo esc_url($archive_link); ?>" class="format-link fa fa-<?php echo esc_attr($format); ?>"></a>
84 84
 					<?php endif; ?>
85 85
 
86
-					<?php if ( has_post_format( array( 'link' ) ) ) : ?>
87
-						<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
86
+					<?php if (has_post_format(array('link'))) : ?>
87
+						<a href="<?php echo esc_url(lsx_get_my_url()); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
88 88
 					<?php else : ?>
89 89
 						<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
90 90
 					<?php endif; ?>
91 91
 
92
-					<?php if ( is_sticky() ) : ?>
93
-						<span class="label label-default label-sticky"><?php esc_html_e( 'Featured', 'lsx' ); ?></span>
92
+					<?php if (is_sticky()) : ?>
93
+						<span class="label label-default label-sticky"><?php esc_html_e('Featured', 'lsx'); ?></span>
94 94
 					<?php endif; ?>
95 95
 				</h1>
96 96
 			</header><!-- .entry-header -->
97 97
 
98
-			<?php if ( has_post_format( array( 'quote' ) ) || apply_filters( 'lsx_blog_display_text_on_list', true ) ) : ?>
98
+			<?php if (has_post_format(array('quote')) || apply_filters('lsx_blog_display_text_on_list', true)) : ?>
99 99
 
100
-				<?php if ( lsx_post_format_force_content_on_list() && ! apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
100
+				<?php if (lsx_post_format_force_content_on_list() && ! apply_filters('lsx_blog_force_content_on_list', false)) : ?>
101 101
 
102 102
 					<div class="entry-summary">
103 103
 						<?php the_excerpt(); ?>
104 104
 					</div><!-- .entry-summary -->
105 105
 
106
-				<?php elseif ( has_post_format( array( 'link' ) ) ) : ?>
106
+				<?php elseif (has_post_format(array('link'))) : ?>
107 107
 
108
-				<?php elseif ( apply_filters( 'lsx_blog_force_content_on_list', false ) ) : ?>
108
+				<?php elseif (apply_filters('lsx_blog_force_content_on_list', false)) : ?>
109 109
 
110 110
 					<div class="entry-content">
111 111
 						<?php the_content(); ?>
@@ -117,12 +117,12 @@  discard block
 block discarded – undo
117 117
 						<?php
118 118
 							the_content();
119 119
 
120
-							wp_link_pages( array(
120
+							wp_link_pages(array(
121 121
 								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
122 122
 								'after'       => '</div></div>',
123 123
 								'link_before' => '<span>',
124 124
 								'link_after'  => '</span>',
125
-							) );
125
+							));
126 126
 						?>
127 127
 					</div><!-- .entry-content -->
128 128
 
@@ -139,23 +139,23 @@  discard block
 block discarded – undo
139 139
 
140 140
 				<?php lsx_content_post_tags(); ?>
141 141
 
142
-				<?php if ( comments_open() && ! empty( $comments_number ) ) : ?>
142
+				<?php if (comments_open() && ! empty($comments_number)) : ?>
143 143
 					<div class="post-comments">
144 144
 						<a href="<?php the_permalink(); ?>#comments">
145 145
 							<?php
146
-								if ( '1' === $comments_number ) {
147
-									echo esc_html_x( 'One Comment', 'content.php', 'lsx' );
146
+								if ('1' === $comments_number) {
147
+									echo esc_html_x('One Comment', 'content.php', 'lsx');
148 148
 								} else {
149 149
 									printf(
150 150
 										/* Translators: %s: number of comments */
151
-										esc_html( _nx(
151
+										esc_html(_nx(
152 152
 											'%s Comment',
153 153
 											'%s Comments',
154 154
 											$comments_number,
155 155
 											'content.php',
156 156
 											'lsx'
157
-										) ),
158
-										esc_html( number_format_i18n( $comments_number ) )
157
+										)),
158
+										esc_html(number_format_i18n($comments_number))
159 159
 									);
160 160
 								}
161 161
 							?>
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
 			</div>
166 166
 		</div>
167 167
 
168
-		<?php if ( has_post_thumbnail() ) : ?>
168
+		<?php if (has_post_thumbnail()) : ?>
169 169
 
170 170
 			<div class="entry-image hidden-xs">
171
-				<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url( $image_src ); ?>);">
172
-					<?php lsx_thumbnail( 'lsx-thumbnail-single' ); ?>
171
+				<a class="thumbnail" href="<?php the_permalink(); ?>" style="background-image:url(<?php echo esc_url($image_src); ?>);">
172
+					<?php lsx_thumbnail('lsx-thumbnail-single'); ?>
173 173
 				</a>
174 174
 			</div>
175 175
 
Please login to merge, or discard this patch.
partials/content-post.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,31 +24,31 @@
 block discarded – undo
24 24
 		<?php
25 25
 			the_content();
26 26
 
27
-			wp_link_pages( array(
27
+			wp_link_pages(array(
28 28
 				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
29 29
 				'after'       => '</div></div>',
30 30
 				'link_before' => '<span>',
31 31
 				'link_after'  => '</span>',
32
-			) );
32
+			));
33 33
 		?>
34 34
 	</div><!-- .entry-content -->
35 35
 
36 36
 	<footer class="footer-meta clearfix">
37
-		<?php if ( has_tag() || class_exists( 'LSX_Sharing' ) || ( function_exists( 'sharing_display' ) || class_exists( 'Jetpack_Likes' ) ) ) : ?>
37
+		<?php if (has_tag() || class_exists('LSX_Sharing') || (function_exists('sharing_display') || class_exists('Jetpack_Likes'))) : ?>
38 38
 			<div class="post-tags-wrapper">
39 39
 				<?php lsx_content_post_tags(); ?>
40 40
 
41 41
 				<?php
42
-					if ( class_exists( 'LSX_Sharing' ) ) {
42
+					if (class_exists('LSX_Sharing')) {
43 43
 						lsx_content_sharing();
44 44
 					} else {
45
-						if ( function_exists( 'sharing_display' ) ) {
46
-							sharing_display( '', true );
45
+						if (function_exists('sharing_display')) {
46
+							sharing_display('', true);
47 47
 						}
48 48
 
49
-						if ( class_exists( 'Jetpack_Likes' ) ) {
49
+						if (class_exists('Jetpack_Likes')) {
50 50
 							$custom_likes = new Jetpack_Likes;
51
-							echo wp_kses_post( $custom_likes->post_likes( '' ) );
51
+							echo wp_kses_post($custom_likes->post_likes(''));
52 52
 						}
53 53
 					}
54 54
 				?>
Please login to merge, or discard this patch.
partials/content-page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 		<?php
17 17
 			the_content();
18 18
 
19
-			wp_link_pages( array(
19
+			wp_link_pages(array(
20 20
 				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
21 21
 				'after'       => '</div></div>',
22 22
 				'link_before' => '<span>',
23 23
 				'link_after'  => '</span>',
24
-			) );
24
+			));
25 25
 		?>
26 26
 	</div><!-- .entry-content -->
27 27
 
Please login to merge, or discard this patch.
includes/404-widget.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,27 +6,27 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
page-templates/template-wc-thank-you.php 1 patch
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -22,71 +22,71 @@  discard block
 block discarded – undo
22 22
 			<ul class="lsx-wc-checkout-steps-items">
23 23
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-done">
24 24
 						<i class="fa fa-check-circle" aria-hidden="true"></i>
25
-						<span><span><?php esc_html_e( 'Choose your product', 'lsx-customizer' ); ?></span></span>
25
+						<span><span><?php esc_html_e('Choose your product', 'lsx-customizer'); ?></span></span>
26 26
 						<i class="fa fa-angle-right" aria-hidden="true"></i>
27 27
 					</li>
28 28
 
29 29
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-done lsx-wc-checkout-steps-item-cart">
30 30
 						<i class="fa fa-check-circle" aria-hidden="true"></i>
31
-						<span><span><?php esc_html_e( 'My Cart', 'lsx-customizer' ); ?></span></span>
31
+						<span><span><?php esc_html_e('My Cart', 'lsx-customizer'); ?></span></span>
32 32
 					</li>
33 33
 
34 34
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-done lsx-wc-checkout-steps-item-payment">
35 35
 					<i class="fa fa-check-circle" aria-hidden="true"></i>
36
-						<span><span><?php esc_html_e( 'Payment details', 'lsx-customizer' ); ?></span></span>
36
+						<span><span><?php esc_html_e('Payment details', 'lsx-customizer'); ?></span></span>
37 37
 						<i class="fa fa-angle-right" aria-hidden="true"></i>
38 38
 					</li>
39 39
 
40 40
 					<li class="lsx-wc-checkout-steps-item lsx-wc-checkout-steps-item-current lsx-wc-checkout-steps-item-thankyou">
41
-						<i class="lsx-wc-checkout-steps-counter" aria-hidden="true"><?php esc_html_e( '4', 'lsx-customizer' ); ?></i>
42
-						<span><span><?php esc_html_e( 'Thank you!', 'lsx-customizer' ); ?></span></span>
41
+						<i class="lsx-wc-checkout-steps-counter" aria-hidden="true"><?php esc_html_e('4', 'lsx-customizer'); ?></i>
42
+						<span><span><?php esc_html_e('Thank you!', 'lsx-customizer'); ?></span></span>
43 43
 					</li>
44 44
 			</ul>
45 45
 		</div>
46 46
 
47 47
 		<?php lsx_content_top(); ?>
48 48
 
49
-		<?php if ( have_posts() ) : ?>
49
+		<?php if (have_posts()) : ?>
50 50
 
51
-			<?php while ( have_posts() ) : the_post(); ?>
51
+			<?php while (have_posts()) : the_post(); ?>
52 52
 
53 53
 				<?php
54 54
 					WC()->payment_gateways()->payment_gateways;
55
-					$order_key = isset( $_GET['key'] ) ? wc_clean( $_GET['key'] ) : '';
56
-					$order_id  = absint( $wp->query_vars['order-received'] );
57
-					$order = wc_get_order( $order_id );
55
+					$order_key = isset($_GET['key']) ? wc_clean($_GET['key']) : '';
56
+					$order_id  = absint($wp->query_vars['order-received']);
57
+					$order = wc_get_order($order_id);
58 58
 				?>
59 59
 
60
-				<?php if ( $order && $order->get_id() === $order_id && $order->get_order_key() === $order_key ) : ?>
60
+				<?php if ($order && $order->get_id() === $order_id && $order->get_order_key() === $order_key) : ?>
61 61
 
62 62
 					<?php // @codingStandardsIgnoreStart ?>
63 63
 
64
-					<div class="alert alert-success"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'lsx' ), $order ); ?></div>
64
+					<div class="alert alert-success"><?php echo apply_filters('woocommerce_thankyou_order_received_text', esc_html__('Thank you. Your order has been received.', 'lsx'), $order); ?></div>
65 65
 
66 66
 					<div class="row">
67 67
 						<div class="col-xs-12 col-sm-6">
68
-							<h2><?php esc_html_e( 'Order Details', 'lsx' ); ?></h2>
68
+							<h2><?php esc_html_e('Order Details', 'lsx'); ?></h2>
69 69
 
70 70
 							<table class="table">
71 71
 								<tbody>
72 72
 									<tr>
73
-										<th><?php esc_html_e( 'Order:', 'lsx' ); ?></th>
73
+										<th><?php esc_html_e('Order:', 'lsx'); ?></th>
74 74
 										<td><?php echo $order->get_order_number(); ?></td>
75 75
 									</tr>
76 76
 
77 77
 									<tr>
78
-										<th><?php esc_html_e( 'Date:', 'lsx' ); ?></th>
79
-										<td><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></td>
78
+										<th><?php esc_html_e('Date:', 'lsx'); ?></th>
79
+										<td><?php echo date_i18n(get_option('date_format'), strtotime($order->order_date)); ?></td>
80 80
 									</tr>
81 81
 
82 82
 									<tr>
83
-										<th><?php esc_html_e( 'Total:', 'lsx' ); ?></th>
83
+										<th><?php esc_html_e('Total:', 'lsx'); ?></th>
84 84
 										<td><?php echo $order->get_formatted_order_total(); ?></td>
85 85
 									</tr>
86 86
 
87
-									<?php if ( $order->payment_method_title ) : ?>
87
+									<?php if ($order->payment_method_title) : ?>
88 88
 										<tr>
89
-											<th><?php esc_html_e( 'Payment method:', 'lsx' ); ?></th>
89
+											<th><?php esc_html_e('Payment method:', 'lsx'); ?></th>
90 90
 											<td><?php echo $order->payment_method_title; ?></td>
91 91
 										</tr>
92 92
 									<?php endif; ?>
@@ -95,48 +95,48 @@  discard block
 block discarded – undo
95 95
 
96 96
 							<?php // do_action( 'woocommerce_order_details_after_order_table', $order ); ?>
97 97
 
98
-							<h2><?php esc_html_e( 'Customer details', 'lsx' ); ?></h2>
98
+							<h2><?php esc_html_e('Customer details', 'lsx'); ?></h2>
99 99
 
100 100
 							<dl class="customer_details">
101 101
 								<?php
102
-									if ( $order->billing_email ) echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>';
103
-									if ( $order->billing_phone ) echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
102
+									if ($order->billing_email) echo '<dt>' . esc_html__('Email:', 'lsx') . '</dt><dd>' . $order->billing_email . '</dd>';
103
+									if ($order->billing_phone) echo '<dt>' . esc_html__('Telephone:', 'lsx') . '</dt><dd>' . $order->billing_phone . '</dd>';
104 104
 
105 105
 									// Additional customer details hook
106
-									do_action( 'woocommerce_order_details_after_customer_details', $order );
106
+									do_action('woocommerce_order_details_after_customer_details', $order);
107 107
 								?>
108 108
 							</dl>
109 109
 
110
-							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
110
+							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option('woocommerce_calc_shipping') !== 'no') : ?>
111 111
 
112 112
 								<div class="row">
113 113
 									<div class="col-xs-12 col-sm-6">
114 114
 
115 115
 							<?php endif; ?>
116 116
 
117
-										<h3><?php esc_html_e( 'Billing Address', 'lsx' ); ?></h3>
117
+										<h3><?php esc_html_e('Billing Address', 'lsx'); ?></h3>
118 118
 
119 119
 										<address>
120 120
 											<?php
121
-												if ( ! $order->get_formatted_billing_address() ) {
122
-													esc_html_e( 'N/A', 'lsx' );
121
+												if ( ! $order->get_formatted_billing_address()) {
122
+													esc_html_e('N/A', 'lsx');
123 123
 												} else {
124 124
 													echo $order->get_formatted_billing_address();
125 125
 												}
126 126
 											?>
127 127
 										</address>
128 128
 
129
-							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
129
+							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option('woocommerce_calc_shipping') !== 'no') : ?>
130 130
 
131 131
 									</div>
132 132
 
133 133
 									<div class="col-xs-12 col-sm-6">
134
-										<h3><?php esc_html_e( 'Shipping Address', 'lsx' ); ?></h3>
134
+										<h3><?php esc_html_e('Shipping Address', 'lsx'); ?></h3>
135 135
 
136 136
 										<address>
137 137
 											<?php
138
-												if ( ! $order->get_formatted_shipping_address() ) {
139
-													esc_html_e( 'N/A', 'lsx' );
138
+												if ( ! $order->get_formatted_shipping_address()) {
139
+													esc_html_e('N/A', 'lsx');
140 140
 												} else {
141 141
 													echo $order->get_formatted_shipping_address();
142 142
 												}
@@ -149,68 +149,68 @@  discard block
 block discarded – undo
149 149
 						</div>
150 150
 
151 151
 						<div class="col-xs-12 col-sm-6">
152
-							<h2><?php esc_html_e( 'Products details', 'lsx' ); ?></h2>
152
+							<h2><?php esc_html_e('Products details', 'lsx'); ?></h2>
153 153
 
154 154
 							<table class="table">
155 155
 								<thead>
156 156
 									<tr>
157
-										<th><?php esc_html_e( 'Product', 'lsx' ); ?></th>
158
-										<th><?php esc_html_e( 'Total', 'lsx' ); ?></th>
157
+										<th><?php esc_html_e('Product', 'lsx'); ?></th>
158
+										<th><?php esc_html_e('Total', 'lsx'); ?></th>
159 159
 									</tr>
160 160
 								</thead>
161 161
 
162 162
 								<tbody>
163 163
 									<?php
164
-										if ( sizeof( $order->get_items() ) > 0 ) :
165
-											foreach( $order->get_items() as $item ) :
166
-												$_product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item );
167
-												$item_meta = new WC_Order_Item_Meta( $item['item_meta'], $_product );
164
+										if (sizeof($order->get_items()) > 0) :
165
+											foreach ($order->get_items() as $item) :
166
+												$_product = apply_filters('woocommerce_order_item_product', $order->get_product_from_item($item), $item);
167
+												$item_meta = new WC_Order_Item_Meta($item['item_meta'], $_product);
168 168
 											?>
169 169
 
170 170
 											<tr>
171 171
 												<td>
172 172
 													<?php
173
-														if ( $_product && ! $_product->is_visible() ) {
174
-															echo apply_filters( 'woocommerce_order_item_name', $item['name'], $item );
173
+														if ($_product && ! $_product->is_visible()) {
174
+															echo apply_filters('woocommerce_order_item_name', $item['name'], $item);
175 175
 														} else {
176
-															echo apply_filters( 'woocommerce_order_item_name', sprintf( '<a href="%s">%s</a>', get_permalink( $item['product_id'] ), $item['name'] ), $item );
176
+															echo apply_filters('woocommerce_order_item_name', sprintf('<a href="%s">%s</a>', get_permalink($item['product_id']), $item['name']), $item);
177 177
 														}
178 178
 
179
-														echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '&times; %s', $item['qty'] ) . '</strong>', $item );
179
+														echo apply_filters('woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf('&times; %s', $item['qty']) . '</strong>', $item);
180 180
 
181 181
 														ob_start();
182 182
 														$item_meta->display();
183 183
 														$_item_meta = ob_get_clean();
184 184
 
185
-														if ( ! empty( $_item_meta ) ) {
185
+														if ( ! empty($_item_meta)) {
186 186
 															echo $_item_meta;
187 187
 														} else {
188 188
 															echo '<br>';
189 189
 														}
190 190
 
191
-														if ( $_product && $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted() ) {
192
-															$download_files = $order->get_item_downloads( $item );
191
+														if ($_product && $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted()) {
192
+															$download_files = $order->get_item_downloads($item);
193 193
 															$i = 0;
194 194
 															$links = array();
195 195
 
196
-															if ( empty( $download_files ) ) {
196
+															if (empty($download_files)) {
197 197
 																$download_files = $_product->get_files();
198 198
 															}
199 199
 
200
-															foreach ( $download_files as $download_id => $file ) {
200
+															foreach ($download_files as $download_id => $file) {
201 201
 																$i++;
202 202
 
203
-																if ( $i > 1 ) {
203
+																if ($i > 1) {
204 204
 																	echo '<br>';
205 205
 																}
206 206
 
207
-																if ( ! empty( $_item_meta ) ) {
207
+																if ( ! empty($_item_meta)) {
208 208
 																	echo '<span style="margin-top: -2.4rem; display: block;">';
209 209
 																} else {
210 210
 																	echo '<span>';
211 211
 																}
212 212
 
213
-																echo '<a href="' . esc_url( $file['download_url'] ? $file['download_url'] : $file['file'] ) . '">' . sprintf( esc_html__( 'Download file%s', 'lsx' ), ( count( $download_files ) > 1 ? ' ' . $i . ': ' : ': ' ) ) . esc_html( $file['name'] ) . '</a>';
213
+																echo '<a href="' . esc_url($file['download_url'] ? $file['download_url'] : $file['file']) . '">' . sprintf(esc_html__('Download file%s', 'lsx'), (count($download_files) > 1 ? ' ' . $i . ': ' : ': ')) . esc_html($file['name']) . '</a>';
214 214
 																echo '</span>';
215 215
 															}
216 216
 														}
@@ -218,15 +218,15 @@  discard block
 block discarded – undo
218 218
 												</td>
219 219
 
220 220
 												<td>
221
-													<?php echo $order->get_formatted_line_subtotal( $item ); ?>
221
+													<?php echo $order->get_formatted_line_subtotal($item); ?>
222 222
 												</td>
223 223
 											</tr>
224 224
 
225 225
 											<?php
226
-												if ( $order->has_status( array( 'completed', 'processing' ) ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) {
226
+												if ($order->has_status(array('completed', 'processing')) && ($purchase_note = get_post_meta($_product->id, '_purchase_note', true))) {
227 227
 													?>
228 228
 													<tr class="product-purchase-note">
229
-														<td colspan="3"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
229
+														<td colspan="3"><?php echo wpautop(do_shortcode(wp_kses_post($purchase_note))); ?></td>
230 230
 													</tr>
231 231
 													<?php
232 232
 												}
@@ -239,8 +239,8 @@  discard block
 block discarded – undo
239 239
 
240 240
 								<tfoot>
241 241
 									<?php
242
-										if ( $totals = $order->get_order_item_totals() ) :
243
-											foreach ( $totals as $total ) :
242
+										if ($totals = $order->get_order_item_totals()) :
243
+											foreach ($totals as $total) :
244 244
 												?>
245 245
 												<tr>
246 246
 													<th scope="row"><?php echo $total['label']; ?></th>
@@ -253,9 +253,9 @@  discard block
 block discarded – undo
253 253
 								</tfoot>
254 254
 							</table>
255 255
 
256
-							<?php if ( 'bacs' === $order->get_payment_method() ) { ?>
257
-								<h2><?php esc_html_e( 'Bank Details', 'lsx' ); ?></h2>
258
-								<?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?>
256
+							<?php if ('bacs' === $order->get_payment_method()) { ?>
257
+								<h2><?php esc_html_e('Bank Details', 'lsx'); ?></h2>
258
+								<?php do_action('woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id()); ?>
259 259
 							<?php } ?>
260 260
 						</div>
261 261
 					</div>
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
 				<?php else : ?>
266 266
 
267
-					<div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); ?></div>
267
+					<div class="alert alert-danger"><?php esc_html_e('Invalid order.', 'lsx'); ?></div>
268 268
 
269 269
 				<?php endif; ?>
270 270
 
Please login to merge, or discard this patch.