@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | namespace wpshop; |
16 | 16 | |
17 | -defined( 'ABSPATH' ) || exit; |
|
17 | +defined('ABSPATH') || exit; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * My Account Shortcode Class. |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @since 2.0.0 |
35 | 35 | */ |
36 | 36 | public function init_shortcode() { |
37 | - add_shortcode( 'wps_account', array( $this, 'callback_account' ) ); |
|
37 | + add_shortcode('wps_account', array($this, 'callback_account')); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -44,23 +44,23 @@ discard block |
||
44 | 44 | * @since 2.0.0 |
45 | 45 | */ |
46 | 46 | public function callback_account() { |
47 | - if ( ! is_admin() ) { |
|
48 | - if ( ! is_user_logged_in() ) { |
|
49 | - include( Template_Util::get_template_part( 'my-account', 'form-login' ) ); |
|
47 | + if (!is_admin()) { |
|
48 | + if (!is_user_logged_in()) { |
|
49 | + include(Template_Util::get_template_part('my-account', 'form-login')); |
|
50 | 50 | } else { |
51 | 51 | global $wp; |
52 | 52 | |
53 | 53 | $tab = 'orders'; |
54 | 54 | |
55 | - if ( array_key_exists( 'orders', $wp->query_vars ) ) { |
|
55 | + if (array_key_exists('orders', $wp->query_vars)) { |
|
56 | 56 | $tab = 'orders'; |
57 | 57 | } |
58 | 58 | |
59 | - if ( array_key_exists( 'proposals', $wp->query_vars ) ) { |
|
59 | + if (array_key_exists('proposals', $wp->query_vars)) { |
|
60 | 60 | $tab = 'proposals'; |
61 | 61 | } |
62 | 62 | |
63 | - include( Template_Util::get_template_part( 'my-account', 'my-account' ) ); |
|
63 | + include(Template_Util::get_template_part('my-account', 'my-account')); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | namespace wpshop; |
16 | 16 | |
17 | -defined( 'ABSPATH' ) || exit; |
|
17 | +defined('ABSPATH') || exit; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * My Account Class. |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * @since 2.0.0 |
36 | 36 | */ |
37 | 37 | public function init_endpoint() { |
38 | - add_rewrite_endpoint( 'orders', EP_ALL ); |
|
38 | + add_rewrite_endpoint('orders', EP_ALL); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | public function before_login_form() { |
49 | 49 | global $post; |
50 | 50 | |
51 | - if ( Pages::g()->get_slug_link_shop_page( $post->ID ) == 'my-account' ) { |
|
52 | - include( Template_Util::get_template_part( 'my-account', 'login-title' ) ); |
|
51 | + if (Pages::g()->get_slug_link_shop_page($post->ID) == 'my-account') { |
|
52 | + include(Template_Util::get_template_part('my-account', 'login-title')); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | * @todo: Mal placé ? |
63 | 63 | */ |
64 | 64 | public function checkout_form_login() { |
65 | - if ( ! is_user_logged_in() ) { |
|
66 | - include( Template_Util::get_template_part( 'my-account', 'checkout-login' ) ); |
|
65 | + if (!is_user_logged_in()) { |
|
66 | + include(Template_Util::get_template_part('my-account', 'checkout-login')); |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @param string $tab Le slug de l'onglet actuel. |
76 | 76 | */ |
77 | - public function display_navigation( $tab ) { |
|
78 | - include( Template_Util::get_template_part( 'my-account', 'my-account-navigation' ) ); |
|
77 | + public function display_navigation($tab) { |
|
78 | + include(Template_Util::get_template_part('my-account', 'my-account-navigation')); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -84,19 +84,19 @@ discard block |
||
84 | 84 | * @since 2.0.0 |
85 | 85 | */ |
86 | 86 | public function display_orders() { |
87 | - $contact = Contact::g()->get( array( 'id' => get_current_user_id() ), true ); |
|
88 | - $third_party = Third_Party::g()->get( array( 'id' => $contact->data['third_party_id'] ), true ); |
|
89 | - $orders = Doli_Order::g()->get( array( 'post_parent' => $third_party->data['id'] ) ); |
|
87 | + $contact = Contact::g()->get(array('id' => get_current_user_id()), true); |
|
88 | + $third_party = Third_Party::g()->get(array('id' => $contact->data['third_party_id']), true); |
|
89 | + $orders = Doli_Order::g()->get(array('post_parent' => $third_party->data['id'])); |
|
90 | 90 | |
91 | - if ( ! empty( $orders ) ) { |
|
92 | - foreach ( $orders as &$order ) { |
|
93 | - $order->data['invoice'] = Doli_Invoice::g()->get( array( 'post_parent' => $order->data['id'] ), true ); |
|
91 | + if (!empty($orders)) { |
|
92 | + foreach ($orders as &$order) { |
|
93 | + $order->data['invoice'] = Doli_Invoice::g()->get(array('post_parent' => $order->data['id']), true); |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
97 | - unset( $order ); |
|
97 | + unset($order); |
|
98 | 98 | |
99 | - include( Template_Util::get_template_part( 'my-account', 'my-account-orders' ) ); |
|
99 | + include(Template_Util::get_template_part('my-account', 'my-account-orders')); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -105,11 +105,11 @@ discard block |
||
105 | 105 | * @since 2.0.0 |
106 | 106 | */ |
107 | 107 | public function display_proposals() { |
108 | - $contact = Contact::g()->get( array( 'id' => get_current_user_id() ), true ); |
|
109 | - $third_party = Third_Party::g()->get( array( 'id' => $contact->data['third_party_id'] ), true ); |
|
110 | - $proposals = Proposals::g()->get( array( 'post_parent' => $third_party->data['id'] ) ); |
|
108 | + $contact = Contact::g()->get(array('id' => get_current_user_id()), true); |
|
109 | + $third_party = Third_Party::g()->get(array('id' => $contact->data['third_party_id']), true); |
|
110 | + $proposals = Proposals::g()->get(array('post_parent' => $third_party->data['id'])); |
|
111 | 111 | |
112 | - include( Template_Util::get_template_part( 'my-account', 'my-account-proposals' ) ); |
|
112 | + include(Template_Util::get_template_part('my-account', 'my-account-proposals')); |
|
113 | 113 | } |
114 | 114 | } |
115 | 115 |
@@ -14,32 +14,32 @@ |
||
14 | 14 | |
15 | 15 | namespace wpshop; |
16 | 16 | |
17 | -defined( 'ABSPATH' ) || exit; |
|
17 | +defined('ABSPATH') || exit; |
|
18 | 18 | |
19 | 19 | ?> |
20 | 20 | |
21 | 21 | <table class="wpeo-table"> |
22 | 22 | <thead> |
23 | 23 | <tr> |
24 | - <th data-title="Proposal"><?php esc_html_e( 'Proposal', 'wpshop' ); ?></th> |
|
25 | - <th data-title="Date"><?php esc_html_e( 'Date', 'wpshop' ); ?></th> |
|
26 | - <th data-title="Status"><?php esc_html_e( 'Status', 'wpshop' ); ?></th> |
|
27 | - <th data-title="Total"><?php esc_html_e( 'Total', 'wpshop' ); ?></th> |
|
28 | - <th data-title="Total"><?php esc_html_e( 'Actions', 'wpshop' ); ?></th> |
|
24 | + <th data-title="Proposal"><?php esc_html_e('Proposal', 'wpshop'); ?></th> |
|
25 | + <th data-title="Date"><?php esc_html_e('Date', 'wpshop'); ?></th> |
|
26 | + <th data-title="Status"><?php esc_html_e('Status', 'wpshop'); ?></th> |
|
27 | + <th data-title="Total"><?php esc_html_e('Total', 'wpshop'); ?></th> |
|
28 | + <th data-title="Total"><?php esc_html_e('Actions', 'wpshop'); ?></th> |
|
29 | 29 | </tr> |
30 | 30 | </thead> |
31 | 31 | <tbody> |
32 | 32 | <?php |
33 | - if ( ! empty( $proposals ) ) : |
|
34 | - foreach ( $proposals as $proposal ) : |
|
33 | + if (!empty($proposals)) : |
|
34 | + foreach ($proposals as $proposal) : |
|
35 | 35 | ?> |
36 | 36 | <tr> |
37 | - <th data-title="<?php echo esc_attr( $proposal->data['title'] ); ?>"><?php echo esc_html( $proposal->data['title'] ); ?></th> |
|
38 | - <td data-title="<?php echo esc_attr( $proposal->data['datec']['rendered']['date'] ); ?>"><?php echo esc_html( $proposal->data['datec']['rendered']['date'] ); ?></td> |
|
37 | + <th data-title="<?php echo esc_attr($proposal->data['title']); ?>"><?php echo esc_html($proposal->data['title']); ?></th> |
|
38 | + <td data-title="<?php echo esc_attr($proposal->data['datec']['rendered']['date']); ?>"><?php echo esc_html($proposal->data['datec']['rendered']['date']); ?></td> |
|
39 | 39 | <td data-title="N/D">N/D</td> |
40 | - <td data-title="<?php echo esc_attr( number_format( $proposal->data['total_ttc'], 2 ) ); ?>€"><?php echo esc_html( number_format( $proposal->data['total_ttc'], 2 ) ); ?>€</td> |
|
40 | + <td data-title="<?php echo esc_attr(number_format($proposal->data['total_ttc'], 2)); ?>€"><?php echo esc_html(number_format($proposal->data['total_ttc'], 2)); ?>€</td> |
|
41 | 41 | <td data-title="View"> |
42 | - <a target="_blank" href="<?php echo esc_attr( admin_url( 'admin-post.php?action=wps_download_proposal&proposal_id=' . $proposal->data['id'] ) ); ?>"><i class="fas fa-file-download"></i></a> |
|
42 | + <a target="_blank" href="<?php echo esc_attr(admin_url('admin-post.php?action=wps_download_proposal&proposal_id=' . $proposal->data['id'])); ?>"><i class="fas fa-file-download"></i></a> |
|
43 | 43 | </td> |
44 | 44 | </tr> |
45 | 45 | <?php |
@@ -14,9 +14,9 @@ |
||
14 | 14 | |
15 | 15 | namespace wpshop; |
16 | 16 | |
17 | -defined( 'ABSPATH' ) || exit; ?> |
|
17 | +defined('ABSPATH') || exit; ?> |
|
18 | 18 | |
19 | 19 | <ul class="wps-account-navigation gridw-1"> |
20 | - <li><a class="<?php echo ( 'orders' === $tab ) ? 'active' : ''; ?>" href="<?php echo esc_attr( \wpshop\Pages::g()->get_account_link() . 'orders/' ); ?>"><?php esc_html_e( 'Orders', 'wpshop' ); ?></a></li> |
|
21 | - <li><a href="<?php echo wp_logout_url(); ?>"><?php esc_html_e( 'Logout', 'wpshop' ); ?></a></li> |
|
20 | + <li><a class="<?php echo ('orders' === $tab) ? 'active' : ''; ?>" href="<?php echo esc_attr(\wpshop\Pages::g()->get_account_link() . 'orders/'); ?>"><?php esc_html_e('Orders', 'wpshop'); ?></a></li> |
|
21 | + <li><a href="<?php echo wp_logout_url(); ?>"><?php esc_html_e('Logout', 'wpshop'); ?></a></li> |
|
22 | 22 | </ul> |
@@ -16,13 +16,13 @@ |
||
16 | 16 | |
17 | 17 | namespace wpshop; |
18 | 18 | |
19 | -defined( 'ABSPATH' ) || exit; ?> |
|
19 | +defined('ABSPATH') || exit; ?> |
|
20 | 20 | |
21 | 21 | <div class="checkout-login hide"> |
22 | 22 | <div class="wpeo-button button-main button-size-large"> |
23 | - <span><?php esc_html_e( 'Returning customer? Click here to login', 'wpshop' ); ?></span> |
|
23 | + <span><?php esc_html_e('Returning customer? Click here to login', 'wpshop'); ?></span> |
|
24 | 24 | </div> |
25 | 25 | <div class="content-login" style="display: none;"> |
26 | - <?php include( \wpshop\Template_Util::get_template_part( 'my-account', 'form-login' ) ); ?> |
|
26 | + <?php include(\wpshop\Template_Util::get_template_part('my-account', 'form-login')); ?> |
|
27 | 27 | </div> |
28 | 28 | </div> |
@@ -16,6 +16,6 @@ |
||
16 | 16 | |
17 | 17 | namespace wpshop; |
18 | 18 | |
19 | -defined( 'ABSPATH' ) || exit; ?> |
|
19 | +defined('ABSPATH') || exit; ?> |
|
20 | 20 | |
21 | -<h2><?php esc_html_e( 'Login', 'wpshop' ); ?></h2> |
|
21 | +<h2><?php esc_html_e('Login', 'wpshop'); ?></h2> |
@@ -16,53 +16,53 @@ discard block |
||
16 | 16 | |
17 | 17 | namespace wpshop; |
18 | 18 | |
19 | -defined( 'ABSPATH' ) || exit; |
|
19 | +defined('ABSPATH') || exit; |
|
20 | 20 | |
21 | -if ( 'cheque' === $order->data['payment_method'] ) : |
|
21 | +if ('cheque' === $order->data['payment_method']) : |
|
22 | 22 | ?> |
23 | - <h2><?php esc_html_e( 'How to pay for your order', 'wpshop' ); ?></h2> |
|
23 | + <h2><?php esc_html_e('How to pay for your order', 'wpshop'); ?></h2> |
|
24 | 24 | <?php |
25 | - $payment_methods = get_option( 'wps_payment_methods', \wpshop\Payment::g()->default_options ); |
|
26 | - echo stripslashes( nl2br( $payment_methods['cheque']['description'] ) ); |
|
25 | + $payment_methods = get_option('wps_payment_methods', \wpshop\Payment::g()->default_options); |
|
26 | + echo stripslashes(nl2br($payment_methods['cheque']['description'])); |
|
27 | 27 | endif; |
28 | 28 | ?> |
29 | 29 | |
30 | -<h2><?php esc_html_e( 'Order detail', 'wpshop' ); ?></h2> |
|
30 | +<h2><?php esc_html_e('Order detail', 'wpshop'); ?></h2> |
|
31 | 31 | |
32 | 32 | <table class="wpeo-table"> |
33 | 33 | <thead> |
34 | 34 | <tr> |
35 | 35 | <th></th> |
36 | - <th data-title="<?php esc_html_e( 'Product name', 'wpshop' ); ?>"><?php esc_html_e( 'Product name', 'wpshop' ); ?></th> |
|
37 | - <th data-title="<?php esc_html_e( 'VAT', 'wpshop' ); ?>"><?php esc_html_e( 'VAT', 'wpshop' ); ?></th> |
|
38 | - <th data-title="<?php esc_html_e( 'P.U. HT', 'wpshop' ); ?>"><?php esc_html_e( 'P.U HT', 'wpshop' ); ?></th> |
|
39 | - <th data-title="<?php esc_html_e( 'Quantity', 'wpshop' ); ?>"><?php esc_html_e( 'Quantity', 'wpshop' ); ?></th> |
|
40 | - <th data-title="<?php esc_html_e( 'Total HT', 'wpshop' ); ?>"><?php esc_html_e( 'Total HT', 'wpshop' ); ?></th> |
|
36 | + <th data-title="<?php esc_html_e('Product name', 'wpshop'); ?>"><?php esc_html_e('Product name', 'wpshop'); ?></th> |
|
37 | + <th data-title="<?php esc_html_e('VAT', 'wpshop'); ?>"><?php esc_html_e('VAT', 'wpshop'); ?></th> |
|
38 | + <th data-title="<?php esc_html_e('P.U. HT', 'wpshop'); ?>"><?php esc_html_e('P.U HT', 'wpshop'); ?></th> |
|
39 | + <th data-title="<?php esc_html_e('Quantity', 'wpshop'); ?>"><?php esc_html_e('Quantity', 'wpshop'); ?></th> |
|
40 | + <th data-title="<?php esc_html_e('Total HT', 'wpshop'); ?>"><?php esc_html_e('Total HT', 'wpshop'); ?></th> |
|
41 | 41 | </tr> |
42 | 42 | </thead> |
43 | 43 | <tbody> |
44 | 44 | <?php |
45 | - if ( ! empty( $order->data['lines'] ) ) : |
|
46 | - foreach ( $order->data['lines'] as $line ) : |
|
45 | + if (!empty($order->data['lines'])) : |
|
46 | + foreach ($order->data['lines'] as $line) : |
|
47 | 47 | ?> |
48 | 48 | <tr> |
49 | - <td><?php echo get_the_post_thumbnail( $line['id'], array( 80, 80 ) ); ?></td> |
|
49 | + <td><?php echo get_the_post_thumbnail($line['id'], array(80, 80)); ?></td> |
|
50 | 50 | <td> |
51 | - <a href="<?php echo esc_url( get_permalink( $line['id'] ) ); ?>"> |
|
52 | - <?php echo esc_html( $line['libelle'] ); ?> |
|
51 | + <a href="<?php echo esc_url(get_permalink($line['id'])); ?>"> |
|
52 | + <?php echo esc_html($line['libelle']); ?> |
|
53 | 53 | </a> |
54 | 54 | </td> |
55 | 55 | <td> |
56 | - <?php echo esc_html( number_format( $line['tva_tx'], 2, ',', '' ) ); ?>% |
|
56 | + <?php echo esc_html(number_format($line['tva_tx'], 2, ',', '')); ?>% |
|
57 | 57 | </td> |
58 | 58 | <td> |
59 | - <?php echo esc_html( number_format( $line['price'], 2, ',', '' ) ); ?>€ |
|
59 | + <?php echo esc_html(number_format($line['price'], 2, ',', '')); ?>€ |
|
60 | 60 | </td> |
61 | 61 | <td> |
62 | - <?php echo esc_html( $line['qty'] ); ?> |
|
62 | + <?php echo esc_html($line['qty']); ?> |
|
63 | 63 | </td> |
64 | 64 | <td> |
65 | - <?php echo esc_html( number_format( $line['price'] * $line['qty'], 2, ',', '' ) ); ?>€ |
|
65 | + <?php echo esc_html(number_format($line['price'] * $line['qty'], 2, ',', '')); ?>€ |
|
66 | 66 | </td> |
67 | 67 | </tr> |
68 | 68 | <?php |
@@ -72,16 +72,16 @@ discard block |
||
72 | 72 | </tbody> |
73 | 73 | <tfoot> |
74 | 74 | <tr> |
75 | - <td colspan="5"><strong><?php esc_html_e( 'Total HT', 'wpshop' ); ?></strong></td> |
|
76 | - <td><?php echo number_format( $order->data['total_ht'], 2, ',', '' ); ?>€</td> |
|
75 | + <td colspan="5"><strong><?php esc_html_e('Total HT', 'wpshop'); ?></strong></td> |
|
76 | + <td><?php echo number_format($order->data['total_ht'], 2, ',', ''); ?>€</td> |
|
77 | 77 | </tr> |
78 | 78 | <?php |
79 | - if ( ! empty( $tva_lines ) ) : |
|
80 | - foreach ( $tva_lines as $key => $tva_line ) : |
|
79 | + if (!empty($tva_lines)) : |
|
80 | + foreach ($tva_lines as $key => $tva_line) : |
|
81 | 81 | ?> |
82 | 82 | <tr> |
83 | - <td colspan="5"><strong><?php esc_html_e( 'Total VAT', 'wpshop' ); ?> <?php echo number_format( $key, 2, ',', '' ); ?>%</strong></td> |
|
84 | - <td><?php echo number_format( $tva_line, 2, ',', '' ); ?>€</td> |
|
83 | + <td colspan="5"><strong><?php esc_html_e('Total VAT', 'wpshop'); ?> <?php echo number_format($key, 2, ',', ''); ?>%</strong></td> |
|
84 | + <td><?php echo number_format($tva_line, 2, ',', ''); ?>€</td> |
|
85 | 85 | </tr> |
86 | 86 | <?php |
87 | 87 | endforeach; |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | ?> |
90 | 90 | |
91 | 91 | <tr> |
92 | - <td colspan="5"><strong><?php esc_html_e( 'Total TTC', 'wpshop' ); ?></strong></td> |
|
93 | - <td><strong><?php echo number_format( $order->data['total_ttc'], 2, ',', '' ); ?>€</strong></td> |
|
92 | + <td colspan="5"><strong><?php esc_html_e('Total TTC', 'wpshop'); ?></strong></td> |
|
93 | + <td><strong><?php echo number_format($order->data['total_ttc'], 2, ',', ''); ?>€</strong></td> |
|
94 | 94 | </tr> |
95 | 95 | </tfoot> |
96 | 96 | </table> |
@@ -14,13 +14,13 @@ |
||
14 | 14 | |
15 | 15 | namespace wpshop; |
16 | 16 | |
17 | -defined( 'ABSPATH' ) || exit; |
|
17 | +defined('ABSPATH') || exit; |
|
18 | 18 | |
19 | 19 | ?> |
20 | 20 | <div class="wps-account-page wpeo-gridlayout grid-5"> |
21 | - <?php do_action( 'wps_account_navigation', $tab ); ?> |
|
21 | + <?php do_action('wps_account_navigation', $tab); ?> |
|
22 | 22 | |
23 | 23 | <div class="wps-account gridw-4"> |
24 | - <?php do_action( 'wps_account_' . $tab ); ?> |
|
24 | + <?php do_action('wps_account_' . $tab); ?> |
|
25 | 25 | </div> |
26 | 26 | </div> |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | namespace wpshop; |
16 | 16 | |
17 | -defined( 'ABSPATH' ) || exit; |
|
17 | +defined('ABSPATH') || exit; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Cart Filter Class. |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @since 2.0.0 |
28 | 28 | */ |
29 | 29 | public function __construct() { |
30 | - add_filter( 'wp_nav_menu_objects', array( $this, 'nav_menu_add_search' ), 10, 2 ); |
|
30 | + add_filter('wp_nav_menu_objects', array($this, 'nav_menu_add_search'), 10, 2); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -40,22 +40,22 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @return array Les items du menu avec le bouton "Panier" modifié. |
42 | 42 | */ |
43 | - public function nav_menu_add_search( $items, $args ) { |
|
43 | + public function nav_menu_add_search($items, $args) { |
|
44 | 44 | |
45 | - if ( ! empty( $items ) ) { |
|
46 | - foreach ( $items as &$item ) { |
|
47 | - if ( Pages::g()->get_cart_link() === $item->url ) { |
|
45 | + if (!empty($items)) { |
|
46 | + foreach ($items as &$item) { |
|
47 | + if (Pages::g()->get_cart_link() === $item->url) { |
|
48 | 48 | $item->classes[] = 'cart-button'; |
49 | 49 | $qty = 0; |
50 | 50 | $cart_contents = Cart_Session::g()->cart_contents; |
51 | 51 | |
52 | - if ( ! empty( $cart_contents ) ) { |
|
53 | - foreach ( $cart_contents as $content ) { |
|
52 | + if (!empty($cart_contents)) { |
|
53 | + foreach ($cart_contents as $content) { |
|
54 | 54 | $qty += $content['qty']; |
55 | 55 | } |
56 | 56 | } |
57 | 57 | |
58 | - if ( ! empty( $qty ) ) { |
|
58 | + if (!empty($qty)) { |
|
59 | 59 | $item->title .= ' <span class="qty">(<span class="qty-value">' . $qty . '</span>)</span>'; |
60 | 60 | } else { |
61 | 61 | $item->title .= ' <span class="qty"></span>'; |