@@ -16,12 +16,12 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace wpshop; |
| 18 | 18 | |
| 19 | -defined( 'ABSPATH' ) || exit; |
|
| 19 | +defined('ABSPATH') || exit; |
|
| 20 | 20 | |
| 21 | -if ( 'Cheque' === $order->mode_reglement ) : |
|
| 22 | - echo stripslashes( nl2br( $payment_methods['cheque']['description'] ) ); |
|
| 21 | +if ('Cheque' === $order->mode_reglement) : |
|
| 22 | + echo stripslashes(nl2br($payment_methods['cheque']['description'])); |
|
| 23 | 23 | endif; |
| 24 | 24 | |
| 25 | -if ( 'payment_in_shop' === $order->mode_reglement ) : |
|
| 26 | - echo stripslashes( nl2br( $payment_methods['cheque']['description'] ) ); |
|
| 25 | +if ('payment_in_shop' === $order->mode_reglement) : |
|
| 26 | + echo stripslashes(nl2br($payment_methods['cheque']['description'])); |
|
| 27 | 27 | endif; |
@@ -16,21 +16,21 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace wpshop; |
| 18 | 18 | |
| 19 | -defined( 'ABSPATH' ) || exit; |
|
| 19 | +defined('ABSPATH') || exit; |
|
| 20 | 20 | |
| 21 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 21 | +if (!defined('ABSPATH')) { |
|
| 22 | 22 | exit; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -do_action( 'wps_email_header' ); ?> |
|
| 25 | +do_action('wps_email_header'); ?> |
|
| 26 | 26 | |
| 27 | 27 | <p>Nouvelle commande admin</p> |
| 28 | 28 | |
| 29 | 29 | <?php |
| 30 | -do_action( 'wps_email_order_details' ); |
|
| 30 | +do_action('wps_email_order_details'); |
|
| 31 | 31 | |
| 32 | -do_action( 'wps_email_order_meta' ); |
|
| 32 | +do_action('wps_email_order_meta'); |
|
| 33 | 33 | |
| 34 | -do_action( 'wps_email_customer_details' ); |
|
| 34 | +do_action('wps_email_customer_details'); |
|
| 35 | 35 | |
| 36 | -do_action( 'wps_email_footer' ); |
|
| 36 | +do_action('wps_email_footer'); |
|
@@ -16,33 +16,33 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace wpshop; |
| 18 | 18 | |
| 19 | -defined( 'ABSPATH' ) || exit; |
|
| 19 | +defined('ABSPATH') || exit; |
|
| 20 | 20 | |
| 21 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 21 | +if (!defined('ABSPATH')) { |
|
| 22 | 22 | exit; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -do_action( 'wps_email_header' ); ?> |
|
| 25 | +do_action('wps_email_header'); ?> |
|
| 26 | 26 | |
| 27 | 27 | <p> |
| 28 | 28 | <?php |
| 29 | 29 | /* translators: %s: Customer first name */ |
| 30 | - printf( esc_html__( 'Hi %s,', 'wpshop' ), esc_html( $data['contact']['lastname'] . ' ' . $data['contact']['firstname'] ) ); |
|
| 30 | + printf(esc_html__('Hi %s,', 'wpshop'), esc_html($data['contact']['lastname'] . ' ' . $data['contact']['firstname'])); |
|
| 31 | 31 | ?> |
| 32 | 32 | </p> |
| 33 | 33 | |
| 34 | 34 | <p> |
| 35 | 35 | <?php |
| 36 | 36 | /* translators: %s: Order number */ |
| 37 | - printf( esc_html__( 'Your invoice %1$s for your order %2$s', 'wpshop' ), esc_html( $data['invoice']->data['title'] ), esc_html( $data['order']->data['title'] ) ); |
|
| 37 | + printf(esc_html__('Your invoice %1$s for your order %2$s', 'wpshop'), esc_html($data['invoice']->data['title']), esc_html($data['order']->data['title'])); |
|
| 38 | 38 | ?> |
| 39 | 39 | </p> |
| 40 | 40 | <?php |
| 41 | 41 | |
| 42 | -do_action( 'wps_email_invoice_details' ); |
|
| 42 | +do_action('wps_email_invoice_details'); |
|
| 43 | 43 | |
| 44 | -do_action( 'wps_email_invoice_meta' ); |
|
| 44 | +do_action('wps_email_invoice_meta'); |
|
| 45 | 45 | |
| 46 | -do_action( 'wps_email_customer_details' ); |
|
| 46 | +do_action('wps_email_customer_details'); |
|
| 47 | 47 | |
| 48 | -do_action( 'wps_email_footer' ); |
|
| 48 | +do_action('wps_email_footer'); |
|
@@ -16,29 +16,29 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace wpshop; |
| 18 | 18 | |
| 19 | -defined( 'ABSPATH' ) || exit; |
|
| 19 | +defined('ABSPATH') || exit; |
|
| 20 | 20 | |
| 21 | -do_action( 'wps_email_header' ); ?> |
|
| 21 | +do_action('wps_email_header'); ?> |
|
| 22 | 22 | |
| 23 | 23 | <p> |
| 24 | 24 | <?php |
| 25 | 25 | /* translators: %s: Customer first name */ |
| 26 | - printf( esc_html__( 'Hi %s,', 'wpshop' ), esc_html( $data['third_party']['title'] ) ); |
|
| 26 | + printf(esc_html__('Hi %s,', 'wpshop'), esc_html($data['third_party']['title'])); |
|
| 27 | 27 | ?> |
| 28 | 28 | </p> |
| 29 | 29 | <p> |
| 30 | 30 | <?php |
| 31 | 31 | /* translators: %s: Order number */ |
| 32 | - printf( esc_html__( 'Just to let you know — we\'ve received your order #%s, and it is now being processed:', 'wpshop' ), esc_html( $data['order']->ref ) ); |
|
| 32 | + printf(esc_html__('Just to let you know — we\'ve received your order #%s, and it is now being processed:', 'wpshop'), esc_html($data['order']->ref)); |
|
| 33 | 33 | ?> |
| 34 | 34 | </p> |
| 35 | 35 | |
| 36 | 36 | <?php |
| 37 | 37 | |
| 38 | -do_action( 'wps_email_order_details', $data['order'] ); |
|
| 38 | +do_action('wps_email_order_details', $data['order']); |
|
| 39 | 39 | |
| 40 | -do_action( 'wps_email_order_meta' ); |
|
| 40 | +do_action('wps_email_order_meta'); |
|
| 41 | 41 | |
| 42 | -do_action( 'wps_email_customer_details' ); |
|
| 42 | +do_action('wps_email_customer_details'); |
|
| 43 | 43 | |
| 44 | -do_action( 'wps_email_footer' ); |
|
| 44 | +do_action('wps_email_footer'); |
|
@@ -12,14 +12,14 @@ |
||
| 12 | 12 | * @since 2.0.0 |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -if ( ! empty( $invoice->data['payments'] ) ) : |
|
| 16 | - foreach ( $invoice->data['payments'] as $payment ) : |
|
| 15 | +if (!empty($invoice->data['payments'])) : |
|
| 16 | + foreach ($invoice->data['payments'] as $payment) : |
|
| 17 | 17 | ?> |
| 18 | 18 | <ul> |
| 19 | - <li><?php esc_html_e( 'Payment method', 'wpshop' ); ?> : <?php echo esc_html( $payment->data['payment_type'] ); ?></li> |
|
| 20 | - <li><?php esc_html_e( 'Payment date', 'wpshop' ); ?> : <?php echo esc_html( $payment->data['date']['rendered']['date_human_readable'] ); ?></li> |
|
| 21 | - <li><?php esc_html_e( 'Payment reference', 'wpshop' ); ?> : <?php echo esc_html( $payment->data['title'] ); ?></li> |
|
| 22 | - <li><?php esc_html_e( 'Amount', 'wpshop' ); ?> : <?php echo esc_html( $payment->data['amount'] ); ?>€</li> |
|
| 19 | + <li><?php esc_html_e('Payment method', 'wpshop'); ?> : <?php echo esc_html($payment->data['payment_type']); ?></li> |
|
| 20 | + <li><?php esc_html_e('Payment date', 'wpshop'); ?> : <?php echo esc_html($payment->data['date']['rendered']['date_human_readable']); ?></li> |
|
| 21 | + <li><?php esc_html_e('Payment reference', 'wpshop'); ?> : <?php echo esc_html($payment->data['title']); ?></li> |
|
| 22 | + <li><?php esc_html_e('Amount', 'wpshop'); ?> : <?php echo esc_html($payment->data['amount']); ?>€</li> |
|
| 23 | 23 | </ul> |
| 24 | 24 | |
| 25 | 25 | <?php |
@@ -14,26 +14,26 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | 19 | <table class="wpeo-table"> |
| 20 | 20 | <thead> |
| 21 | 21 | <tr> |
| 22 | 22 | <th><input type="checkbox" /></th> |
| 23 | - <th><?php esc_html_e( 'WP ID', 'wpshop' ); ?></th> |
|
| 24 | - <th><?php esc_html_e( 'Ref', 'wpshop' ); ?></th> |
|
| 25 | - <th><?php esc_html_e( 'Price', 'wpshop' ); ?></th> |
|
| 26 | - <?php echo apply_filters( 'wps_order_table_th', '' ); ?> |
|
| 23 | + <th><?php esc_html_e('WP ID', 'wpshop'); ?></th> |
|
| 24 | + <th><?php esc_html_e('Ref', 'wpshop'); ?></th> |
|
| 25 | + <th><?php esc_html_e('Price', 'wpshop'); ?></th> |
|
| 26 | + <?php echo apply_filters('wps_order_table_th', ''); ?> |
|
| 27 | 27 | <th></th> |
| 28 | 28 | </tr> |
| 29 | 29 | </thead> |
| 30 | 30 | <tbody> |
| 31 | 31 | <?php |
| 32 | - if ( ! empty( $proposals ) ) : |
|
| 33 | - foreach ( $proposals as $proposal ) : |
|
| 34 | - \eoxia\View_Util::exec( 'wpshop', 'doli-proposals', 'item', array( |
|
| 32 | + if (!empty($proposals)) : |
|
| 33 | + foreach ($proposals as $proposal) : |
|
| 34 | + \eoxia\View_Util::exec('wpshop', 'doli-proposals', 'item', array( |
|
| 35 | 35 | 'proposal' => $proposal, |
| 36 | - ) ); |
|
| 36 | + )); |
|
| 37 | 37 | endforeach; |
| 38 | 38 | endif; |
| 39 | 39 | ?> |
@@ -14,15 +14,15 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | 19 | <tr> |
| 20 | 20 | <td><input type="checkbox" /></td> |
| 21 | - <td><?php echo esc_html( $proposal->data['id'] ); ?></td> |
|
| 22 | - <td><?php echo esc_html( $proposal->data['title'] ); ?></td> |
|
| 23 | - <td><?php echo esc_html( $proposal->data['total_ttc'] ); ?>€</td> |
|
| 24 | - <?php apply_filters( 'wps_order_table_tr', $proposal ); ?> |
|
| 21 | + <td><?php echo esc_html($proposal->data['id']); ?></td> |
|
| 22 | + <td><?php echo esc_html($proposal->data['title']); ?></td> |
|
| 23 | + <td><?php echo esc_html($proposal->data['total_ttc']); ?>€</td> |
|
| 24 | + <?php apply_filters('wps_order_table_tr', $proposal); ?> |
|
| 25 | 25 | <td> |
| 26 | - <a href="<?php echo esc_attr( admin_url( 'post.php?post=' . $proposal->data['id'] . '&action=edit' ) ); ?>" class="wpeo-button button-square-30 button-rounded"><i class="button-icon fas fa-pencil"></i></a> |
|
| 26 | + <a href="<?php echo esc_attr(admin_url('post.php?post=' . $proposal->data['id'] . '&action=edit')); ?>" class="wpeo-button button-square-30 button-rounded"><i class="button-icon fas fa-pencil"></i></a> |
|
| 27 | 27 | </td> |
| 28 | 28 | </tr> |
@@ -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 | * PayPal Filter Class |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @since 2.0.0 |
| 28 | 28 | */ |
| 29 | 29 | public function __construct() { |
| 30 | - add_filter( 'wps_payment_method_paypal_description', array( $this, 'more_paypal_description' ) ); |
|
| 30 | + add_filter('wps_payment_method_paypal_description', array($this, 'more_paypal_description')); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
@@ -39,11 +39,11 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @return string Description modifiée. |
| 41 | 41 | */ |
| 42 | - public function more_paypal_description( $description ) { |
|
| 43 | - $paypal_options = Payment::g()->get_payment_option( 'paypal' ); |
|
| 42 | + public function more_paypal_description($description) { |
|
| 43 | + $paypal_options = Payment::g()->get_payment_option('paypal'); |
|
| 44 | 44 | |
| 45 | - if ( $paypal_options['use_paypal_sandbox'] ) { |
|
| 46 | - $description .= __( ' SANDBOX ENABLED. You can use sandbox testing accounts only. See the <a href="https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/">PayPal Sandbox Testing Guide</a> for more details.', 'wpshop' ); |
|
| 45 | + if ($paypal_options['use_paypal_sandbox']) { |
|
| 46 | + $description .= __(' SANDBOX ENABLED. You can use sandbox testing accounts only. See the <a href="https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/">PayPal Sandbox Testing Guide</a> for more details.', 'wpshop'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | return $description; |
@@ -14,12 +14,12 @@ |
||
| 14 | 14 | |
| 15 | 15 | namespace wpshop; |
| 16 | 16 | |
| 17 | -defined( 'ABSPATH' ) || exit; ?> |
|
| 17 | +defined('ABSPATH') || exit; ?> |
|
| 18 | 18 | |
| 19 | 19 | <ul class="error notice"> |
| 20 | 20 | <?php |
| 21 | - if ( ! empty( $errors->get_error_messages() ) ) : |
|
| 22 | - foreach ( $errors->get_error_messages() as $message ) : |
|
| 21 | + if (!empty($errors->get_error_messages())) : |
|
| 22 | + foreach ($errors->get_error_messages() as $message) : |
|
| 23 | 23 | ?> |
| 24 | 24 | <li><?php echo $message; ?></li> |
| 25 | 25 | <?php |