@@ -7,28 +7,28 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <div class='form-group'> |
| 15 | 15 | <label class="d-block"> |
| 16 | - <span><?php esc_html_e( 'Input Label', 'invoicing' ); ?></span> |
|
| 16 | + <span><?php esc_html_e('Input Label', 'invoicing'); ?></span> |
|
| 17 | 17 | <input v-model='active_form_element.input_label' class='form-control' type="text"/> |
| 18 | 18 | </label> |
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | 21 | <div class='form-group'> |
| 22 | 22 | <label class="d-block"> |
| 23 | - <span><?php esc_html_e( 'Button Label', 'invoicing' ); ?></span> |
|
| 23 | + <span><?php esc_html_e('Button Label', 'invoicing'); ?></span> |
|
| 24 | 24 | <input v-model='active_form_element.button_label' class='form-control' type="text"/> |
| 25 | 25 | </label> |
| 26 | 26 | </div> |
| 27 | 27 | |
| 28 | 28 | <div class='form-group'> |
| 29 | 29 | <label class="d-block"> |
| 30 | - <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span> |
|
| 31 | - <textarea placeholder='<?php esc_attr_e( 'Add some help text for this field', 'invoicing' ); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | - <small class="form-text text-muted"><?php _e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 30 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
| 31 | + <textarea placeholder='<?php esc_attr_e('Add some help text for this field', 'invoicing'); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | + <small class="form-text text-muted"><?php _e('HTML is allowed', 'invoicing'); ?></small> |
|
| 33 | 33 | </label> |
| 34 | 34 | </div> |
@@ -7,47 +7,47 @@ discard block |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <small class='form-text text-muted mb-2'> |
| 15 | - <?php esc_html_e( 'The amount that users add to this field will be added to the total amount for this form', 'invoicing' ); ?> |
|
| 15 | + <?php esc_html_e('The amount that users add to this field will be added to the total amount for this form', 'invoicing'); ?> |
|
| 16 | 16 | </small> |
| 17 | 17 | |
| 18 | 18 | <div class='form-group'> |
| 19 | 19 | <label class="d-block"> |
| 20 | - <span><?php esc_html_e( 'Field Label', 'invoicing' ); ?></span> |
|
| 20 | + <span><?php esc_html_e('Field Label', 'invoicing'); ?></span> |
|
| 21 | 21 | <input v-model='active_form_element.label' class='form-control' type="text"/> |
| 22 | 22 | </label> |
| 23 | 23 | </div> |
| 24 | 24 | |
| 25 | 25 | <div class='form-group'> |
| 26 | 26 | <label class="d-block"> |
| 27 | - <span><?php esc_html_e( 'Default Amount', 'invoicing' ); ?></span> |
|
| 27 | + <span><?php esc_html_e('Default Amount', 'invoicing'); ?></span> |
|
| 28 | 28 | <input v-model='active_form_element.value' class='form-control' type="text"/> |
| 29 | 29 | </label> |
| 30 | 30 | </div> |
| 31 | 31 | |
| 32 | 32 | <div class='form-group'> |
| 33 | 33 | <label class="d-block"> |
| 34 | - <span><?php esc_html_e( 'Minimum Amount', 'invoicing' ); ?></span> |
|
| 34 | + <span><?php esc_html_e('Minimum Amount', 'invoicing'); ?></span> |
|
| 35 | 35 | <input v-model='active_form_element.minimum' class='form-control' type="text"/> |
| 36 | 36 | </label> |
| 37 | 37 | </div> |
| 38 | 38 | |
| 39 | 39 | <div class='form-group'> |
| 40 | 40 | <label class="d-block"> |
| 41 | - <span><?php esc_html_e( 'Placeholder text', 'invoicing' ); ?></span> |
|
| 41 | + <span><?php esc_html_e('Placeholder text', 'invoicing'); ?></span> |
|
| 42 | 42 | <input v-model='active_form_element.placeholder' class='form-control' type="text"/> |
| 43 | 43 | </label> |
| 44 | 44 | </div> |
| 45 | 45 | |
| 46 | 46 | <div class='form-group'> |
| 47 | 47 | <label class="d-block"> |
| 48 | - <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span> |
|
| 49 | - <textarea placeholder='<?php esc_attr_e( 'Add some help text for this field', 'invoicing' ); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 50 | - <small class="form-text text-muted"><?php _e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 48 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
| 49 | + <textarea placeholder='<?php esc_attr_e('Add some help text for this field', 'invoicing'); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 50 | + <small class="form-text text-muted"><?php _e('HTML is allowed', 'invoicing'); ?></small> |
|
| 51 | 51 | </label> |
| 52 | 52 | </div> |
| 53 | 53 | |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | <div class='form-group'> |
| 57 | 57 | <label class="d-block"> |
| 58 | - <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span> |
|
| 58 | + <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span> |
|
| 59 | 59 | <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" /> |
| 60 | - <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span> |
|
| 60 | + <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span> |
|
| 61 | 61 | </label> |
| 62 | 62 | </div> |
| 63 | 63 | |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Uses MaxMind for Geolocation |
@@ -34,19 +34,19 @@ discard block |
||
| 34 | 34 | * @since 1.0.19 |
| 35 | 35 | * @return mixed|null The geolocation database service. |
| 36 | 36 | */ |
| 37 | - $this->database_service = apply_filters( 'getpaid_maxmind_geolocation_database_service', null ); |
|
| 38 | - if ( null === $this->database_service ) { |
|
| 39 | - $this->database_service = new GetPaid_MaxMind_Database_Service( $this->get_database_prefix() ); |
|
| 37 | + $this->database_service = apply_filters('getpaid_maxmind_geolocation_database_service', null); |
|
| 38 | + if (null === $this->database_service) { |
|
| 39 | + $this->database_service = new GetPaid_MaxMind_Database_Service($this->get_database_prefix()); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // Bind to the scheduled updater action. |
| 43 | - add_action( 'getpaid_update_geoip_databases', array( $this, 'update_database' ) ); |
|
| 43 | + add_action('getpaid_update_geoip_databases', array($this, 'update_database')); |
|
| 44 | 44 | |
| 45 | 45 | // Bind to the geolocation filter for MaxMind database lookups. |
| 46 | - add_filter( 'getpaid_get_geolocation', array( $this, 'get_geolocation' ), 10, 2 ); |
|
| 46 | + add_filter('getpaid_get_geolocation', array($this, 'get_geolocation'), 10, 2); |
|
| 47 | 47 | |
| 48 | 48 | // Handle maxmind key updates. |
| 49 | - add_filter( 'wpinv_settings_sanitize_maxmind_license_key', array( $this, 'handle_key_updates' ) ); |
|
| 49 | + add_filter('wpinv_settings_sanitize_maxmind_license_key', array($this, 'handle_key_updates')); |
|
| 50 | 50 | |
| 51 | 51 | } |
| 52 | 52 | |
@@ -65,29 +65,29 @@ discard block |
||
| 65 | 65 | * @param string $license_key The new license key. |
| 66 | 66 | * @return string |
| 67 | 67 | */ |
| 68 | - public function handle_key_updates( $license_key ) { |
|
| 68 | + public function handle_key_updates($license_key) { |
|
| 69 | 69 | |
| 70 | 70 | // Trim whitespaces and strip slashes. |
| 71 | - $license_key = trim( $license_key ); |
|
| 71 | + $license_key = trim($license_key); |
|
| 72 | 72 | |
| 73 | 73 | // Abort if the license key is empty or unchanged. |
| 74 | - if ( empty( $license_key ) ) { |
|
| 74 | + if (empty($license_key)) { |
|
| 75 | 75 | return $license_key; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | // Abort if a database exists and the license key is unchaged. |
| 79 | - if ( file_exists( $this->database_service->get_database_path() && $license_key == wpinv_get_option( 'maxmind_license_key' ) ) ) { |
|
| 79 | + if (file_exists($this->database_service->get_database_path() && $license_key == wpinv_get_option('maxmind_license_key'))) { |
|
| 80 | 80 | return $license_key; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | // Check the license key by attempting to download the Geolocation database. |
| 84 | - $tmp_database_path = $this->database_service->download_database( $license_key ); |
|
| 85 | - if ( is_wp_error( $tmp_database_path ) ) { |
|
| 86 | - getpaid_admin()->show_error( $tmp_database_path->get_error_message() ); |
|
| 84 | + $tmp_database_path = $this->database_service->download_database($license_key); |
|
| 85 | + if (is_wp_error($tmp_database_path)) { |
|
| 86 | + getpaid_admin()->show_error($tmp_database_path->get_error_message()); |
|
| 87 | 87 | return $license_key; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - $this->update_database( /** @scrutinizer ignore-type */ $tmp_database_path ); |
|
| 90 | + $this->update_database(/** @scrutinizer ignore-type */ $tmp_database_path); |
|
| 91 | 91 | |
| 92 | 92 | return $license_key; |
| 93 | 93 | } |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * |
| 98 | 98 | * @param string $tmp_database_path Temporary database path. |
| 99 | 99 | */ |
| 100 | - public function update_database( $tmp_database_path = null ) { |
|
| 100 | + public function update_database($tmp_database_path = null) { |
|
| 101 | 101 | |
| 102 | 102 | // Allow us to easily interact with the filesystem. |
| 103 | 103 | require_once ABSPATH . 'wp-admin/includes/file.php'; |
@@ -108,32 +108,32 @@ discard block |
||
| 108 | 108 | $target_database_path = $this->database_service->get_database_path(); |
| 109 | 109 | |
| 110 | 110 | // If there's no database path, we can't store the database. |
| 111 | - if ( empty( $target_database_path ) ) { |
|
| 111 | + if (empty($target_database_path)) { |
|
| 112 | 112 | return; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - if ( $wp_filesystem->exists( $target_database_path ) ) { |
|
| 116 | - $wp_filesystem->delete( $target_database_path ); |
|
| 115 | + if ($wp_filesystem->exists($target_database_path)) { |
|
| 116 | + $wp_filesystem->delete($target_database_path); |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | // We can't download a database if there's no license key configured. |
| 120 | - $license_key = wpinv_get_option( 'maxmind_license_key' ); |
|
| 121 | - if ( empty( $license_key ) ) { |
|
| 120 | + $license_key = wpinv_get_option('maxmind_license_key'); |
|
| 121 | + if (empty($license_key)) { |
|
| 122 | 122 | return; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - if ( empty( $tmp_database_path ) ) { |
|
| 126 | - $tmp_database_path = $this->database_service->download_database( $license_key ); |
|
| 125 | + if (empty($tmp_database_path)) { |
|
| 126 | + $tmp_database_path = $this->database_service->download_database($license_key); |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | - if ( is_wp_error( $tmp_database_path ) ) { |
|
| 130 | - wpinv_error_log( $tmp_database_path->get_error_message() ); |
|
| 129 | + if (is_wp_error($tmp_database_path)) { |
|
| 130 | + wpinv_error_log($tmp_database_path->get_error_message()); |
|
| 131 | 131 | return; |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | // Move the new database into position. |
| 135 | - $wp_filesystem->move( $tmp_database_path, $target_database_path, true ); |
|
| 136 | - $wp_filesystem->delete( dirname( $tmp_database_path ) ); |
|
| 135 | + $wp_filesystem->move($tmp_database_path, $target_database_path, true); |
|
| 136 | + $wp_filesystem->delete(dirname($tmp_database_path)); |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
@@ -143,13 +143,13 @@ discard block |
||
| 143 | 143 | * @param string $ip_address The IP address to geolocate. |
| 144 | 144 | * @return array Geolocation including country code, state, city and postcode based on an IP address. |
| 145 | 145 | */ |
| 146 | - public function get_geolocation( $data, $ip_address ) { |
|
| 146 | + public function get_geolocation($data, $ip_address) { |
|
| 147 | 147 | |
| 148 | - if ( ! empty( $data['country'] ) || empty( $ip_address ) ) { |
|
| 148 | + if (!empty($data['country']) || empty($ip_address)) { |
|
| 149 | 149 | return $data; |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | - $country_code = $this->database_service->get_iso_country_code_for_ip( $ip_address ); |
|
| 152 | + $country_code = $this->database_service->get_iso_country_code_for_ip($ip_address); |
|
| 153 | 153 | |
| 154 | 154 | return array( |
| 155 | 155 | 'country' => $country_code, |
@@ -167,11 +167,11 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | private function get_database_prefix() { |
| 169 | 169 | |
| 170 | - $prefix = get_option( 'wpinv_maxmind_database_prefix' ); |
|
| 170 | + $prefix = get_option('wpinv_maxmind_database_prefix'); |
|
| 171 | 171 | |
| 172 | - if ( empty( $prefix ) ) { |
|
| 173 | - $prefix = md5( uniqid( 'wpinv' ) ); |
|
| 174 | - update_option( 'wpinv_maxmind_database_prefix', $prefix ); |
|
| 172 | + if (empty($prefix)) { |
|
| 173 | + $prefix = md5(uniqid('wpinv')); |
|
| 174 | + update_option('wpinv_maxmind_database_prefix', $prefix); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | return $prefix; |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | * |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 10 | +if (!defined('ABSPATH')) { |
|
| 11 | 11 | exit; // Exit if accessed directly |
| 12 | 12 | } |
| 13 | 13 | |
@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @param WP_Post $post |
| 23 | 23 | */ |
| 24 | - public static function output( $post ) { |
|
| 24 | + public static function output($post) { |
|
| 25 | 25 | |
| 26 | 26 | // Prepare the invoice. |
| 27 | - $invoice = new WPInv_Invoice( $post ); |
|
| 27 | + $invoice = new WPInv_Invoice($post); |
|
| 28 | 28 | |
| 29 | 29 | // Nonce field. |
| 30 | - wp_nonce_field( 'wpinv_details', 'wpinv_details_nonce' ) ; |
|
| 30 | + wp_nonce_field('wpinv_details', 'wpinv_details_nonce'); |
|
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | ?> |
@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | <div class="bsui" style="margin-top: 1.5rem"> |
| 48 | 48 | |
| 49 | - <?php do_action( 'getpaid_invoice_edit_before_viewed_by_customer', $invoice ); ?> |
|
| 50 | - <?php if ( ! $invoice->is_draft() ) : ?> |
|
| 49 | + <?php do_action('getpaid_invoice_edit_before_viewed_by_customer', $invoice); ?> |
|
| 50 | + <?php if (!$invoice->is_draft()) : ?> |
|
| 51 | 51 | <div class="form-group"> |
| 52 | - <strong><?php _e( 'Viewed by Customer:', 'invoicing' );?></strong> |
|
| 53 | - <?php ( $invoice->get_is_viewed() ) ? _e( 'Yes', 'invoicing' ) : _e( 'No', 'invoicing' ); ?> |
|
| 52 | + <strong><?php _e('Viewed by Customer:', 'invoicing'); ?></strong> |
|
| 53 | + <?php ($invoice->get_is_viewed()) ? _e('Yes', 'invoicing') : _e('No', 'invoicing'); ?> |
|
| 54 | 54 | </div> |
| 55 | 55 | <?php endif; ?> |
| 56 | 56 | |
@@ -58,13 +58,13 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | // Date created. |
| 60 | 60 | $label = sprintf( |
| 61 | - __( '%s Date:', 'invoicing' ), |
|
| 62 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 61 | + __('%s Date:', 'invoicing'), |
|
| 62 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 63 | 63 | ); |
| 64 | 64 | |
| 65 | - $info = sprintf( |
|
| 66 | - __( 'The date this %s was created.', 'invoicing' ), |
|
| 67 | - strtolower( $invoice->get_invoice_quote_type() ) |
|
| 65 | + $info = sprintf( |
|
| 66 | + __('The date this %s was created.', 'invoicing'), |
|
| 67 | + strtolower($invoice->get_invoice_quote_type()) |
|
| 68 | 68 | ); |
| 69 | 69 | |
| 70 | 70 | echo aui()->input( |
@@ -72,11 +72,11 @@ discard block |
||
| 72 | 72 | 'type' => 'datepicker', |
| 73 | 73 | 'id' => 'wpinv_date_created', |
| 74 | 74 | 'name' => 'date_created', |
| 75 | - 'label' => $label . getpaid_get_help_tip( $info ), |
|
| 75 | + 'label' => $label . getpaid_get_help_tip($info), |
|
| 76 | 76 | 'label_type' => 'vertical', |
| 77 | 77 | 'placeholder' => 'YYYY-MM-DD 00:00', |
| 78 | 78 | 'class' => 'form-control-sm', |
| 79 | - 'value' => $invoice->get_date_created( 'edit' ), |
|
| 79 | + 'value' => $invoice->get_date_created('edit'), |
|
| 80 | 80 | 'extra_attributes' => array( |
| 81 | 81 | 'data-enable-time' => 'true', |
| 82 | 82 | 'data-time_24hr' => 'true', |
@@ -87,15 +87,15 @@ discard block |
||
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | // Date paid. |
| 90 | - $date_paid = $invoice->get_date_completed( 'edit' ); |
|
| 91 | - if ( ! empty( $date_paid ) && $invoice->is_paid() ) { |
|
| 90 | + $date_paid = $invoice->get_date_completed('edit'); |
|
| 91 | + if (!empty($date_paid) && $invoice->is_paid()) { |
|
| 92 | 92 | |
| 93 | 93 | echo aui()->input( |
| 94 | 94 | array( |
| 95 | 95 | 'type' => 'text', |
| 96 | 96 | 'id' => 'wpinv_date_completed', |
| 97 | 97 | 'name' => 'wpinv_date_completed', |
| 98 | - 'label' => __( 'Date Completed:', 'invoicing' ), |
|
| 98 | + 'label' => __('Date Completed:', 'invoicing'), |
|
| 99 | 99 | 'label_type' => 'vertical', |
| 100 | 100 | 'class' => 'form-control-sm', |
| 101 | 101 | 'value' => $date_paid, |
@@ -105,18 +105,18 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | // Due date. |
| 108 | - if ( $invoice->is_type( 'invoice' ) && wpinv_get_option( 'overdue_active' ) && ( ! $invoice->is_paid() || $invoice->is_draft() ) ) { |
|
| 108 | + if ($invoice->is_type('invoice') && wpinv_get_option('overdue_active') && (!$invoice->is_paid() || $invoice->is_draft())) { |
|
| 109 | 109 | |
| 110 | 110 | echo aui()->input( |
| 111 | 111 | array( |
| 112 | 112 | 'type' => 'datepicker', |
| 113 | 113 | 'id' => 'wpinv_due_date', |
| 114 | 114 | 'name' => 'wpinv_due_date', |
| 115 | - 'label' => __( 'Due Date:', 'invoicing' ) . getpaid_get_help_tip( __( 'Leave blank to disable automated reminder emails for this invoice.', 'invoicing' ) ), |
|
| 115 | + 'label' => __('Due Date:', 'invoicing') . getpaid_get_help_tip(__('Leave blank to disable automated reminder emails for this invoice.', 'invoicing')), |
|
| 116 | 116 | 'label_type' => 'vertical', |
| 117 | - 'placeholder' => __( 'No due date', 'invoicing' ), |
|
| 117 | + 'placeholder' => __('No due date', 'invoicing'), |
|
| 118 | 118 | 'class' => 'form-control-sm', |
| 119 | - 'value' => $invoice->get_due_date( 'edit' ), |
|
| 119 | + 'value' => $invoice->get_due_date('edit'), |
|
| 120 | 120 | 'extra_attributes' => array( |
| 121 | 121 | 'data-enable-time' => 'true', |
| 122 | 122 | 'data-time_24hr' => 'true', |
@@ -128,39 +128,39 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - do_action( 'wpinv_meta_box_details_after_due_date', $invoice->get_id() ); |
|
| 132 | - do_action( 'getpaid_metabox_after_due_date', $invoice ); |
|
| 131 | + do_action('wpinv_meta_box_details_after_due_date', $invoice->get_id()); |
|
| 132 | + do_action('getpaid_metabox_after_due_date', $invoice); |
|
| 133 | 133 | |
| 134 | 134 | // Status. |
| 135 | 135 | $label = sprintf( |
| 136 | - __( '%s Status:', 'invoicing' ), |
|
| 137 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 136 | + __('%s Status:', 'invoicing'), |
|
| 137 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 138 | 138 | ); |
| 139 | 139 | |
| 140 | - $status = $invoice->get_status( 'edit' ); |
|
| 140 | + $status = $invoice->get_status('edit'); |
|
| 141 | 141 | echo aui()->select( |
| 142 | 142 | array( |
| 143 | 143 | 'id' => 'wpinv_status', |
| 144 | 144 | 'name' => 'wpinv_status', |
| 145 | 145 | 'label' => $label, |
| 146 | 146 | 'label_type' => 'vertical', |
| 147 | - 'placeholder' => __( 'Select Status', 'invoicing' ), |
|
| 148 | - 'value' => array_key_exists( $status, $invoice->get_all_statuses() ) ? $status : $invoice->get_default_status(), |
|
| 147 | + 'placeholder' => __('Select Status', 'invoicing'), |
|
| 148 | + 'value' => array_key_exists($status, $invoice->get_all_statuses()) ? $status : $invoice->get_default_status(), |
|
| 149 | 149 | 'select2' => true, |
| 150 | 150 | 'data-allow-clear' => 'false', |
| 151 | - 'options' => wpinv_get_invoice_statuses( true, false, $invoice ) |
|
| 151 | + 'options' => wpinv_get_invoice_statuses(true, false, $invoice) |
|
| 152 | 152 | ) |
| 153 | 153 | ); |
| 154 | 154 | |
| 155 | 155 | // Invoice number. |
| 156 | 156 | $label = sprintf( |
| 157 | - __( '%s Number:', 'invoicing' ), |
|
| 158 | - ucfirst( $invoice->get_invoice_quote_type() ) |
|
| 157 | + __('%s Number:', 'invoicing'), |
|
| 158 | + ucfirst($invoice->get_invoice_quote_type()) |
|
| 159 | 159 | ); |
| 160 | 160 | |
| 161 | - $info = sprintf( |
|
| 162 | - __( 'Each %s number must be unique.', 'invoicing' ), |
|
| 163 | - strtolower( $invoice->get_invoice_quote_type() ) |
|
| 161 | + $info = sprintf( |
|
| 162 | + __('Each %s number must be unique.', 'invoicing'), |
|
| 163 | + strtolower($invoice->get_invoice_quote_type()) |
|
| 164 | 164 | ); |
| 165 | 165 | |
| 166 | 166 | echo aui()->input( |
@@ -168,11 +168,11 @@ discard block |
||
| 168 | 168 | 'type' => 'text', |
| 169 | 169 | 'id' => 'wpinv_number', |
| 170 | 170 | 'name' => 'wpinv_number', |
| 171 | - 'label' => $label . getpaid_get_help_tip( $info ), |
|
| 171 | + 'label' => $label . getpaid_get_help_tip($info), |
|
| 172 | 172 | 'label_type' => 'vertical', |
| 173 | - 'placeholder' => __( 'Autogenerate', 'invoicing' ), |
|
| 173 | + 'placeholder' => __('Autogenerate', 'invoicing'), |
|
| 174 | 174 | 'class' => 'form-control-sm', |
| 175 | - 'value' => $invoice->get_number( 'edit' ), |
|
| 175 | + 'value' => $invoice->get_number('edit'), |
|
| 176 | 176 | ) |
| 177 | 177 | ); |
| 178 | 178 | |
@@ -182,15 +182,15 @@ discard block |
||
| 182 | 182 | 'type' => 'text', |
| 183 | 183 | 'id' => 'wpinv_cc', |
| 184 | 184 | 'name' => 'wpinv_cc', |
| 185 | - 'label' => __( 'Email CC:', 'invoicing' ) . getpaid_get_help_tip( __( 'Enter a comma separated list of other emails that should be notified about the invoice.', 'invoicing' ) ), |
|
| 185 | + 'label' => __('Email CC:', 'invoicing') . getpaid_get_help_tip(__('Enter a comma separated list of other emails that should be notified about the invoice.', 'invoicing')), |
|
| 186 | 186 | 'label_type' => 'vertical', |
| 187 | - 'placeholder' => __( '[email protected], [email protected]', 'invoicing' ), |
|
| 187 | + 'placeholder' => __('[email protected], [email protected]', 'invoicing'), |
|
| 188 | 188 | 'class' => 'form-control-sm', |
| 189 | - 'value' => $invoice->get_email_cc( 'edit' ), |
|
| 189 | + 'value' => $invoice->get_email_cc('edit'), |
|
| 190 | 190 | ) |
| 191 | 191 | ); |
| 192 | 192 | |
| 193 | - if ( ! $invoice->is_paid() && ! $invoice->is_refunded() ) { |
|
| 193 | + if (!$invoice->is_paid() && !$invoice->is_refunded()) { |
|
| 194 | 194 | |
| 195 | 195 | // Apply a discount. |
| 196 | 196 | echo aui()->input( |
@@ -198,25 +198,25 @@ discard block |
||
| 198 | 198 | 'type' => 'text', |
| 199 | 199 | 'id' => 'wpinv_discount_code', |
| 200 | 200 | 'name' => 'wpinv_discount_code', |
| 201 | - 'label' => __( 'Discount Code:', 'invoicing' ), |
|
| 202 | - 'placeholder' => __( 'Apply Discount', 'invoicing' ), |
|
| 201 | + 'label' => __('Discount Code:', 'invoicing'), |
|
| 202 | + 'placeholder' => __('Apply Discount', 'invoicing'), |
|
| 203 | 203 | 'label_type' => 'vertical', |
| 204 | 204 | 'class' => 'form-control-sm getpaid-recalculate-prices-on-change', |
| 205 | - 'value' => $invoice->get_discount_code( 'edit' ), |
|
| 205 | + 'value' => $invoice->get_discount_code('edit'), |
|
| 206 | 206 | ) |
| 207 | 207 | ); |
| 208 | 208 | |
| 209 | - } else if ( $invoice->get_discount_code( 'edit' ) ) { |
|
| 209 | + } else if ($invoice->get_discount_code('edit')) { |
|
| 210 | 210 | |
| 211 | 211 | echo aui()->input( |
| 212 | 212 | array( |
| 213 | 213 | 'type' => 'text', |
| 214 | 214 | 'id' => 'wpinv_discount_code', |
| 215 | 215 | 'name' => 'wpinv_discount_code', |
| 216 | - 'label' => __( 'Discount Code:', 'invoicing' ), |
|
| 216 | + 'label' => __('Discount Code:', 'invoicing'), |
|
| 217 | 217 | 'label_type' => 'vertical', |
| 218 | 218 | 'class' => 'form-control-sm', |
| 219 | - 'value' => $invoice->get_discount_code( 'edit' ), |
|
| 219 | + 'value' => $invoice->get_discount_code('edit'), |
|
| 220 | 220 | 'extra_attributes' => array( |
| 221 | 221 | 'onclick' => 'this.select();', |
| 222 | 222 | 'readonly' => 'true', |
@@ -226,17 +226,17 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | - do_action( 'wpinv_meta_box_details_inner', $invoice->get_id() ); |
|
| 229 | + do_action('wpinv_meta_box_details_inner', $invoice->get_id()); |
|
| 230 | 230 | |
| 231 | 231 | // Disable taxes. |
| 232 | - if ( wpinv_use_taxes() && ! ( $invoice->is_paid() || $invoice->is_refunded() ) ) { |
|
| 232 | + if (wpinv_use_taxes() && !($invoice->is_paid() || $invoice->is_refunded())) { |
|
| 233 | 233 | |
| 234 | 234 | echo aui()->input( |
| 235 | 235 | array( |
| 236 | 236 | 'id' => 'wpinv_taxable', |
| 237 | 237 | 'name' => 'disable_taxes', |
| 238 | 238 | 'type' => 'checkbox', |
| 239 | - 'label' => __( 'Disable taxes', 'invoicing' ), |
|
| 239 | + 'label' => __('Disable taxes', 'invoicing'), |
|
| 240 | 240 | 'value' => '1', |
| 241 | 241 | 'checked' => (bool) $invoice->get_disable_taxes(), |
| 242 | 242 | 'class' => 'getpaid-recalculate-prices-on-change', |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | - if ( $invoice->is_type( 'invoice' ) ) { |
|
| 248 | + if ($invoice->is_type('invoice')) { |
|
| 249 | 249 | |
| 250 | 250 | // Send to customer. |
| 251 | 251 | echo aui()->input( |
@@ -253,15 +253,15 @@ discard block |
||
| 253 | 253 | 'id' => 'wpinv_send_to_customer', |
| 254 | 254 | 'name' => 'send_to_customer', |
| 255 | 255 | 'type' => 'checkbox', |
| 256 | - 'label' => __( 'Send invoice to customer after saving', 'invoicing' ), |
|
| 256 | + 'label' => __('Send invoice to customer after saving', 'invoicing'), |
|
| 257 | 257 | 'value' => '1', |
| 258 | - 'checked' => $invoice->is_draft() && (bool) wpinv_get_option( 'email_user_invoice_active', true ), |
|
| 258 | + 'checked' => $invoice->is_draft() && (bool) wpinv_get_option('email_user_invoice_active', true), |
|
| 259 | 259 | ) |
| 260 | 260 | ); |
| 261 | 261 | |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | - do_action( 'getpaid_metabox_after_invoice_details', $invoice ); |
|
| 264 | + do_action('getpaid_metabox_after_invoice_details', $invoice); |
|
| 265 | 265 | |
| 266 | 266 | ?> |
| 267 | 267 | |
@@ -4,68 +4,68 @@ |
||
| 4 | 4 | * |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | -defined( 'ABSPATH' ) || exit; |
|
| 7 | +defined('ABSPATH') || exit; |
|
| 8 | 8 | |
| 9 | 9 | ?> |
| 10 | 10 | |
| 11 | 11 | <div class="card shadow-sm my-5"> |
| 12 | 12 | <div class="text-center card-body"> |
| 13 | - <h1 class="h3"><?php esc_html_e( 'Awesome, you are ready to Get Paid', 'invoicing' ); ?></h1> |
|
| 13 | + <h1 class="h3"><?php esc_html_e('Awesome, you are ready to Get Paid', 'invoicing'); ?></h1> |
|
| 14 | 14 | |
| 15 | 15 | <div class="geodirectory-message geodirectory-tracker"> |
| 16 | - <p><?php _e( 'Thank you for choosing GetPaid!', 'invoicing' ); ?> <i class="far fa-smile-beam"></i></p> |
|
| 16 | + <p><?php _e('Thank you for choosing GetPaid!', 'invoicing'); ?> <i class="far fa-smile-beam"></i></p> |
|
| 17 | 17 | </div> |
| 18 | 18 | |
| 19 | 19 | <div class="gp-setup-next-steps"> |
| 20 | 20 | <div class="gp-setup-next-steps-first mb-4"> |
| 21 | 21 | <div> |
| 22 | - <h2 class="h3"><i class="fas fa-arrow-down"></i> <?php esc_html_e( 'Watch This', 'invoicing' ); ?> <i class="fas fa-arrow-down"></i></h2> |
|
| 22 | + <h2 class="h3"><i class="fas fa-arrow-down"></i> <?php esc_html_e('Watch This', 'invoicing'); ?> <i class="fas fa-arrow-down"></i></h2> |
|
| 23 | 23 | <div class="embed-responsive embed-responsive-16by9 mb-4"> |
| 24 | 24 | <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/TXZuPXHjt9E?rel=0" allowfullscreen></iframe> |
| 25 | 25 | </div> |
| 26 | 26 | </div> |
| 27 | - <h2 class="h3"><?php esc_html_e( 'Next steps', 'invoicing' ); ?></h2> |
|
| 27 | + <h2 class="h3"><?php esc_html_e('Next steps', 'invoicing'); ?></h2> |
|
| 28 | 28 | |
| 29 | 29 | <div class="d-flex justify-content-between"> |
| 30 | 30 | <a |
| 31 | 31 | class="btn btn-outline-primary btn-sm" |
| 32 | - href="<?php echo esc_url( admin_url( 'post-new.php?post_type=wpi_item' ) ); ?>"> |
|
| 32 | + href="<?php echo esc_url(admin_url('post-new.php?post_type=wpi_item')); ?>"> |
|
| 33 | 33 | <span class="h1 d-block"><i class="fas fa-box-open"></i></span> |
| 34 | - <?php esc_html_e( 'Create Item', 'invoicing' ); ?> |
|
| 34 | + <?php esc_html_e('Create Item', 'invoicing'); ?> |
|
| 35 | 35 | </a> |
| 36 | 36 | <a |
| 37 | 37 | class="btn btn-outline-primary btn-sm" |
| 38 | - href="<?php echo esc_url( admin_url( 'post-new.php?post_type=wpi_payment_form' ) ); ?>"> |
|
| 38 | + href="<?php echo esc_url(admin_url('post-new.php?post_type=wpi_payment_form')); ?>"> |
|
| 39 | 39 | <span class="h1 d-block"><i class="fas fa-align-justify"></i></span> |
| 40 | - <?php esc_html_e( 'Create Payment Form', 'invoicing' ); ?> |
|
| 40 | + <?php esc_html_e('Create Payment Form', 'invoicing'); ?> |
|
| 41 | 41 | </a> |
| 42 | 42 | <a |
| 43 | 43 | class="btn btn-outline-primary btn-sm" |
| 44 | - href="<?php echo esc_url( admin_url( 'post-new.php?post_type=wpi_invoice' ) ); ?>"> |
|
| 44 | + href="<?php echo esc_url(admin_url('post-new.php?post_type=wpi_invoice')); ?>"> |
|
| 45 | 45 | <span class="h1 d-block"><i class="fas fa-file-alt"></i></span> |
| 46 | - <?php esc_html_e( 'Create Invoice', 'invoicing' ); ?> |
|
| 46 | + <?php esc_html_e('Create Invoice', 'invoicing'); ?> |
|
| 47 | 47 | </a> |
| 48 | 48 | </div> |
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | |
| 52 | - <h2 class="h3 mt-4"><?php _e( 'Learn more', 'invoicing' ); ?></h2> |
|
| 52 | + <h2 class="h3 mt-4"><?php _e('Learn more', 'invoicing'); ?></h2> |
|
| 53 | 53 | <div class="gp-setup-next-steps-last mt-2 d-flex justify-content-between"> |
| 54 | 54 | <a |
| 55 | 55 | class="btn btn-outline-primary btn-sm" href="https://docs.wpgetpaid.com/collection/114-getting-started?utm_source=setupwizard&utm_medium=product&utm_content=getting-started&utm_campaign=invoicingplugin" |
| 56 | - target="_blank"><?php esc_html_e( 'Getting Started', 'invoicing' ); ?></a> |
|
| 56 | + target="_blank"><?php esc_html_e('Getting Started', 'invoicing'); ?></a> |
|
| 57 | 57 | <a |
| 58 | 58 | class="btn btn-outline-primary btn-sm" |
| 59 | 59 | href="https://docs.wpgetpaid.com/?utm_source=setupwizard&utm_medium=product&utm_content=docs&utm_campaign=invoicingplugin" |
| 60 | - target="_blank"><?php esc_html_e( 'Documentation', 'invoicing' ); ?></a> |
|
| 60 | + target="_blank"><?php esc_html_e('Documentation', 'invoicing'); ?></a> |
|
| 61 | 61 | <a |
| 62 | 62 | class="btn btn-outline-primary btn-sm" |
| 63 | 63 | href="https://wpgetpaid.com/support/?utm_source=setupwizard&utm_medium=product&utm_content=docs&utm_campaign=invoicingyplugin" |
| 64 | - target="_blank"><?php esc_html_e( 'Support', 'invoicing' ); ?></a> |
|
| 64 | + target="_blank"><?php esc_html_e('Support', 'invoicing'); ?></a> |
|
| 65 | 65 | <a |
| 66 | 66 | class="btn btn-outline-primary btn-sm" |
| 67 | 67 | href="https://demos.ayecode.io/getpaid/?utm_source=setupwizard&utm_medium=product&utm_content=demos&utm_campaign=invoicingyplugin" |
| 68 | - target="_blank"><?php esc_html_e( 'Demos', 'invoicing' ); ?></a> |
|
| 68 | + target="_blank"><?php esc_html_e('Demos', 'invoicing'); ?></a> |
|
| 69 | 69 | </div> |
| 70 | 70 | </div> |
| 71 | 71 | </div> |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | * Tested up to: 5.8 |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 17 | +if (!defined('ABSPATH')) { |
|
| 18 | 18 | exit; |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | -if ( ! class_exists( 'AyeCode_Deactivation_Survey' ) ) { |
|
| 21 | +if (!class_exists('AyeCode_Deactivation_Survey')) { |
|
| 22 | 22 | // include the class if needed |
| 23 | - include_once( dirname( __FILE__ ) . "/wp-deactivation-survey.php" ); |
|
| 23 | + include_once(dirname(__FILE__) . "/wp-deactivation-survey.php"); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | |
@@ -7,33 +7,33 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <div class='form-group'> |
| 15 | 15 | <label class="d-block"> |
| 16 | - <span><?php esc_html_e( 'Field Label', 'invoicing' ); ?></span> |
|
| 16 | + <span><?php esc_html_e('Field Label', 'invoicing'); ?></span> |
|
| 17 | 17 | <input v-model='active_form_element.label' class='form-control' type="text"/> |
| 18 | 18 | </label> |
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | 21 | <div class='form-group'> |
| 22 | 22 | <label class="d-block"> |
| 23 | - <span><?php esc_html_e( 'Placeholder text', 'invoicing' ); ?></span> |
|
| 23 | + <span><?php esc_html_e('Placeholder text', 'invoicing'); ?></span> |
|
| 24 | 24 | <input v-model='active_form_element.placeholder' class='form-control' type="text"/> |
| 25 | 25 | </label> |
| 26 | 26 | </div> |
| 27 | 27 | |
| 28 | 28 | <div class='form-group'> |
| 29 | 29 | <label class="d-block"> |
| 30 | - <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span> |
|
| 31 | - <textarea placeholder='<?php esc_attr_e( 'Add some help text for this field', 'invoicing' ); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | - <small class="form-text text-muted"><?php _e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 30 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
| 31 | + <textarea placeholder='<?php esc_attr_e('Add some help text for this field', 'invoicing'); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | + <small class="form-text text-muted"><?php _e('HTML is allowed', 'invoicing'); ?></small> |
|
| 33 | 33 | </label> |
| 34 | 34 | </div> |
| 35 | 35 | |
| 36 | 36 | <div class='form-group form-check'> |
| 37 | 37 | <input :id="active_form_element.id + '_edit_hide'" v-model='active_form_element.hide_billing_email' type='checkbox' class='form-check-input' /> |
| 38 | - <label class='form-check-label' :for="active_form_element.id + '_edit_hide'"><?php esc_html_e( 'Hide if the user is logged in', 'invoicing' ); ?></label> |
|
| 38 | + <label class='form-check-label' :for="active_form_element.id + '_edit_hide'"><?php esc_html_e('Hide if the user is logged in', 'invoicing'); ?></label> |
|
| 39 | 39 | </div> |
@@ -7,49 +7,49 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <div class='form-group'> |
| 15 | 15 | <label class="d-block"> |
| 16 | - <span><?php esc_html_e( 'Field Label', 'invoicing' ); ?></span> |
|
| 16 | + <span><?php esc_html_e('Field Label', 'invoicing'); ?></span> |
|
| 17 | 17 | <input v-model='active_form_element.label' class='form-control' type="text"/> |
| 18 | 18 | </label> |
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | 21 | <div class='form-group'> |
| 22 | 22 | <label class="d-block"> |
| 23 | - <span><?php esc_html_e( 'Placeholder text', 'invoicing' ); ?></span> |
|
| 23 | + <span><?php esc_html_e('Placeholder text', 'invoicing'); ?></span> |
|
| 24 | 24 | <input v-model='active_form_element.placeholder' class='form-control' type="text"/> |
| 25 | 25 | </label> |
| 26 | 26 | </div> |
| 27 | 27 | |
| 28 | 28 | <div class='form-group'> |
| 29 | 29 | <label class="d-block"> |
| 30 | - <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span> |
|
| 31 | - <textarea placeholder='<?php esc_attr_e( 'Add some help text for this field', 'invoicing' ); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | - <small class="form-text text-muted"><?php _e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 30 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
| 31 | + <textarea placeholder='<?php esc_attr_e('Add some help text for this field', 'invoicing'); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | + <small class="form-text text-muted"><?php _e('HTML is allowed', 'invoicing'); ?></small> |
|
| 33 | 33 | </label> |
| 34 | 34 | </div> |
| 35 | 35 | |
| 36 | 36 | <div class='form-group form-check'> |
| 37 | 37 | <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' /> |
| 38 | - <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label> |
|
| 38 | + <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label> |
|
| 39 | 39 | </div> |
| 40 | 40 | |
| 41 | 41 | <div class='form-group form-check'> |
| 42 | 42 | <input :id="active_form_element.id + '_add_meta'" v-model='active_form_element.add_meta' type='checkbox' class='form-check-input' /> |
| 43 | - <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e( 'Show this field in receipts and emails?', 'invoicing' ); ?></label> |
|
| 43 | + <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e('Show this field in receipts and emails?', 'invoicing'); ?></label> |
|
| 44 | 44 | </div> |
| 45 | 45 | |
| 46 | 46 | <hr class='featurette-divider mt-4'> |
| 47 | 47 | |
| 48 | 48 | <div class='form-group'> |
| 49 | 49 | <label class="d-block"> |
| 50 | - <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span> |
|
| 50 | + <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span> |
|
| 51 | 51 | <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" /> |
| 52 | - <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span> |
|
| 52 | + <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span> |
|
| 53 | 53 | </label> |
| 54 | 54 | </div> |
| 55 | 55 | |
@@ -7,31 +7,31 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <div class='form-group'> |
| 15 | 15 | <label class="d-block"> |
| 16 | - <span><?php esc_html_e( 'Field Label', 'invoicing' ); ?></span> |
|
| 16 | + <span><?php esc_html_e('Field Label', 'invoicing'); ?></span> |
|
| 17 | 17 | <input v-model='active_form_element.label' class='form-control' type="text"/> |
| 18 | 18 | </label> |
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | 21 | <div class='form-group'> |
| 22 | 22 | <label class="d-block"> |
| 23 | - <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span> |
|
| 24 | - <textarea placeholder='<?php esc_attr_e( 'Add some help text for this field', 'invoicing' ); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 25 | - <small class="form-text text-muted"><?php _e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 23 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
| 24 | + <textarea placeholder='<?php esc_attr_e('Add some help text for this field', 'invoicing'); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 25 | + <small class="form-text text-muted"><?php _e('HTML is allowed', 'invoicing'); ?></small> |
|
| 26 | 26 | </label> |
| 27 | 27 | </div> |
| 28 | 28 | |
| 29 | 29 | <div class='form-group form-check'> |
| 30 | 30 | <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' /> |
| 31 | - <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label> |
|
| 31 | + <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label> |
|
| 32 | 32 | </div> |
| 33 | 33 | |
| 34 | 34 | <div class='form-group form-check'> |
| 35 | 35 | <input :id="active_form_element.id + '_add_meta'" v-model='active_form_element.add_meta' type='checkbox' class='form-check-input' /> |
| 36 | - <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e( 'Show this field in receipts and emails?', 'invoicing' ); ?></label> |
|
| 36 | + <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e('Show this field in receipts and emails?', 'invoicing'); ?></label> |
|
| 37 | 37 | </div> |