Completed
Push — master ( 6f7209...9fe369 )
by Warwick
14:22 queued 12:07
created
includes/nav-navwalker.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
  * @category   bootstrap-walker
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if ( ! defined('ABSPATH')) {
11 11
 	exit;
12 12
 }
13 13
 
14
-add_filter( 'nav_menu_item_id', '__return_null' );
14
+add_filter('nav_menu_item_id', '__return_null');
15 15
 
16
-if ( ! function_exists( 'lsx_nav_menu_css_class' ) ) :
16
+if ( ! function_exists('lsx_nav_menu_css_class')) :
17 17
 
18 18
 	/**
19 19
 	 * Remove the id="" on nav menu items.
@@ -23,22 +23,22 @@  discard block
 block discarded – undo
23 23
 	 * @subpackage navigation
24 24
 	 * @category   bootstrap-walker
25 25
 	 */
26
-	function lsx_nav_menu_css_class( $classes, $item ) {
27
-		$slug    = sanitize_title( $item->title );
28
-		$classes = preg_replace( '/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes );
29
-		$classes = preg_replace( '/^((menu|page)[-_\w+]+)+/', '', $classes );
26
+	function lsx_nav_menu_css_class($classes, $item) {
27
+		$slug    = sanitize_title($item->title);
28
+		$classes = preg_replace('/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes);
29
+		$classes = preg_replace('/^((menu|page)[-_\w+]+)+/', '', $classes);
30 30
 
31 31
 		$classes[] = 'menu-' . $slug;
32
-		$classes   = array_unique( $classes );
32
+		$classes   = array_unique($classes);
33 33
 
34
-		return array_filter( $classes, 'lsx_is_element_empty' );
34
+		return array_filter($classes, 'lsx_is_element_empty');
35 35
 	}
36 36
 
37 37
 endif;
38 38
 
39
-add_filter( 'nav_menu_css_class', 'lsx_nav_menu_css_class', 10, 2 );
39
+add_filter('nav_menu_css_class', 'lsx_nav_menu_css_class', 10, 2);
40 40
 
41
-if ( ! function_exists( 'lsx_nav_menu_args' ) ) :
41
+if ( ! function_exists('lsx_nav_menu_args')) :
42 42
 
43 43
 	/**
44 44
 	 * Clean up wp_nav_menu_args.
@@ -50,24 +50,24 @@  discard block
 block discarded – undo
50 50
 	 * @subpackage navigation
51 51
 	 * @category   bootstrap-walker
52 52
 	 */
53
-	function lsx_nav_menu_args( $args = '' ) {
53
+	function lsx_nav_menu_args($args = '') {
54 54
 		$roots_nav_menu_args['container'] = false;
55 55
 
56
-		if ( ! $args['items_wrap'] ) {
56
+		if ( ! $args['items_wrap']) {
57 57
 			$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
58 58
 		}
59 59
 
60
-		if ( current_theme_supports( 'bootstrap-top-navbar' ) && ! $args['depth'] ) {
60
+		if (current_theme_supports('bootstrap-top-navbar') && ! $args['depth']) {
61 61
 			$roots_nav_menu_args['depth'] = 2;
62 62
 		}
63 63
 
64
-		if ( ! $args['walker'] ) {
64
+		if ( ! $args['walker']) {
65 65
 			$roots_nav_menu_args['walker'] = new LSX_Nav_Walker();
66 66
 		}
67 67
 
68
-		return array_merge( $args, $roots_nav_menu_args );
68
+		return array_merge($args, $roots_nav_menu_args);
69 69
 	}
70 70
 
71 71
 endif;
72 72
 
73
-add_filter( 'wp_nav_menu_args', 'lsx_nav_menu_args' );
73
+add_filter('wp_nav_menu_args', 'lsx_nav_menu_args');
Please login to merge, or discard this patch.
archive.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
 
32 32
 			<?php lsx_paging_nav(); ?>
33 33
 
34
-		<?php else : ?>
34
+		<?php else {
35
+	: ?>
35 36
 
36
-			<?php get_template_part( 'partials/content', 'none' ); ?>
37
+			<?php get_template_part( 'partials/content', 'none' );
38
+}
39
+?>
37 40
 
38 41
 		<?php endif; ?>
39 42
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 <?php lsx_content_wrap_before(); ?>
11 11
 
12
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
12
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
13 13
 
14 14
 	<?php lsx_content_before(); ?>
15 15
 
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
 
18 18
 		<?php lsx_content_top(); ?>
19 19
 
20
-		<?php if ( have_posts() ) : ?>
20
+		<?php if (have_posts()) : ?>
21 21
 
22 22
 			<div class="post-wrapper">
23 23
 
24 24
 				<?php
25
-				while ( have_posts() ) :
25
+				while (have_posts()) :
26 26
 					the_post();
27 27
 					?>
28 28
 
29
-					<?php get_template_part( 'partials/content', get_post_format() ); ?>
29
+					<?php get_template_part('partials/content', get_post_format()); ?>
30 30
 
31 31
 				<?php endwhile; ?>
32 32
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 		<?php else : ?>
38 38
 
39
-			<?php get_template_part( 'partials/content', 'none' ); ?>
39
+			<?php get_template_part('partials/content', 'none'); ?>
40 40
 
41 41
 		<?php endif; ?>
42 42
 
Please login to merge, or discard this patch.
404.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
 		<main id="main" class="site-main" role="main">
12 12
 			<section class="error-404 not-found">
13 13
 				<header class="page-header">
14
-					<h1 class="page-title"><?php esc_html_e( 'Whoops!', 'lsx' ); ?></h1>
14
+					<h1 class="page-title"><?php esc_html_e('Whoops!', 'lsx'); ?></h1>
15 15
 				</header><!-- .page-header -->
16 16
 
17 17
 				<div class="page-content">
18
-					<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p>
18
+					<p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p>
19 19
 					<?php get_search_form(); ?>
20 20
 				</div><!-- .page-content -->
21 21
 			</section><!-- .error-404 -->
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 	<div id="secondary" class="col-sm-12 sidebar-container" role="complementary">
27 27
 		<div class="widget-area">
28
-			<?php dynamic_sidebar( 'sidebar-404' ); ?>
28
+			<?php dynamic_sidebar('sidebar-404'); ?>
29 29
 		</div><!-- .widget-area -->
30 30
 	</div><!-- #secondary -->
31 31
 
Please login to merge, or discard this patch.
page-templates/template-wc-thank-you.php 2 patches
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,8 +72,12 @@  discard block
 block discarded – undo
72 72
 
73 73
 							<dl class="customer_details">
74 74
 								<?php
75
-									if ( $order->billing_email ) echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>';
76
-									if ( $order->billing_phone ) echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
75
+									if ( $order->billing_email ) {
76
+										echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>';
77
+									}
78
+									if ( $order->billing_phone ) {
79
+										echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
80
+									}
77 81
 
78 82
 									// Additional customer details hook
79 83
 									do_action( 'woocommerce_order_details_after_customer_details', $order );
@@ -230,9 +234,12 @@  discard block
 block discarded – undo
230 234
 
231 235
 					<?php // @codingStandardsIgnoreEnd ?>
232 236
 
233
-				<?php else : ?>
237
+				<?php else {
238
+	: ?>
234 239
 
235
-					<div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); ?></div>
240
+					<div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' );
241
+}
242
+?></div>
236 243
 
237 244
 				<?php endif; ?>
238 245
 
Please login to merge, or discard this patch.
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -22,74 +22,74 @@  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( 'Shop', 'lsx' ); ?></span></span>
25
+						<span><span><?php esc_html_e('Shop', 'lsx'); ?></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' ); ?></span></span>
31
+						<span><span><?php esc_html_e('My Cart', 'lsx'); ?></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( 'Billing details', 'lsx' ); ?></span></span>
36
+						<span><span><?php esc_html_e('Billing details', 'lsx'); ?></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' ); ?></i>
42
-						<span><span><?php esc_html_e( 'Payment', 'lsx' ); ?></span></span>
41
+						<i class="lsx-wc-checkout-steps-counter" aria-hidden="true"><?php esc_html_e('4', 'lsx'); ?></i>
42
+						<span><span><?php esc_html_e('Payment', 'lsx'); ?></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 51
 			<?php
52
-			while ( have_posts() ) :
52
+			while (have_posts()) :
53 53
 				the_post();
54 54
 				?>
55 55
 
56 56
 				<?php
57 57
 					WC()->payment_gateways()->payment_gateways;
58
-					$order_key = isset( $_GET['key'] ) ? wc_clean( $_GET['key'] ) : '';
59
-					$order_id  = absint( $wp->query_vars['order-received'] );
60
-					$order     = wc_get_order( $order_id );
58
+					$order_key = isset($_GET['key']) ? wc_clean($_GET['key']) : '';
59
+					$order_id  = absint($wp->query_vars['order-received']);
60
+					$order     = wc_get_order($order_id);
61 61
 				?>
62 62
 
63
-				<?php if ( $order && $order->get_id() === $order_id && $order->get_order_key() === $order_key ) : ?>
63
+				<?php if ($order && $order->get_id() === $order_id && $order->get_order_key() === $order_key) : ?>
64 64
 
65 65
 					<?php // @codingStandardsIgnoreStart ?>
66 66
 
67
-					<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>
67
+					<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>
68 68
 
69 69
 					<div class="row">
70 70
 						<div class="col-xs-12 col-sm-6">
71
-							<h2><?php esc_html_e( 'Order Details', 'lsx' ); ?></h2>
71
+							<h2><?php esc_html_e('Order Details', 'lsx'); ?></h2>
72 72
 
73 73
 							<table class="table">
74 74
 								<tbody>
75 75
 									<tr>
76
-										<th><?php esc_html_e( 'Order:', 'lsx' ); ?></th>
76
+										<th><?php esc_html_e('Order:', 'lsx'); ?></th>
77 77
 										<td><?php echo $order->get_order_number(); ?></td>
78 78
 									</tr>
79 79
 
80 80
 									<tr>
81
-										<th><?php esc_html_e( 'Date:', 'lsx' ); ?></th>
82
-										<td><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></td>
81
+										<th><?php esc_html_e('Date:', 'lsx'); ?></th>
82
+										<td><?php echo date_i18n(get_option('date_format'), strtotime($order->order_date)); ?></td>
83 83
 									</tr>
84 84
 
85 85
 									<tr>
86
-										<th><?php esc_html_e( 'Total:', 'lsx' ); ?></th>
86
+										<th><?php esc_html_e('Total:', 'lsx'); ?></th>
87 87
 										<td><?php echo $order->get_formatted_order_total(); ?></td>
88 88
 									</tr>
89 89
 
90
-									<?php if ( $order->payment_method_title ) : ?>
90
+									<?php if ($order->payment_method_title) : ?>
91 91
 										<tr>
92
-											<th><?php esc_html_e( 'Payment method:', 'lsx' ); ?></th>
92
+											<th><?php esc_html_e('Payment method:', 'lsx'); ?></th>
93 93
 											<td><?php echo $order->payment_method_title; ?></td>
94 94
 										</tr>
95 95
 									<?php endif; ?>
@@ -98,48 +98,48 @@  discard block
 block discarded – undo
98 98
 
99 99
 							<?php // do_action( 'woocommerce_order_details_after_order_table', $order ); ?>
100 100
 
101
-							<h2><?php esc_html_e( 'Customer details', 'lsx' ); ?></h2>
101
+							<h2><?php esc_html_e('Customer details', 'lsx'); ?></h2>
102 102
 
103 103
 							<dl class="customer_details">
104 104
 								<?php
105
-									if ( $order->billing_email ) echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>';
106
-									if ( $order->billing_phone ) echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
105
+									if ($order->billing_email) echo '<dt>' . esc_html__('Email:', 'lsx') . '</dt><dd>' . $order->billing_email . '</dd>';
106
+									if ($order->billing_phone) echo '<dt>' . esc_html__('Telephone:', 'lsx') . '</dt><dd>' . $order->billing_phone . '</dd>';
107 107
 
108 108
 									// Additional customer details hook
109
-									do_action( 'woocommerce_order_details_after_customer_details', $order );
109
+									do_action('woocommerce_order_details_after_customer_details', $order);
110 110
 								?>
111 111
 							</dl>
112 112
 
113
-							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
113
+							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option('woocommerce_calc_shipping') !== 'no') : ?>
114 114
 
115 115
 								<div class="row">
116 116
 									<div class="col-xs-12 col-sm-6">
117 117
 
118 118
 							<?php endif; ?>
119 119
 
120
-										<h3><?php esc_html_e( 'Billing Address', 'lsx' ); ?></h3>
120
+										<h3><?php esc_html_e('Billing Address', 'lsx'); ?></h3>
121 121
 
122 122
 										<address>
123 123
 											<?php
124
-												if ( ! $order->get_formatted_billing_address() ) {
125
-													esc_html_e( 'N/A', 'lsx' );
124
+												if ( ! $order->get_formatted_billing_address()) {
125
+													esc_html_e('N/A', 'lsx');
126 126
 												} else {
127 127
 													echo $order->get_formatted_billing_address();
128 128
 												}
129 129
 											?>
130 130
 										</address>
131 131
 
132
-							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) : ?>
132
+							<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option('woocommerce_calc_shipping') !== 'no') : ?>
133 133
 
134 134
 									</div>
135 135
 
136 136
 									<div class="col-xs-12 col-sm-6">
137
-										<h3><?php esc_html_e( 'Shipping Address', 'lsx' ); ?></h3>
137
+										<h3><?php esc_html_e('Shipping Address', 'lsx'); ?></h3>
138 138
 
139 139
 										<address>
140 140
 											<?php
141
-												if ( ! $order->get_formatted_shipping_address() ) {
142
-													esc_html_e( 'N/A', 'lsx' );
141
+												if ( ! $order->get_formatted_shipping_address()) {
142
+													esc_html_e('N/A', 'lsx');
143 143
 												} else {
144 144
 													echo $order->get_formatted_shipping_address();
145 145
 												}
@@ -152,68 +152,68 @@  discard block
 block discarded – undo
152 152
 						</div>
153 153
 
154 154
 						<div class="col-xs-12 col-sm-6">
155
-							<h2><?php esc_html_e( 'Products details', 'lsx' ); ?></h2>
155
+							<h2><?php esc_html_e('Products details', 'lsx'); ?></h2>
156 156
 
157 157
 							<table class="table">
158 158
 								<thead>
159 159
 									<tr>
160
-										<th><?php esc_html_e( 'Product', 'lsx' ); ?></th>
161
-										<th><?php esc_html_e( 'Total', 'lsx' ); ?></th>
160
+										<th><?php esc_html_e('Product', 'lsx'); ?></th>
161
+										<th><?php esc_html_e('Total', 'lsx'); ?></th>
162 162
 									</tr>
163 163
 								</thead>
164 164
 
165 165
 								<tbody>
166 166
 									<?php
167
-										if ( sizeof( $order->get_items() ) > 0 ) :
168
-											foreach( $order->get_items() as $item ) :
169
-												$_product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item );
170
-												$item_meta = new WC_Order_Item_Meta( $item['item_meta'], $_product );
167
+										if (sizeof($order->get_items()) > 0) :
168
+											foreach ($order->get_items() as $item) :
169
+												$_product = apply_filters('woocommerce_order_item_product', $order->get_product_from_item($item), $item);
170
+												$item_meta = new WC_Order_Item_Meta($item['item_meta'], $_product);
171 171
 											?>
172 172
 
173 173
 											<tr>
174 174
 												<td>
175 175
 													<?php
176
-														if ( $_product && ! $_product->is_visible() ) {
177
-															echo apply_filters( 'woocommerce_order_item_name', $item['name'], $item );
176
+														if ($_product && ! $_product->is_visible()) {
177
+															echo apply_filters('woocommerce_order_item_name', $item['name'], $item);
178 178
 														} else {
179
-															echo apply_filters( 'woocommerce_order_item_name', sprintf( '<a href="%s">%s</a>', get_permalink( $item['product_id'] ), $item['name'] ), $item );
179
+															echo apply_filters('woocommerce_order_item_name', sprintf('<a href="%s">%s</a>', get_permalink($item['product_id']), $item['name']), $item);
180 180
 														}
181 181
 
182
-														echo apply_filters( 'woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf( '&times; %s', $item['qty'] ) . '</strong>', $item );
182
+														echo apply_filters('woocommerce_order_item_quantity_html', ' <strong class="product-quantity">' . sprintf('&times; %s', $item['qty']) . '</strong>', $item);
183 183
 
184 184
 														ob_start();
185 185
 														$item_meta->display();
186 186
 														$_item_meta = ob_get_clean();
187 187
 
188
-														if ( ! empty( $_item_meta ) ) {
188
+														if ( ! empty($_item_meta)) {
189 189
 															echo $_item_meta;
190 190
 														} else {
191 191
 															echo '<br>';
192 192
 														}
193 193
 
194
-														if ( $_product && $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted() ) {
195
-															$download_files = $order->get_item_downloads( $item );
194
+														if ($_product && $_product->exists() && $_product->is_downloadable() && $order->is_download_permitted()) {
195
+															$download_files = $order->get_item_downloads($item);
196 196
 															$i = 0;
197 197
 															$links = array();
198 198
 
199
-															if ( empty( $download_files ) ) {
199
+															if (empty($download_files)) {
200 200
 																$download_files = $_product->get_files();
201 201
 															}
202 202
 
203
-															foreach ( $download_files as $download_id => $file ) {
203
+															foreach ($download_files as $download_id => $file) {
204 204
 																++$i;
205 205
 
206
-																if ( $i > 1 ) {
206
+																if ($i > 1) {
207 207
 																	echo '<br>';
208 208
 																}
209 209
 
210
-																if ( ! empty( $_item_meta ) ) {
210
+																if ( ! empty($_item_meta)) {
211 211
 																	echo '<span style="margin-top: -2.4rem; display: block;">';
212 212
 																} else {
213 213
 																	echo '<span>';
214 214
 																}
215 215
 
216
-																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>';
216
+																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>';
217 217
 																echo '</span>';
218 218
 															}
219 219
 														}
@@ -221,15 +221,15 @@  discard block
 block discarded – undo
221 221
 												</td>
222 222
 
223 223
 												<td>
224
-													<?php echo $order->get_formatted_line_subtotal( $item ); ?>
224
+													<?php echo $order->get_formatted_line_subtotal($item); ?>
225 225
 												</td>
226 226
 											</tr>
227 227
 
228 228
 											<?php
229
-												if ( $order->has_status( array( 'completed', 'processing' ) ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) {
229
+												if ($order->has_status(array('completed', 'processing')) && ($purchase_note = get_post_meta($_product->id, '_purchase_note', true))) {
230 230
 													?>
231 231
 													<tr class="product-purchase-note">
232
-														<td colspan="3"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
232
+														<td colspan="3"><?php echo wpautop(do_shortcode(wp_kses_post($purchase_note))); ?></td>
233 233
 													</tr>
234 234
 													<?php
235 235
 												}
@@ -242,8 +242,8 @@  discard block
 block discarded – undo
242 242
 
243 243
 								<tfoot>
244 244
 									<?php
245
-										if ( $totals = $order->get_order_item_totals() ) :
246
-											foreach ( $totals as $total ) :
245
+										if ($totals = $order->get_order_item_totals()) :
246
+											foreach ($totals as $total) :
247 247
 												?>
248 248
 												<tr>
249 249
 													<th scope="row"><?php echo $total['label']; ?></th>
@@ -256,9 +256,9 @@  discard block
 block discarded – undo
256 256
 								</tfoot>
257 257
 							</table>
258 258
 
259
-							<?php if ( 'bacs' === $order->get_payment_method() ) { ?>
260
-								<h2><?php esc_html_e( 'Bank Details', 'lsx' ); ?></h2>
261
-								<?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?>
259
+							<?php if ('bacs' === $order->get_payment_method()) { ?>
260
+								<h2><?php esc_html_e('Bank Details', 'lsx'); ?></h2>
261
+								<?php do_action('woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id()); ?>
262 262
 							<?php } ?>
263 263
 						</div>
264 264
 					</div>
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 
268 268
 				<?php else : ?>
269 269
 
270
-					<div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); ?></div>
270
+					<div class="alert alert-danger"><?php esc_html_e('Invalid order.', 'lsx'); ?></div>
271 271
 
272 272
 				<?php endif; ?>
273 273
 
Please login to merge, or discard this patch.
includes/admin/welcome-screen/component-footer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,30 +10,30 @@  discard block
 block discarded – undo
10 10
 <div class="row">
11 11
 	<div class="col-md-6">
12 12
 		<div class="box mailchimp">
13
-			<h2><?php esc_html_e( 'Newsletter', 'lsx' ); ?></h2>
14
-			<p><?php esc_html_e( 'Subscribe to our mailing list.', 'lsx' ); ?></p>
13
+			<h2><?php esc_html_e('Newsletter', 'lsx'); ?></h2>
14
+			<p><?php esc_html_e('Subscribe to our mailing list.', 'lsx'); ?></p>
15 15
 
16 16
 			<!-- Begin MailChimp Signup Form -->
17 17
 			<form action="//lsdev.us2.list-manage.com/subscribe/post?u=e50b2c5c82f4b42ea978af479&amp;id=92c36218e5" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
18 18
 				<div id="mc_embed_signup">
19 19
 					<div id="mc_embed_signup_scroll">
20 20
 						<div class="mc-field-group">
21
-							<label for="mce-EMAIL"><?php esc_html_e( 'Email Address', 'lsx' ); ?> <span class="asterisk">*</span></label>
21
+							<label for="mce-EMAIL"><?php esc_html_e('Email Address', 'lsx'); ?> <span class="asterisk">*</span></label>
22 22
 							<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
23 23
 						</div>
24 24
 						<div class="mc-field-group">
25
-							<label for="mce-FNAME"><?php esc_html_e( 'First Name', 'lsx' ); ?> </label>
25
+							<label for="mce-FNAME"><?php esc_html_e('First Name', 'lsx'); ?> </label>
26 26
 							<input type="text" value="" name="FNAME" class="" id="mce-FNAME">
27 27
 						</div>
28 28
 						<div class="mc-field-group">
29
-							<label for="mce-LNAME"><?php esc_html_e( 'Last Name', 'lsx' ); ?> </label>
29
+							<label for="mce-LNAME"><?php esc_html_e('Last Name', 'lsx'); ?> </label>
30 30
 							<input type="text" value="" name="LNAME" class="" id="mce-LNAME">
31 31
 						</div>
32 32
 					</div>
33 33
 					<div style="position:absolute;left:-5000px;" aria-hidden="true"><input type="text" name="b_e50b2c5c82f4b42ea978af479_92c36218e5" tabindex="-1" value=""></div>
34 34
 				</div>
35 35
 				<div class="more-button">
36
-					<input type="submit" value="<?php esc_html_e( 'Subscribe', 'lsx' ); ?>" name="subscribe" class="button button-primary">
36
+					<input type="submit" value="<?php esc_html_e('Subscribe', 'lsx'); ?>" name="subscribe" class="button button-primary">
37 37
 				</div>
38 38
 			</form>
39 39
 			<!--End mc_embed_signup-->
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 
43 43
 	<div class="col-md-6">
44 44
 		<div class="box suggest">
45
-			<h2><?php esc_html_e( 'Enjoying LSX?', 'lsx' ); ?></h2>
45
+			<h2><?php esc_html_e('Enjoying LSX?', 'lsx'); ?></h2>
46 46
 
47 47
 			<p>
48 48
 				<?php
49 49
 					printf(
50 50
 						/* Translators: 1: HTML open tag link, 2: HTML close tag link */
51
-						esc_html__( 'Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx' ),
51
+						esc_html__('Why not %1$sleave a review%2$s on WordPress.org? We\'re looking foward to all our users\' feedback!', 'lsx'),
52 52
 						'<a href="https://wordpress.org/themes/lsx" target="_blank rel="noopener noreferrer">',
53 53
 						'</a>'
54 54
 					);
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-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/admin/welcome-screen/component-header.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,21 +9,21 @@  discard block
 block discarded – undo
9 9
 
10 10
 <div class="row">
11 11
 	<div class="col-md-12">
12
-		<h1><span class="logo"><?php echo esc_html__( 'LSX', 'lsx' ); ?></span> <sup class="version"><?php echo esc_html( LSX_VERSION ); ?></sup></h1>
12
+		<h1><span class="logo"><?php echo esc_html__('LSX', 'lsx'); ?></span> <sup class="version"><?php echo esc_html(LSX_VERSION); ?></sup></h1>
13 13
 	</div>
14 14
 </div>
15 15
 
16 16
 <div class="row">
17 17
 	<div class="col-md-6">
18 18
 		<div class="box enrich">
19
-			<h2><?php esc_html_e( 'Built to enrich your WordPress experience', 'lsx' ); ?></h2>
20
-			<p><?php esc_html_e( 'Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx' ); ?></p>
19
+			<h2><?php esc_html_e('Built to enrich your WordPress experience', 'lsx'); ?></h2>
20
+			<p><?php esc_html_e('Whether you\'re using LSX for your personal blog, as the platform for a powerful WooCommerce store or as the foundation for your own child-theme, you\'ll find it\'s the perfect fit for WordPress.', 'lsx'); ?></p>
21 21
 
22 22
 			<p>
23 23
 				<?php
24 24
 					printf(
25 25
 						/* Translators: 1: HTML open tag link, 2: HTML close tag link */
26
-						esc_html__( 'Use LSX with our %1$sTour Operator Plugin%2$s to create the ultimate tour operators website!', 'lsx' ),
26
+						esc_html__('Use LSX with our %1$sTour Operator Plugin%2$s to create the ultimate tour operators website!', 'lsx'),
27 27
 						'<a href="https://wordpress.org/plugins/tour-operator/ target="_blank" rel="noreferrer noopener">',
28 28
 						'</a>'
29 29
 					);
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
 
35 35
 	<div class="col-md-6">
36 36
 		<div class="box support">
37
-			<h2><?php esc_html_e( 'Get support', 'lsx' ); ?></h2>
37
+			<h2><?php esc_html_e('Get support', 'lsx'); ?></h2>
38 38
 
39 39
 			<p>
40 40
 				<?php
41 41
 					printf(
42 42
 						/* Translators: 1: HTML open tag link, 2: HTML close tag link, 3: HTML open tag link, 4: HTML close tag link */
43
-						esc_html__( 'You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx' ),
43
+						esc_html__('You\'ll find information on how to use and customize the LSX theme in our %1$sdocumentation%2$s section. However, please do %3$scontact us%4$s for support should you still find yourself unable to achieve your needs.', 'lsx'),
44 44
 						'<a href="https://www.lsdev.biz/documentation/lsx/" target="_blank" rel="noreferrer noopener">',
45 45
 						'</a>',
46 46
 						'<a href="https://www.lsdev.biz/contact-us/" target="_blank" rel="noreferrer noopener">',
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 			<div class="more-button">
53 53
 				<a href="https://www.lsdev.biz/contact-us/" target="_blank" rel="noreferrer" class="button button-primary" >
54
-					<?php esc_html_e( 'Get in touch', 'lsx' ); ?>
54
+					<?php esc_html_e('Get in touch', 'lsx'); ?>
55 55
 				</a>
56 56
 			</div>
57 57
 		</div>
Please login to merge, or discard this patch.
includes/admin/welcome-screen/component-enhance.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -10,28 +10,28 @@  discard block
 block discarded – undo
10 10
 <div class="row">
11 11
 	<div class="col-md-12">
12 12
 		<div class="box enhance">
13
-			<h2><?php esc_html_e( 'Enhance LSX', 'lsx' ); ?></h2>
14
-			<p><?php esc_html_e( 'Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme.', 'lsx' ); ?></p>
13
+			<h2><?php esc_html_e('Enhance LSX', 'lsx'); ?></h2>
14
+			<p><?php esc_html_e('Take a look at our range of extensions that add to the already rich functionality of the LSX WordPress theme.', 'lsx'); ?></p>
15 15
 
16 16
 			<div class="row">
17 17
 				<div class="col-md-4">
18 18
 					<div class="box-clean">
19
-						<a href="https://wordpress.org/plugins/lsx-banners/" target="_blank"><?php esc_html_e( 'Banners', 'lsx' ); ?></a>
20
-						<p><?php esc_html_e( 'The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx' ); ?></p>
19
+						<a href="https://wordpress.org/plugins/lsx-banners/" target="_blank"><?php esc_html_e('Banners', 'lsx'); ?></a>
20
+						<p><?php esc_html_e('The LSX Banners extension adds advanced banner configuration options to your WordPress site running LSX theme.', 'lsx'); ?></p>
21 21
 					</div>
22 22
 				</div>
23 23
 
24 24
 				<div class="col-md-4">
25 25
 					<div class="box-clean">
26
-						<a href="https://wordpress.org/plugins/lsx-currencies/" target="_blank"><?php esc_html_e( 'Currencies', 'lsx' ); ?></a>
27
-						<p><?php esc_html_e( 'The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx' ); ?></p>
26
+						<a href="https://wordpress.org/plugins/lsx-currencies/" target="_blank"><?php esc_html_e('Currencies', 'lsx'); ?></a>
27
+						<p><?php esc_html_e('The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.', 'lsx'); ?></p>
28 28
 					</div>
29 29
 				</div>
30 30
 
31 31
 				<div class="col-md-4">
32 32
 					<div class="box-clean">
33
-						<a href="https://wordpress.org/plugins/lsx-blog-customizer/" target="_blank"><?php esc_html_e( 'Blog Customizer', 'lsx' ); ?></a>
34
-						<p><?php esc_html_e( 'It allows you it to customize various aspects of the the appearance of your blog, posts widgets, archive pages and single posts so they looks exactly how you want.', 'lsx' ); ?></p>
33
+						<a href="https://wordpress.org/plugins/lsx-blog-customizer/" target="_blank"><?php esc_html_e('Blog Customizer', 'lsx'); ?></a>
34
+						<p><?php esc_html_e('It allows you it to customize various aspects of the the appearance of your blog, posts widgets, archive pages and single posts so they looks exactly how you want.', 'lsx'); ?></p>
35 35
 					</div>
36 36
 				</div>
37 37
 			</div>
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
 			<div class="row">
40 40
 				<div class="col-md-4">
41 41
 					<div class="box-clean">
42
-						<a href="https://wordpress.org/plugins/lsx-customizer/" target="_blank"><?php esc_html_e( 'Customizer', 'lsx' ); ?></a>
43
-						<p><?php esc_html_e( 'You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin.', 'lsx' ); ?></p>
42
+						<a href="https://wordpress.org/plugins/lsx-customizer/" target="_blank"><?php esc_html_e('Customizer', 'lsx'); ?></a>
43
+						<p><?php esc_html_e('You\'ve installed LSX, so now why not make it all yours? Whether it\'s a small CSS tweak or changing the entire layout of pages, posts or archives, please make use of the Theme Customizer plugin.', 'lsx'); ?></p>
44 44
 					</div>
45 45
 				</div>
46 46
 
47 47
 				<div class="col-md-4">
48 48
 					<div class="box-clean">
49
-						<a href="https://wordpress.org/plugins/lsx-login/" target="_blank"><?php esc_html_e( 'Login', 'lsx' ); ?></a>
50
-						<p><?php esc_html_e( 'The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx' ); ?></p>
49
+						<a href="https://wordpress.org/plugins/lsx-login/" target="_blank"><?php esc_html_e('Login', 'lsx'); ?></a>
50
+						<p><?php esc_html_e('The LSX Login extension allows users to log into a dashboard and then see configurable content based on which users can access which content.', 'lsx'); ?></p>
51 51
 					</div>
52 52
 				</div>
53 53
 
54 54
 				<div class="col-md-4">
55 55
 					<div class="box-clean">
56
-						<a href="https://wordpress.org/plugins/lsx-mega-menus/" target="_blank"><?php esc_html_e( 'Mega Menus', 'lsx' ); ?></a>
57
-						<p><?php esc_html_e( 'Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx' ); ?></p>
56
+						<a href="https://wordpress.org/plugins/lsx-mega-menus/" target="_blank"><?php esc_html_e('Mega Menus', 'lsx'); ?></a>
57
+						<p><?php esc_html_e('Create custom, full-width dropdown menus that contain images, widgets and more that seamlessly tie into your LSX WordPress site.', 'lsx'); ?></p>
58 58
 					</div>
59 59
 				</div>
60 60
 			</div>
@@ -62,22 +62,22 @@  discard block
 block discarded – undo
62 62
 			<div class="row">
63 63
 				<div class="col-md-4">
64 64
 					<div class="box-clean">
65
-						<a href="https://wordpress.org/plugins/lsx-team/" target="_blank"><?php esc_html_e( 'Team', 'lsx' ); ?></a>
66
-						<p><?php esc_html_e( 'The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx' ); ?></p>
65
+						<a href="https://wordpress.org/plugins/lsx-team/" target="_blank"><?php esc_html_e('Team', 'lsx'); ?></a>
66
+						<p><?php esc_html_e('The LSX Team Extension provides a custom post type that allows you to easily show off the people that make up your business.', 'lsx'); ?></p>
67 67
 					</div>
68 68
 				</div>
69 69
 
70 70
 				<div class="col-md-4">
71 71
 					<div class="box-clean">
72
-						<a href="https://wordpress.org/plugins/lsx-testimonials/" target="_blank"><?php esc_html_e( 'Testimonials', 'lsx' ); ?></a>
73
-						<p><?php esc_html_e( 'The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx' ); ?></p>
72
+						<a href="https://wordpress.org/plugins/lsx-testimonials/" target="_blank"><?php esc_html_e('Testimonials', 'lsx'); ?></a>
73
+						<p><?php esc_html_e('The LSX Testimonials extension adds the "Testimonials" post type, which you can display front-and-centre on your site.', 'lsx'); ?></p>
74 74
 					</div>
75 75
 				</div>
76 76
 
77 77
 				<div class="col-md-4">
78 78
 					<div class="box-clean">
79
-						<a href="https://wordpress.org/plugins/lsx-geo-content/" target="_blank"><?php esc_html_e( 'Geo Content', 'lsx' ); ?></a>
80
-						<p><?php esc_html_e( 'LSX Geo Content allows you to serve different content to users based on their automatically-detected IP address.', 'lsx' ); ?></p>
79
+						<a href="https://wordpress.org/plugins/lsx-geo-content/" target="_blank"><?php esc_html_e('Geo Content', 'lsx'); ?></a>
80
+						<p><?php esc_html_e('LSX Geo Content allows you to serve different content to users based on their automatically-detected IP address.', 'lsx'); ?></p>
81 81
 					</div>
82 82
 				</div>
83 83
 			</div>
@@ -85,22 +85,22 @@  discard block
 block discarded – undo
85 85
 			<div class="row">
86 86
 				<div class="col-md-4">
87 87
 					<div class="box-clean">
88
-						<a href="https://wordpress.org/plugins/lsx-videos/" target="_blank"><?php esc_html_e( 'Videos', 'lsx' ); ?></a>
89
-						<p><?php esc_html_e( 'Adds the "Videos" post type to your LSX website which allows you to display and categorize videos.', 'lsx' ); ?></p>
88
+						<a href="https://wordpress.org/plugins/lsx-videos/" target="_blank"><?php esc_html_e('Videos', 'lsx'); ?></a>
89
+						<p><?php esc_html_e('Adds the "Videos" post type to your LSX website which allows you to display and categorize videos.', 'lsx'); ?></p>
90 90
 					</div>
91 91
 				</div>
92 92
 
93 93
 				<div class="col-md-4">
94 94
 					<div class="box-clean">
95
-						<a href="https://wordpress.org/plugins/lsx-projects/" target="_blank"><?php esc_html_e( 'Projects', 'lsx' ); ?></a>
96
-						<p><?php esc_html_e( 'Show off your finest work with the LSX Projects Extension! It adds a "Project" post type, allowing you to categorize and display your Projects on your LSX website.', 'lsx' ); ?></p>
95
+						<a href="https://wordpress.org/plugins/lsx-projects/" target="_blank"><?php esc_html_e('Projects', 'lsx'); ?></a>
96
+						<p><?php esc_html_e('Show off your finest work with the LSX Projects Extension! It adds a "Project" post type, allowing you to categorize and display your Projects on your LSX website.', 'lsx'); ?></p>
97 97
 					</div>
98 98
 				</div>
99 99
 
100 100
 				<div class="col-md-4">
101 101
 					<div class="box-clean">
102
-						<a href="https://wordpress.org/plugins/lsx-sharing/" target="_blank"><?php esc_html_e( 'Sharing', 'lsx' ); ?></a>
103
-						<p><?php esc_html_e( 'LSX Sharing adds buttons to your posts that your readers can use to share your content on Facebook, Twitter and Pinterest.', 'lsx' ); ?></p>
102
+						<a href="https://wordpress.org/plugins/lsx-sharing/" target="_blank"><?php esc_html_e('Sharing', 'lsx'); ?></a>
103
+						<p><?php esc_html_e('LSX Sharing adds buttons to your posts that your readers can use to share your content on Facebook, Twitter and Pinterest.', 'lsx'); ?></p>
104 104
 					</div>
105 105
 				</div>
106 106
 			</div>
Please login to merge, or discard this patch.