Passed
Push — master ( ec3085...0b939f )
by Brian
04:46
created
templates/payment-forms-admin/edit/select.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,49 +7,49 @@  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'>
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>
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 32
     </label>
33 33
 </div>
34 34
 
35 35
 <div class='form-group form-check'>
36 36
     <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
37
-    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
37
+    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
38 38
 </div>
39 39
 
40 40
 <hr class='featurette-divider mt-4'>
41 41
 
42 42
 <div class='form-group'>
43 43
     <label class="d-block">
44
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
44
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
45 45
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
46
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
46
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
47 47
     </label>
48 48
 </div>
49 49
 
50 50
 <hr class='featurette-divider mt-4'>
51 51
 
52
-<h5><?php esc_html_e( 'Available Options', 'invoicing' ); ?></h5>
52
+<h5><?php esc_html_e('Available Options', 'invoicing'); ?></h5>
53 53
 
54 54
 <div class='form-group input-group' v-for='(option, index) in active_form_element.options'>
55 55
     <input type='text' class='form-control' v-model='active_form_element.options[index]'>
@@ -59,5 +59,5 @@  discard block
 block discarded – undo
59 59
 </div>
60 60
 
61 61
 <div class='form-group'>
62
-    <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e( 'Add Option', 'invoicing' ); ?></button>
62
+    <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e('Add Option', 'invoicing'); ?></button>
63 63
 </div>
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/price_select.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -7,53 +7,53 @@  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( 'This amount will be added to the total amount for this form', 'invoicing' ); ?>
15
+    <?php esc_html_e('This amount 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' />
22 22
     </label>
23 23
 </div>
24 24
 
25 25
 <div class='form-group' v-if="active_form_element.select_type=='select'">
26 26
     <label class="d-block">
27
-        <span><?php esc_html_e( 'Placeholder text', 'invoicing' ); ?></span>
27
+        <span><?php esc_html_e('Placeholder text', 'invoicing'); ?></span>
28 28
         <input v-model='active_form_element.placeholder' class='form-control' />
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( 'Select Type', 'invoicing' ); ?></span>
34
+        <span><?php esc_html_e('Select Type', 'invoicing'); ?></span>
35 35
         <select class='form-control custom-select' v-model='active_form_element.select_type'>
36
-            <option value='select'><?php esc_html_e( 'Dropdown', 'invoicing' ) ?></option>
37
-            <option value='checkboxes'><?php esc_html_e( 'Checkboxes', 'invoicing' ) ?></option>
38
-            <option value='radios'><?php esc_html_e( 'Radio Buttons', 'invoicing' ) ?></option>
39
-            <option value='buttons'><?php esc_html_e( 'Buttons', 'invoicing' ) ?></option>
40
-            <option value='circles'><?php esc_html_e( 'Circles', 'invoicing' ) ?></option>
36
+            <option value='select'><?php esc_html_e('Dropdown', 'invoicing') ?></option>
37
+            <option value='checkboxes'><?php esc_html_e('Checkboxes', 'invoicing') ?></option>
38
+            <option value='radios'><?php esc_html_e('Radio Buttons', 'invoicing') ?></option>
39
+            <option value='buttons'><?php esc_html_e('Buttons', 'invoicing') ?></option>
40
+            <option value='circles'><?php esc_html_e('Circles', 'invoicing') ?></option>
41 41
         </select>
42 42
     </label>
43 43
 </div>
44 44
 
45 45
 <div class='form-group'>
46 46
     <label class="d-block">
47
-        <span><?php esc_html_e( 'Options', 'invoicing' ); ?></span>
47
+        <span><?php esc_html_e('Options', 'invoicing'); ?></span>
48 48
         <textarea placeholder='Basic|10,Pro|99,Business|199' v-model='active_form_element.options' class='form-control' rows='3'></textarea>
49
-        <small class='form-text text-muted mb-2'><?php esc_html_e( 'Use commas to separate options and pipes to separate a label and its price. Do not include a currency symbol in the price.', 'invoicing' ); ?></small>
49
+        <small class='form-text text-muted mb-2'><?php esc_html_e('Use commas to separate options and pipes to separate a label and its price. Do not include a currency symbol in the price.', 'invoicing'); ?></small>
50 50
     </label>
51 51
 </div>
52 52
 
53 53
 <div class='form-group'>
54 54
     <label class="d-block">
55
-        <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span>
56
-        <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>
55
+        <span><?php esc_html_e('Help Text', 'invoicing'); ?></span>
56
+        <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>
57 57
     </label>
58 58
 </div>
59 59
 
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
 
62 62
 <div class='form-group'>
63 63
     <label class="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>
69 69
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/price_input.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,46 +7,46 @@  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'>
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>
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 50
     </label>
51 51
 </div>
52 52
 
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 
55 55
 <div class='form-group'>
56 56
     <label class="d-block">
57
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
57
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
58 58
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
59
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
59
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
60 60
     </label>
61 61
 </div>
62 62
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/radio.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,42 +7,42 @@  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'>
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>
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 25
     </label>
26 26
 </div>
27 27
 
28 28
 <div class='form-group form-check'>
29 29
     <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
30
-    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
30
+    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
31 31
 </div>
32 32
 
33 33
 <hr class='featurette-divider mt-4'>
34 34
 
35 35
 <div class='form-group'>
36 36
     <label class="d-block">
37
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
37
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
38 38
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
39
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
39
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
40 40
     </label>
41 41
 </div>
42 42
 
43 43
 <hr class='featurette-divider mt-4'>
44 44
 
45
-<h5><?php esc_html_e( 'Available Options', 'invoicing' ); ?></h5>
45
+<h5><?php esc_html_e('Available Options', 'invoicing'); ?></h5>
46 46
 
47 47
 <div class='form-group input-group' v-for='(option, index) in active_form_element.options'>
48 48
     <input type='text' class='form-control' v-model='active_form_element.options[index]'>
@@ -52,5 +52,5 @@  discard block
 block discarded – undo
52 52
 </div>
53 53
 
54 54
 <div class='form-group'>
55
-    <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e( 'Add Option', 'invoicing' ); ?></button>
55
+    <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e('Add Option', 'invoicing'); ?></button>
56 56
 </div>
Please login to merge, or discard this patch.
includes/admin/meta-boxes/class-getpaid-meta-box-payment-form.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  */
8 8
 
9 9
 if ( ! defined( 'ABSPATH' ) ) {
10
-	exit; // Exit if accessed directly
10
+    exit; // Exit if accessed directly
11 11
 }
12 12
 
13 13
 /**
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
 class GetPaid_Meta_Box_Payment_Form {
17 17
 
18 18
     /**
19
-	 * Output the metabox.
20
-	 *
21
-	 * @param WP_Post $post
22
-	 */
19
+     * Output the metabox.
20
+     *
21
+     * @param WP_Post $post
22
+     */
23 23
     public static function output( $post ) {
24 24
         ?>
25 25
         <style>
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-	 * Save meta box data.
106
-	 *
107
-	 * @param int $post_id
108
-	 */
109
-	public static function save( $post_id ) {
105
+     * Save meta box data.
106
+     *
107
+     * @param int $post_id
108
+     */
109
+    public static function save( $post_id ) {
110 110
 
111 111
         // Prepare the form.
112 112
         $form = new GetPaid_Payment_Form( $post_id );
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
     }
138 138
 
139 139
     /**
140
-	 * Converts an array fo form items to objects.
141
-	 *
142
-	 * @param array $items
143
-	 */
144
-	public static function item_to_objects( $items ) {
140
+     * Converts an array fo form items to objects.
141
+     *
142
+     * @param array $items
143
+     */
144
+    public static function item_to_objects( $items ) {
145 145
 
146 146
         $objects = array();
147 147
 
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  *
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if (!defined('ABSPATH')) {
10 10
 	exit; // Exit if accessed directly
11 11
 }
12 12
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	 *
21 21
 	 * @param WP_Post $post
22 22
 	 */
23
-    public static function output( $post ) {
23
+    public static function output($post) {
24 24
         ?>
25 25
         <style>
26 26
             .wpinv-form-builder-edit-field-wrapper label.d-block > span:first-child{
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 <div class="col-sm-4">
34 34
 
35 35
                     <!-- Builder tabs -->
36
-                    <button class="button button-primary" v-if="active_tab!='new_item'" @click.prevent="active_tab='new_item'"><?php _e( 'Go Back', 'invoicing' ); ?></button>
36
+                    <button class="button button-primary" v-if="active_tab!='new_item'" @click.prevent="active_tab='new_item'"><?php _e('Go Back', 'invoicing'); ?></button>
37 37
 
38 38
                     <!-- Builder tab content -->
39 39
                     <div class="mt-4">
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                         <!-- Available builder elements -->
42 42
                         <div class="wpinv-form-builder-tab-pane" v-if="active_tab=='new_item'">
43 43
                             <div class="wpinv-form-builder-add-field-types">
44
-                                <small class='form-text text-muted'><?php _e( 'Add an element by dragging it to the payment form.', 'invoicing' ); ?></small>
44
+                                <small class='form-text text-muted'><?php _e('Add an element by dragging it to the payment form.', 'invoicing'); ?></small>
45 45
                                 <draggable class="section mt-2" style="display: flex; flex-flow: wrap; justify-content: space-between;" v-model="elements" :group="{ name: 'fields', pull: 'clone', put: false }" :sort="false" :clone="addDraggedField" tag="ul" filter=".wpinv-undraggable">
46 46
                                     <li v-for="element in elements" class= "wpinv-payment-form-left-fields-field" @click.prevent="addField(element)" :class="{ 'd-none': element.defaults.premade }">
47 47
                                         <button class="button btn text-dark">
@@ -56,18 +56,18 @@  discard block
 block discarded – undo
56 56
                         <!-- Edit an element -->
57 57
                         <div class="wpinv-form-builder-tab-pane" v-if="active_tab=='edit_item'" style="font-size: 14px;">
58 58
                             <div class="wpinv-form-builder-edit-field-wrapper">
59
-                                <?php do_action( 'wpinv_payment_form_edit_element_template', 'active_form_element', $post ); ?>
60
-                                <?php do_action( 'getpaid_payment_form_edit_element_template', $post ); ?>
59
+                                <?php do_action('wpinv_payment_form_edit_element_template', 'active_form_element', $post); ?>
60
+                                <?php do_action('getpaid_payment_form_edit_element_template', $post); ?>
61 61
                                 <div class='form-group'>
62
-                                    <label :for="active_form_element.id + '_grid_width'"><?php esc_html_e( 'Width', 'invoicing' ) ?></label>
62
+                                    <label :for="active_form_element.id + '_grid_width'"><?php esc_html_e('Width', 'invoicing') ?></label>
63 63
                                     <select class='form-control custom-select' :id="active_form_element.id + '_grid_width'" v-model='gridWidth'>
64
-                                        <option value='full'><?php esc_html_e( 'Full Width', 'invoicing' ); ?></option>
65
-                                        <option value='half'><?php esc_html_e( 'Half Width', 'invoicing' ); ?></option>
66
-                                        <option value='third'><?php esc_html_e( '1/3 Width', 'invoicing' ); ?></option>
64
+                                        <option value='full'><?php esc_html_e('Full Width', 'invoicing'); ?></option>
65
+                                        <option value='half'><?php esc_html_e('Half Width', 'invoicing'); ?></option>
66
+                                        <option value='third'><?php esc_html_e('1/3 Width', 'invoicing'); ?></option>
67 67
                                     </select>
68 68
                                 </div>
69 69
                                 <div>
70
-                                    <button type="button" class="button button-link button-link-delete" @click.prevent="removeField(active_form_element)" v-show="! active_form_element.premade"><?php _e( 'Delete Element', 'invoicing' ); ?></button>
70
+                                    <button type="button" class="button button-link button-link-delete" @click.prevent="removeField(active_form_element)" v-show="! active_form_element.premade"><?php _e('Delete Element', 'invoicing'); ?></button>
71 71
                                 </div>
72 72
                             </div>
73 73
                         </div>
@@ -76,15 +76,15 @@  discard block
 block discarded – undo
76 76
 
77 77
                 </div>
78 78
                 <div class="col-sm-8 border-left">
79
-                    <small class='form-text text-muted' v-if='form_elements.length'><?php _e( 'Click on any element to edit or delete it.', 'invoicing' ); ?></small>
80
-                    <p class='form-text text-muted' v-if='! form_elements.length'><?php _e( 'This form is empty. Add new elements by dragging them from the right.', 'invoicing' ); ?></p>
79
+                    <small class='form-text text-muted' v-if='form_elements.length'><?php _e('Click on any element to edit or delete it.', 'invoicing'); ?></small>
80
+                    <p class='form-text text-muted' v-if='! form_elements.length'><?php _e('This form is empty. Add new elements by dragging them from the right.', 'invoicing'); ?></p>
81 81
 
82 82
                     <div class="container-fluid">
83 83
                         <draggable class="section row" v-model="form_elements" @add="highlightLastDroppedField" group="fields" tag="div" style="min-height: 100%; font-size: 14px;">
84 84
                             <div v-for="form_element in form_elements" class="wpinv-form-builder-element-preview" :class="[{ active: active_form_element==form_element &&  active_tab=='edit_item' }, form_element.type, grid_class( form_element ) ]" @click="active_tab = 'edit_item'; active_form_element = form_element">
85 85
                                 <div class="wpinv-form-builder-element-preview-inner">
86 86
                                     <div class="wpinv-payment-form-field-preview-overlay"></div>
87
-                                    <?php do_action( 'wpinv_payment_form_render_element_template', 'form_element', $post ); ?>
87
+                                    <?php do_action('wpinv_payment_form_render_element_template', 'form_element', $post); ?>
88 88
                                 </div>
89 89
                             </div>
90 90
                         </draggable>
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         </div>
99 99
         <?php
100 100
 
101
-        wp_nonce_field( 'getpaid_meta_nonce', 'getpaid_meta_nonce' );
101
+        wp_nonce_field('getpaid_meta_nonce', 'getpaid_meta_nonce');
102 102
     }
103 103
 
104 104
     /**
@@ -106,33 +106,33 @@  discard block
 block discarded – undo
106 106
 	 *
107 107
 	 * @param int $post_id
108 108
 	 */
109
-	public static function save( $post_id ) {
109
+	public static function save($post_id) {
110 110
 
111 111
         // Prepare the form.
112
-        $form = new GetPaid_Payment_Form( $post_id );
112
+        $form = new GetPaid_Payment_Form($post_id);
113 113
 
114 114
         // Fetch form items.
115
-        $form_items = json_decode( wp_unslash( $_POST['wpinv_form_items'] ), true );
115
+        $form_items = json_decode(wp_unslash($_POST['wpinv_form_items']), true);
116 116
 
117 117
         // Ensure that we have an array...
118
-        if ( empty( $form_items ) ) {
118
+        if (empty($form_items)) {
119 119
             $form_items = array();
120 120
         }
121 121
 
122 122
         // Add it to the form.
123
-        $form->set_items( self::item_to_objects( $form_items ) );
123
+        $form->set_items(self::item_to_objects($form_items));
124 124
 
125 125
         // Save form elements.
126
-        $form_elements = json_decode( wp_unslash( $_POST['wpinv_form_elements'] ), true );
127
-        if ( empty( $form_elements ) ) {
126
+        $form_elements = json_decode(wp_unslash($_POST['wpinv_form_elements']), true);
127
+        if (empty($form_elements)) {
128 128
             $form_elements = array();
129 129
         }
130 130
 
131
-        $form->set_elements( $form_elements );
131
+        $form->set_elements($form_elements);
132 132
 
133 133
         // Persist data to the datastore.
134 134
         $form->save();
135
-        do_action( 'getpaid_payment_form_metabox_save', $post_id, $form );
135
+        do_action('getpaid_payment_form_metabox_save', $post_id, $form);
136 136
 
137 137
     }
138 138
 
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
 	 *
142 142
 	 * @param array $items
143 143
 	 */
144
-	public static function item_to_objects( $items ) {
144
+	public static function item_to_objects($items) {
145 145
 
146 146
         $objects = array();
147 147
 
148
-        foreach ( $items as $item ) {
149
-            $_item = new GetPaid_Form_Item( $item['id'] );
150
-            $_item->set_allow_quantities( (bool) $item['allow_quantities'] );
151
-            $_item->set_is_required( (bool) $item['required'] );
148
+        foreach ($items as $item) {
149
+            $_item = new GetPaid_Form_Item($item['id']);
150
+            $_item->set_allow_quantities((bool) $item['allow_quantities']);
151
+            $_item->set_is_required((bool) $item['required']);
152 152
             $objects[] = $_item;
153 153
         }
154 154
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/text.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,43 +7,43 @@
 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'>
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>
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 32
     </label>
33 33
 </div>
34 34
 
35 35
 <div class='form-group form-check'>
36 36
     <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
37
-    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
37
+    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
38 38
 </div>
39 39
 
40 40
 <hr class='featurette-divider mt-4'>
41 41
 
42 42
 <div class='form-group'>
43 43
     <label class="d-block">
44
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
44
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
45 45
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
46
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
46
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
47 47
     </label>
48 48
 </div>
49 49
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/textarea.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,43 +7,43 @@
 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'>
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>
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 32
     </label>
33 33
 </div>
34 34
 
35 35
 <div class='form-group form-check'>
36 36
     <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
37
-    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
37
+    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
38 38
 </div>
39 39
 
40 40
 <hr class='featurette-divider mt-4'>
41 41
 
42 42
 <div class='form-group'>
43 43
     <label class="d-block">
44
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
44
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
45 45
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
46
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
46
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
47 47
     </label>
48 48
 </div>
49 49
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/website.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,43 +7,43 @@
 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'>
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>
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 32
     </label>
33 33
 </div>
34 34
 
35 35
 <div class='form-group form-check'>
36 36
     <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
37
-    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
37
+    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
38 38
 </div>
39 39
 
40 40
 <hr class='featurette-divider mt-4'>
41 41
 
42 42
 <div class='form-group'>
43 43
     <label class="d-block">
44
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
44
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
45 45
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
46
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
46
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
47 47
     </label>
48 48
 </div>
49 49
 
Please login to merge, or discard this patch.
templates/payment-forms-admin/edit/number.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,43 +7,43 @@
 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'>
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>
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 32
     </label>
33 33
 </div>
34 34
 
35 35
 <div class='form-group form-check'>
36 36
     <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
37
-    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
37
+    <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
38 38
 </div>
39 39
 
40 40
 <hr class='featurette-divider mt-4'>
41 41
 
42 42
 <div class='form-group'>
43 43
     <label class="d-block">
44
-        <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
44
+        <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
45 45
         <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
46
-        <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
46
+        <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
47 47
     </label>
48 48
 </div>
49 49
 
Please login to merge, or discard this patch.