Passed
Push — master ( 020c1f...49a4c8 )
by Stiofan
12:42 queued 37s
created
includes/admin/meta-boxes/class-getpaid-meta-box-item-details.php 1 patch
Spacing   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
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,27 +21,27 @@  discard block
 block discarded – undo
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 item.
27
-        $item = new WPInv_Item( $post );
27
+        $item = new WPInv_Item($post);
28 28
 
29 29
         // Nonce field.
30
-        wp_nonce_field( 'getpaid_meta_nonce', 'getpaid_meta_nonce' );
30
+        wp_nonce_field('getpaid_meta_nonce', 'getpaid_meta_nonce');
31 31
 
32 32
         // Set the currency position.
33 33
         $position = wpinv_currency_position();
34 34
 
35
-        if ( $position == 'left_space' ) {
35
+        if ($position == 'left_space') {
36 36
             $position = 'left';
37 37
         }
38 38
 
39
-        if ( $position == 'right_space' ) {
39
+        if ($position == 'right_space') {
40 40
             $position = 'right';
41 41
         }
42 42
 
43 43
         ?>
44
-        <input type="hidden" id="_wpi_current_type" value="<?php echo esc_attr( $item->get_type( 'edit' ) ); ?>" />
44
+        <input type="hidden" id="_wpi_current_type" value="<?php echo esc_attr($item->get_type('edit')); ?>" />
45 45
         <style>
46 46
             #poststuff .input-group-text,
47 47
             #poststuff .form-control {
@@ -55,36 +55,36 @@  discard block
 block discarded – undo
55 55
         </style>
56 56
         <div class='bsui' style='max-width: 600px;padding-top: 10px;'>
57 57
 
58
-            <?php do_action( 'wpinv_item_details_metabox_before_price', $item ); ?>
58
+            <?php do_action('wpinv_item_details_metabox_before_price', $item); ?>
59 59
             <div class="form-group mb-3 row">
60
-                <label class="col-sm-3 col-form-label" for="wpinv_item_price"><span><?php esc_html_e( 'Item Price', 'invoicing' ); ?></span></label>
60
+                <label class="col-sm-3 col-form-label" for="wpinv_item_price"><span><?php esc_html_e('Item Price', 'invoicing'); ?></span></label>
61 61
                 <div class="col-sm-8">
62 62
                     <div class="row">
63 63
                         <div class="col-sm-4 getpaid-price-input">
64 64
                             <div class="input-group input-group-sm">
65 65
 
66
-                                <?php if ( 'left' == $position ) : ?>
67
-                                    <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?>
66
+                                <?php if ('left' == $position) : ?>
67
+                                    <?php if (empty($GLOBALS['aui_bs5'])) : ?>
68 68
                                         <div class="input-group-prepend">
69
-                                            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
69
+                                            <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
70 70
                                         </div>
71 71
                                     <?php else : ?>
72 72
                                         <span class="input-group-text">
73
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
73
+                                            <?php echo wp_kses_post(wpinv_currency_symbol()); ?>
74 74
                                         </span>
75 75
                                     <?php endif; ?>
76 76
                                 <?php endif; ?>
77 77
 
78
-                                <input type="text" name="wpinv_item_price" id="wpinv_item_price" value="<?php echo esc_attr( getpaid_unstandardize_amount( $item->get_price( 'edit' ) ) ); ?>" placeholder="<?php echo esc_attr( wpinv_sanitize_amount( 0 ) ); ?>" class="form-control">
78
+                                <input type="text" name="wpinv_item_price" id="wpinv_item_price" value="<?php echo esc_attr(getpaid_unstandardize_amount($item->get_price('edit'))); ?>" placeholder="<?php echo esc_attr(wpinv_sanitize_amount(0)); ?>" class="form-control">
79 79
 
80
-                                <?php if ( 'left' != $position ) : ?>
81
-                                    <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?>
80
+                                <?php if ('left' != $position) : ?>
81
+                                    <?php if (empty($GLOBALS['aui_bs5'])) : ?>
82 82
                                         <div class="input-group-append">
83
-                                            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
83
+                                            <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
84 84
                                         </div>
85 85
                                     <?php else : ?>
86 86
                                         <span class="input-group-text">
87
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
87
+                                            <?php echo wp_kses_post(wpinv_currency_symbol()); ?>
88 88
                                         </span>
89 89
                                     <?php endif; ?>
90 90
                                 <?php endif; ?>
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
                         </div>
94 94
                         <div class="col-sm-4 wpinv_show_if_recurring">
95 95
                             <?php
96
-                                esc_html_e( 'every' );
96
+                                esc_html_e('every');
97 97
                                 echo '&nbsp;';
98 98
                             ?>
99
-                            <input type="number" style="max-width: 60px;" value="<?php echo esc_attr( $item->get_recurring_interval( 'edit' ) ); ?>" placeholder="1" name="wpinv_recurring_interval" id="wpinv_recurring_interval" />
99
+                            <input type="number" style="max-width: 60px;" value="<?php echo esc_attr($item->get_recurring_interval('edit')); ?>" placeholder="1" name="wpinv_recurring_interval" id="wpinv_recurring_interval" />
100 100
                         </div>
101 101
                         <div class="col-sm-4 wpinv_show_if_recurring">
102 102
                             <?php
@@ -104,16 +104,16 @@  discard block
 block discarded – undo
104 104
                                     array(
105 105
                                         'id'               => 'wpinv_recurring_period',
106 106
                                         'name'             => 'wpinv_recurring_period',
107
-                                        'label'            => __( 'Period', 'invoicing' ),
108
-                                        'placeholder'      => __( 'Select Period', 'invoicing' ),
109
-                                        'value'            => $item->get_recurring_period( 'edit' ),
107
+                                        'label'            => __('Period', 'invoicing'),
108
+                                        'placeholder'      => __('Select Period', 'invoicing'),
109
+                                        'value'            => $item->get_recurring_period('edit'),
110 110
                                         'select2'          => true,
111 111
                                         'data-allow-clear' => 'false',
112 112
                                         'options'          => array(
113
-                                            'D' => __( 'day(s)', 'invoicing' ),
114
-                                            'W' => __( 'week(s)', 'invoicing' ),
115
-                                            'M' => __( 'month(s)', 'invoicing' ),
116
-                                            'Y' => __( 'year(s)', 'invoicing' ),
113
+                                            'D' => __('day(s)', 'invoicing'),
114
+                                            'W' => __('week(s)', 'invoicing'),
115
+                                            'M' => __('month(s)', 'invoicing'),
116
+                                            'Y' => __('year(s)', 'invoicing'),
117 117
                                         ),
118 118
                                     ),
119 119
                                     true
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
                             <?php
127 127
 
128 128
                                 // Dynamic pricing.
129
-                                if ( $item->supports_dynamic_pricing() ) {
129
+                                if ($item->supports_dynamic_pricing()) {
130 130
 
131
-								do_action( 'wpinv_item_details_metabox_before_dynamic_pricing_checkbox', $item );
131
+								do_action('wpinv_item_details_metabox_before_dynamic_pricing_checkbox', $item);
132 132
 
133 133
 								// NYP toggle.
134 134
 								aui()->input(
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 								'id'      => 'wpinv_name_your_price',
137 137
 								'name'    => 'wpinv_name_your_price',
138 138
 								'type'    => 'checkbox',
139
-								'label'   => apply_filters( 'wpinv_name_your_price_toggle_text', __( 'Let customers name their price', 'invoicing' ) ),
139
+								'label'   => apply_filters('wpinv_name_your_price_toggle_text', __('Let customers name their price', 'invoicing')),
140 140
 								'value'   => '1',
141 141
 								'checked' => $item->user_can_set_their_price(),
142 142
 								'no_wrap' => true,
@@ -144,71 +144,71 @@  discard block
 block discarded – undo
144 144
                                     true
145 145
                                 );
146 146
 
147
-							do_action( 'wpinv_item_details_metabox_dynamic_pricing_checkbox', $item );
147
+							do_action('wpinv_item_details_metabox_dynamic_pricing_checkbox', $item);
148 148
 
149 149
                                 }
150 150
 
151 151
                                 // Subscriptions.
152
-                                do_action( 'wpinv_item_details_metabox_before_subscription_checkbox', $item );
152
+                                do_action('wpinv_item_details_metabox_before_subscription_checkbox', $item);
153 153
                                 aui()->input(
154 154
                                     array(
155 155
                                         'id'      => 'wpinv_is_recurring',
156 156
                                         'name'    => 'wpinv_is_recurring',
157 157
                                         'type'    => 'checkbox',
158
-                                        'label'   => apply_filters( 'wpinv_is_recurring_toggle_text', __( 'Charge customers a recurring amount for this item', 'invoicing' ) ),
158
+                                        'label'   => apply_filters('wpinv_is_recurring_toggle_text', __('Charge customers a recurring amount for this item', 'invoicing')),
159 159
                                         'value'   => '1',
160 160
                                         'checked' => $item->is_recurring(),
161 161
                                         'no_wrap' => true,
162 162
                                     ),
163 163
                                     true
164 164
                                 );
165
-                                do_action( 'wpinv_item_details_metabox_subscription_checkbox', $item );
165
+                                do_action('wpinv_item_details_metabox_subscription_checkbox', $item);
166 166
 
167 167
                             ?>
168 168
                             <div class="wpinv_show_if_recurring">
169
-                                <em><?php echo wp_kses_post( wpinv_get_recurring_gateways_text() ); ?></em>
169
+                                <em><?php echo wp_kses_post(wpinv_get_recurring_gateways_text()); ?></em>
170 170
                             </div>
171 171
                         </div>
172 172
                     </div>
173 173
                 </div>
174 174
                 <div class="col-sm-1 pt-2 pl-0">
175
-                    <span class="wpi-help-tip dashicons dashicons-editor-help wpinv_show_if_recurring" title="<?php esc_attr_e( 'Set the subscription price, billing interval and period.', 'invoicing' ); ?>"></span>
175
+                    <span class="wpi-help-tip dashicons dashicons-editor-help wpinv_show_if_recurring" title="<?php esc_attr_e('Set the subscription price, billing interval and period.', 'invoicing'); ?>"></span>
176 176
                 </div>
177 177
             </div>
178
-            <?php do_action( 'wpinv_item_details_metabox_after_price', $item ); ?>
178
+            <?php do_action('wpinv_item_details_metabox_after_price', $item); ?>
179 179
 
180
-            <?php if ( $item->supports_dynamic_pricing() ) : ?>
181
-                <?php do_action( 'wpinv_item_details_metabox_before_minimum_price', $item ); ?>
180
+            <?php if ($item->supports_dynamic_pricing()) : ?>
181
+                <?php do_action('wpinv_item_details_metabox_before_minimum_price', $item); ?>
182 182
                 <div class="wpinv_show_if_dynamic wpinv_minimum_price">
183 183
 
184 184
                     <div class="form-group mb-3 row">
185 185
                         <label for="wpinv_minimum_price" class="col-sm-3 col-form-label">
186
-                            <?php esc_html_e( 'Minimum Price', 'invoicing' ); ?>
186
+                            <?php esc_html_e('Minimum Price', 'invoicing'); ?>
187 187
                         </label>
188 188
                         <div class="col-sm-8">
189 189
                             <div class="input-group input-group-sm">
190
-                                <?php if ( 'left' == $position ) : ?>
191
-                                    <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?>
190
+                                <?php if ('left' == $position) : ?>
191
+                                    <?php if (empty($GLOBALS['aui_bs5'])) : ?>
192 192
                                         <div class="input-group-prepend">
193
-                                            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
193
+                                            <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
194 194
                                         </div>
195 195
                                     <?php else : ?>
196 196
                                         <span class="input-group-text">
197
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
197
+                                            <?php echo wp_kses_post(wpinv_currency_symbol()); ?>
198 198
                                         </span>
199 199
                                     <?php endif; ?>
200 200
                                 <?php endif; ?>
201 201
 
202
-                                <input type="text" name="wpinv_minimum_price" id="wpinv_minimum_price" value="<?php echo esc_attr( getpaid_unstandardize_amount( $item->get_minimum_price( 'edit' ) ) ); ?>" placeholder="<?php echo esc_attr( wpinv_sanitize_amount( 0 ) ); ?>" class="form-control">
202
+                                <input type="text" name="wpinv_minimum_price" id="wpinv_minimum_price" value="<?php echo esc_attr(getpaid_unstandardize_amount($item->get_minimum_price('edit'))); ?>" placeholder="<?php echo esc_attr(wpinv_sanitize_amount(0)); ?>" class="form-control">
203 203
 
204
-                                <?php if ( 'left' != $position ) : ?>
205
-                                    <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?>
204
+                                <?php if ('left' != $position) : ?>
205
+                                    <?php if (empty($GLOBALS['aui_bs5'])) : ?>
206 206
                                         <div class="input-group-append">
207
-                                            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
207
+                                            <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
208 208
                                         </div>
209 209
                                     <?php else : ?>
210 210
                                         <span class="input-group-text">
211
-                                            <?php echo wp_kses_post( wpinv_currency_symbol() ); ?>
211
+                                            <?php echo wp_kses_post(wpinv_currency_symbol()); ?>
212 212
                                         </span>
213 213
                                     <?php endif; ?>
214 214
                                 <?php endif; ?>
@@ -216,45 +216,45 @@  discard block
 block discarded – undo
216 216
                         </div>
217 217
 
218 218
                         <div class="col-sm-1 pt-2 pl-0">
219
-                            <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'Enter the minimum amount that users are allowed to set', 'invoicing' ); ?>"></span>
219
+                            <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('Enter the minimum amount that users are allowed to set', 'invoicing'); ?>"></span>
220 220
                         </div>
221 221
                     </div>
222 222
 
223 223
                 </div>
224
-                <?php do_action( 'wpinv_item_details_metabox_minimum_price', $item ); ?>
224
+                <?php do_action('wpinv_item_details_metabox_minimum_price', $item); ?>
225 225
             <?php endif; ?>
226 226
 
227
-            <?php do_action( 'wpinv_item_details_metabox_before_maximum_renewals', $item ); ?>
227
+            <?php do_action('wpinv_item_details_metabox_before_maximum_renewals', $item); ?>
228 228
             <div class="wpinv_show_if_recurring wpinv_maximum_renewals">
229 229
 
230 230
                 <div class="form-group mb-3 row">
231 231
                     <label for="wpinv_recurring_limit" class="col-sm-3 col-form-label">
232
-                        <?php esc_html_e( 'Maximum Renewals', 'invoicing' ); ?>
232
+                        <?php esc_html_e('Maximum Renewals', 'invoicing'); ?>
233 233
                     </label>
234 234
                     <div class="col-sm-8">
235
-                        <input type="number" value="<?php echo esc_attr( $item->get_recurring_limit( 'edit' ) ); ?>" placeholder="0" name="wpinv_recurring_limit" id="wpinv_recurring_limit" style="width: 100%;" />
235
+                        <input type="number" value="<?php echo esc_attr($item->get_recurring_limit('edit')); ?>" placeholder="0" name="wpinv_recurring_limit" id="wpinv_recurring_limit" style="width: 100%;" />
236 236
                     </div>
237 237
                     <div class="col-sm-1 pt-2 pl-0">
238
-                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'Leave empty if you want the subscription to renew until it is cancelled.', 'invoicing' ); ?>"></span>
238
+                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('Leave empty if you want the subscription to renew until it is cancelled.', 'invoicing'); ?>"></span>
239 239
                     </div>
240 240
                 </div>
241 241
 
242 242
             </div>
243
-            <?php do_action( 'wpinv_item_details_metabox_maximum_renewals', $item ); ?>
243
+            <?php do_action('wpinv_item_details_metabox_maximum_renewals', $item); ?>
244 244
 
245
-            <?php do_action( 'wpinv_item_details_metabox_before_free_trial', $item ); ?>
245
+            <?php do_action('wpinv_item_details_metabox_before_free_trial', $item); ?>
246 246
             <div class="wpinv_show_if_recurring wpinv_free_trial">
247 247
 
248 248
                 <div class="form-group mb-3 row">
249
-                    <label class="col-sm-3 col-form-label" for="wpinv_trial_interval"><?php defined( 'GETPAID_PAID_TRIALS_VERSION' ) ? esc_html_e( 'Free/Paid Trial', 'invoicing' ) : esc_html_e( 'Free Trial', 'invoicing' ); ?></label>
249
+                    <label class="col-sm-3 col-form-label" for="wpinv_trial_interval"><?php defined('GETPAID_PAID_TRIALS_VERSION') ? esc_html_e('Free/Paid Trial', 'invoicing') : esc_html_e('Free Trial', 'invoicing'); ?></label>
250 250
 
251 251
                     <div class="col-sm-8">
252 252
                         <div class="row">
253 253
                             <div class="col-sm-6">
254
-                                <?php $value = $item->has_free_trial() ? $item->get_trial_interval( 'edit' ) : 0; ?>
254
+                                <?php $value = $item->has_free_trial() ? $item->get_trial_interval('edit') : 0; ?>
255 255
 
256 256
                                 <div>
257
-                                    <input type="number" name="wpinv_trial_interval" style="width: 100%;" placeholder="0" id="wpinv_trial_interval" value="<?php echo esc_attr( $value ); ?>" >
257
+                                    <input type="number" name="wpinv_trial_interval" style="width: 100%;" placeholder="0" id="wpinv_trial_interval" value="<?php echo esc_attr($value); ?>" >
258 258
                                 </div>
259 259
                             </div>
260 260
                             <div class="col-sm-6">
@@ -263,17 +263,17 @@  discard block
 block discarded – undo
263 263
                                         array(
264 264
                                             'id'          => 'wpinv_trial_period',
265 265
                                             'name'        => 'wpinv_trial_period',
266
-                                            'label'       => __( 'Trial Period', 'invoicing' ),
267
-                                            'placeholder' => __( 'Trial Period', 'invoicing' ),
268
-                                            'value'       => $item->get_trial_period( 'edit' ),
266
+                                            'label'       => __('Trial Period', 'invoicing'),
267
+                                            'placeholder' => __('Trial Period', 'invoicing'),
268
+                                            'value'       => $item->get_trial_period('edit'),
269 269
                                             'select2'     => true,
270 270
                                             'data-allow-clear' => 'false',
271 271
                                             'no_wrap'     => true,
272 272
                                             'options'     => array(
273
-                                                'D' => __( 'day(s)', 'invoicing' ),
274
-                                                'W' => __( 'week(s)', 'invoicing' ),
275
-                                                'M' => __( 'month(s)', 'invoicing' ),
276
-                                                'Y' => __( 'year(s)', 'invoicing' ),
273
+                                                'D' => __('day(s)', 'invoicing'),
274
+                                                'W' => __('week(s)', 'invoicing'),
275
+                                                'M' => __('month(s)', 'invoicing'),
276
+                                                'Y' => __('year(s)', 'invoicing'),
277 277
                                             ),
278 278
                                         ),
279 279
                                         true
@@ -285,15 +285,15 @@  discard block
 block discarded – undo
285 285
                     </div>
286 286
 
287 287
                     <div class="col-sm-1 pt-2 pl-0">
288
-                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e( 'An optional period of time to wait before charging the first recurring payment.', 'invoicing' ); ?>"></span>
288
+                        <span class="wpi-help-tip dashicons dashicons-editor-help" title="<?php esc_attr_e('An optional period of time to wait before charging the first recurring payment.', 'invoicing'); ?>"></span>
289 289
                     </div>
290 290
 
291 291
                 </div>
292 292
 
293 293
             </div>
294
-            <?php do_action( 'wpinv_item_details_metabox__free_trial', $item ); ?>
294
+            <?php do_action('wpinv_item_details_metabox__free_trial', $item); ?>
295 295
 
296
-            <?php do_action( 'wpinv_item_details_metabox_item_details', $item ); ?>
296
+            <?php do_action('wpinv_item_details_metabox_item_details', $item); ?>
297 297
         </div>
298 298
         <?php
299 299
 
@@ -304,31 +304,31 @@  discard block
 block discarded – undo
304 304
 	 *
305 305
 	 * @param int $post_id
306 306
 	 */
307
-	public static function save( $post_id ) {
307
+	public static function save($post_id) {
308 308
 
309 309
         // Prepare the item.
310
-        $item = new WPInv_Item( $post_id );
310
+        $item = new WPInv_Item($post_id);
311 311
 
312 312
         // Load new data.
313 313
         $item->set_props(
314 314
 			array(
315
-				'price'              => isset( $_POST['wpinv_item_price'] ) ? getpaid_standardize_amount( $_POST['wpinv_item_price'] ) : null,
316
-				'vat_rule'           => isset( $_POST['wpinv_vat_rules'] ) ? wpinv_clean( $_POST['wpinv_vat_rules'] ) : null,
317
-				'vat_class'          => isset( $_POST['wpinv_vat_class'] ) ? wpinv_clean( $_POST['wpinv_vat_class'] ) : null,
318
-				'type'               => isset( $_POST['wpinv_item_type'] ) ? wpinv_clean( $_POST['wpinv_item_type'] ) : null,
319
-				'is_dynamic_pricing' => ! empty( $_POST['wpinv_name_your_price'] ),
320
-                'minimum_price'      => isset( $_POST['wpinv_minimum_price'] ) ? getpaid_standardize_amount( $_POST['wpinv_minimum_price'] ) : null,
321
-				'is_recurring'       => ! empty( $_POST['wpinv_is_recurring'] ),
322
-				'recurring_period'   => isset( $_POST['wpinv_recurring_period'] ) ? wpinv_clean( $_POST['wpinv_recurring_period'] ) : null,
323
-				'recurring_interval' => isset( $_POST['wpinv_recurring_interval'] ) ? (int) $_POST['wpinv_recurring_interval'] : 1,
324
-				'recurring_limit'    => isset( $_POST['wpinv_recurring_limit'] ) ? (int) $_POST['wpinv_recurring_limit'] : null,
325
-				'is_free_trial'      => isset( $_POST['wpinv_trial_interval'] ) ? ( 0 != (int) $_POST['wpinv_trial_interval'] ) : null,
326
-				'trial_period'       => isset( $_POST['wpinv_trial_period'] ) ? wpinv_clean( $_POST['wpinv_trial_period'] ) : null,
327
-				'trial_interval'     => isset( $_POST['wpinv_trial_interval'] ) ? (int) $_POST['wpinv_trial_interval'] : null,
315
+				'price'              => isset($_POST['wpinv_item_price']) ? getpaid_standardize_amount($_POST['wpinv_item_price']) : null,
316
+				'vat_rule'           => isset($_POST['wpinv_vat_rules']) ? wpinv_clean($_POST['wpinv_vat_rules']) : null,
317
+				'vat_class'          => isset($_POST['wpinv_vat_class']) ? wpinv_clean($_POST['wpinv_vat_class']) : null,
318
+				'type'               => isset($_POST['wpinv_item_type']) ? wpinv_clean($_POST['wpinv_item_type']) : null,
319
+				'is_dynamic_pricing' => !empty($_POST['wpinv_name_your_price']),
320
+                'minimum_price'      => isset($_POST['wpinv_minimum_price']) ? getpaid_standardize_amount($_POST['wpinv_minimum_price']) : null,
321
+				'is_recurring'       => !empty($_POST['wpinv_is_recurring']),
322
+				'recurring_period'   => isset($_POST['wpinv_recurring_period']) ? wpinv_clean($_POST['wpinv_recurring_period']) : null,
323
+				'recurring_interval' => isset($_POST['wpinv_recurring_interval']) ? (int) $_POST['wpinv_recurring_interval'] : 1,
324
+				'recurring_limit'    => isset($_POST['wpinv_recurring_limit']) ? (int) $_POST['wpinv_recurring_limit'] : null,
325
+				'is_free_trial'      => isset($_POST['wpinv_trial_interval']) ? (0 != (int) $_POST['wpinv_trial_interval']) : null,
326
+				'trial_period'       => isset($_POST['wpinv_trial_period']) ? wpinv_clean($_POST['wpinv_trial_period']) : null,
327
+				'trial_interval'     => isset($_POST['wpinv_trial_interval']) ? (int) $_POST['wpinv_trial_interval'] : null,
328 328
 			)
329 329
         );
330 330
 
331 331
 		$item->save();
332
-		do_action( 'getpaid_item_metabox_save', $post_id, $item );
332
+		do_action('getpaid_item_metabox_save', $post_id, $item);
333 333
 	}
334 334
 }
Please login to merge, or discard this patch.
templates/payment-forms-admin/previews/price_input.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -7,16 +7,16 @@  discard block
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12 12
 // Set the currency position.
13 13
 $position = wpinv_currency_position();
14 14
 
15
-if ( $position == 'left_space' ) {
15
+if ($position == 'left_space') {
16 16
     $position = 'left';
17 17
 }
18 18
 
19
-if ( $position == 'right_space' ) {
19
+if ($position == 'right_space') {
20 20
     $position = 'right';
21 21
 }
22 22
 
@@ -26,25 +26,25 @@  discard block
 block discarded – undo
26 26
 
27 27
 <div class="input-group">
28 28
 
29
-    <?php if ( $position == 'left' ) : ?>
30
-        <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?>
29
+    <?php if ($position == 'left') : ?>
30
+        <?php if (empty($GLOBALS['aui_bs5'])) : ?>
31 31
             <div class="input-group-prepend ">
32
-                <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
32
+                <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
33 33
             </div>
34 34
         <?php else : ?>
35
-            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
35
+            <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
36 36
         <?php endif; ?>
37 37
     <?php endif; ?>
38 38
 
39 39
     <input :placeholder='form_element.placeholder' class='form-control' type='text'>
40 40
 
41
-    <?php if ( $position == 'right' ) : ?>
42
-        <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?>
41
+    <?php if ($position == 'right') : ?>
42
+        <?php if (empty($GLOBALS['aui_bs5'])) : ?>
43 43
             <div class="input-group-append ">
44
-                <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
44
+                <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
45 45
             </div>
46 46
         <?php else : ?>
47
-            <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span>
47
+            <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span>
48 48
         <?php endif; ?>
49 49
     <?php endif; ?>
50 50
 </div>
Please login to merge, or discard this patch.
templates/payment-forms-admin/previews/address.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
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='wpinv-address-wrapper row'>
15 15
 
16
-    <h4 v-if="form_element.address_type == 'both'" class="col-12 mb-3"><?php esc_html_e( 'Billing / Shipping Address', 'invoicing' ); ?></h4>
16
+    <h4 v-if="form_element.address_type == 'both'" class="col-12 mb-3"><?php esc_html_e('Billing / Shipping Address', 'invoicing'); ?></h4>
17 17
 
18 18
     <div class='form-group mb-3 address-field-preview wpinv-payment-form-field-preview' v-for='(field, index) in visible_fields( form_element.fields )' :class='grid_class( field )' :key='field.name'>
19 19
         <label class="form-label d-block w-100">
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/number.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,49 +7,49 @@
 block discarded – undo
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 mb-3'>
15 15
     <label class="form-label 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 mb-3'>
22 22
     <label class="form-label 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 mb-3'>
29 29
     <label class="form-label 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 esc_html_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 esc_html_e('HTML is allowed', 'invoicing'); ?></small>
33 33
     </label>
34 34
 </div>
35 35
 
36 36
 <div class='form-group mb-3 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 mb-3 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 mb-3'>
49 49
     <label class="form-label 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
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/file_upload.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -7,31 +7,31 @@  discard block
 block discarded – undo
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 mb-3'>
15 15
     <label class="form-label 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 mb-3'>
22 22
     <label class="form-label d-block">
23
-        <span><?php esc_html_e( 'Max File Number', 'invoicing' ); ?></span>
23
+        <span><?php esc_html_e('Max File Number', 'invoicing'); ?></span>
24 24
         <input v-model="active_form_element.max_file_num" class="form-control" min="1" type="number" />
25
-        <small class="form-text text-muted"><?php esc_html_e( 'How many files can be uploaded?', 'invoicing' ); ?></small>
25
+        <small class="form-text text-muted"><?php esc_html_e('How many files can be uploaded?', 'invoicing'); ?></small>
26 26
     </label>
27 27
 </div>
28 28
 
29 29
 <div class='form-group mb-3'>
30 30
     <label class="form-label d-block">
31
-        <span><?php esc_html_e( 'Allowed File types', 'invoicing' ); ?></span>
31
+        <span><?php esc_html_e('Allowed File types', 'invoicing'); ?></span>
32 32
         <gpselect2 class='form-control custom-select' v-model='active_form_element.file_types' multiple>
33
-            <?php foreach ( getpaid_get_allowed_mime_types() as $ext_regex => $mime_type ) : ?>
34
-                <option value="<?php echo esc_attr( $ext_regex ); ?>"><?php echo esc_html( "$mime_type" ); ?></option>
33
+            <?php foreach (getpaid_get_allowed_mime_types() as $ext_regex => $mime_type) : ?>
34
+                <option value="<?php echo esc_attr($ext_regex); ?>"><?php echo esc_html("$mime_type"); ?></option>
35 35
             <?php endforeach; ?>
36 36
         </gpselect2>
37 37
     </label>
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 
40 40
 <div class='form-group mb-3'>
41 41
     <label class="form-label d-block">
42
-        <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span>
43
-        <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>
44
-        <small class="form-text text-muted"><?php esc_html_e( 'HTML is allowed', 'invoicing' ); ?></small>
42
+        <span><?php esc_html_e('Help Text', 'invoicing'); ?></span>
43
+        <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>
44
+        <small class="form-text text-muted"><?php esc_html_e('HTML is allowed', 'invoicing'); ?></small>
45 45
     </label>
46 46
 </div>
47 47
 
@@ -49,20 +49,20 @@  discard block
 block discarded – undo
49 49
 
50 50
 <div class='form-group mb-3 form-check'>
51 51
     <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
52
-    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
52
+    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
53 53
 </div>
54 54
 
55 55
 <div class='form-group mb-3 form-check'>
56 56
     <input :id="active_form_element.id + '_add_meta'" v-model='active_form_element.add_meta' type='checkbox' class='form-check-input' />
57
-    <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>
57
+    <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>
58 58
 </div>
59 59
 
60 60
 <hr class='featurette-divider mt-4'>
61 61
 
62 62
 <div class='form-group mb-3'>
63 63
     <label class="form-label d-block">
64
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
64
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
65 65
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
66
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
66
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
67 67
     </label>
68 68
 </div>
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/price_input.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -7,47 +7,47 @@  discard block
 block discarded – undo
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 mb-3'>
19 19
     <label class="form-label 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 mb-3'>
26 26
     <label class="form-label 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 mb-3'>
33 33
     <label class="form-label 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 mb-3'>
40 40
     <label class="form-label 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 mb-3'>
47 47
     <label class="form-label 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 esc_html_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 esc_html_e('HTML is allowed', 'invoicing'); ?></small>
51 51
     </label>
52 52
 </div>
53 53
 
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 
56 56
 <div class='form-group mb-3'>
57 57
     <label class="form-label 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
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/ip_address.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12 12
 ?>
13 13
 <div class='form-group mb-3'>
14
-    <label class="form-label" :for="active_form_element.id + '_edit'"><?php esc_html_e( 'The IP Address text', 'invoicing' ); ?></label>
14
+    <label class="form-label" :for="active_form_element.id + '_edit'"><?php esc_html_e('The IP Address text', 'invoicing'); ?></label>
15 15
     <textarea :id="active_form_element.id + '_edit'" v-model='active_form_element.text' class='form-control' rows='3'></textarea>
16 16
 </div>
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/alert.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,33 +7,33 @@
 block discarded – undo
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 mb-3'>
15 15
     <label class="form-label d-block">
16
-        <span><?php esc_html_e( 'Alert Text', 'invoicing' ); ?></span>
16
+        <span><?php esc_html_e('Alert Text', 'invoicing'); ?></span>
17 17
         <textarea v-model='active_form_element.text' class='form-control' rows='3'></textarea>
18 18
     </label>
19 19
 </div>
20 20
 
21 21
 <div class='form-group mb-3 form-check'>
22 22
     <input :id="active_form_element.id + '_edit_dismissible'" v-model='active_form_element.dismissible' type='checkbox' class='form-check-input' />
23
-    <label class='form-check-label' :for="active_form_element.id + '_edit_dismissible'"><?php esc_html_e( 'Is Dismissible?', 'invoicing' ); ?></label>
23
+    <label class='form-check-label' :for="active_form_element.id + '_edit_dismissible'"><?php esc_html_e('Is Dismissible?', 'invoicing'); ?></label>
24 24
 </div>
25 25
 
26 26
 <div class='form-group mb-3'>
27
-    <label :for="active_form_element.id + '_edit_type'"><?php esc_html_e( 'Alert Type', 'invoicing' ); ?></label>
27
+    <label :for="active_form_element.id + '_edit_type'"><?php esc_html_e('Alert Type', 'invoicing'); ?></label>
28 28
     <select class='form-control custom-select' :id="active_form_element.id + '_edit_type'" v-model='active_form_element.class'>
29
-        <option value='alert-primary'><?php esc_html_e( 'Primary', 'invoicing' ); ?></option>
30
-        <option value='alert-secondary'><?php esc_html_e( 'Secondary', 'invoicing' ); ?></option>
31
-        <option value='alert-success'><?php esc_html_e( 'Success', 'invoicing' ); ?></option>
32
-        <option value='alert-danger'><?php esc_html_e( 'Danger', 'invoicing' ); ?></option>
33
-        <option value='alert-warning'><?php esc_html_e( 'Warning', 'invoicing' ); ?></option>
34
-        <option value='alert-info'><?php esc_html_e( 'Info', 'invoicing' ); ?></option>
35
-        <option value='alert-light'><?php esc_html_e( 'Light', 'invoicing' ); ?></option>
36
-        <option value='alert-dark'><?php esc_html_e( 'Dark', 'invoicing' ); ?></option>
37
-        <option value='alert-link'><?php esc_html_e( 'Link', 'invoicing' ); ?></option>
29
+        <option value='alert-primary'><?php esc_html_e('Primary', 'invoicing'); ?></option>
30
+        <option value='alert-secondary'><?php esc_html_e('Secondary', 'invoicing'); ?></option>
31
+        <option value='alert-success'><?php esc_html_e('Success', 'invoicing'); ?></option>
32
+        <option value='alert-danger'><?php esc_html_e('Danger', 'invoicing'); ?></option>
33
+        <option value='alert-warning'><?php esc_html_e('Warning', 'invoicing'); ?></option>
34
+        <option value='alert-info'><?php esc_html_e('Info', 'invoicing'); ?></option>
35
+        <option value='alert-light'><?php esc_html_e('Light', 'invoicing'); ?></option>
36
+        <option value='alert-dark'><?php esc_html_e('Dark', 'invoicing'); ?></option>
37
+        <option value='alert-link'><?php esc_html_e('Link', 'invoicing'); ?></option>
38 38
     </select>
39 39
 </div>
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/checkbox.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,31 +7,31 @@
 block discarded – undo
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 mb-3'>
15 15
     <label class="form-label 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 mb-3'>
22 22
     <label class="form-label 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 esc_html_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 esc_html_e('HTML is allowed', 'invoicing'); ?></small>
26 26
     </label>
27 27
 </div>
28 28
 
29 29
 <div class='form-group mb-3 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 mb-3 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>
Please login to merge, or discard this patch.