Passed
Push — master ( abab7b...9627b3 )
by Brian
04:22
created
templates/payment-forms-admin/edit/date.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -7,79 +7,79 @@
 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( 'Default Date', 'invoicing' ); ?></span>
24
-		<?php echo wpi_help_tip( sprintf( __( 'You can enter the shortcut "today" or enter a date matching the format Y-m-d, e.g %s', 'invoicing' ), current_time( 'Y-m-d' ) ), false, true ); ?>
25
-		<input v-model='active_form_element.default_date' placeholder="<?php esc_attr_e( 'None', 'invoicing' ); ?>" class='form-control' type="text"/>
23
+		<span><?php esc_html_e('Default Date', 'invoicing'); ?></span>
24
+		<?php echo wpi_help_tip(sprintf(__('You can enter the shortcut "today" or enter a date matching the format Y-m-d, e.g %s', 'invoicing'), current_time('Y-m-d')), false, true); ?>
25
+		<input v-model='active_form_element.default_date' placeholder="<?php esc_attr_e('None', 'invoicing'); ?>" class='form-control' type="text"/>
26 26
 	</label>
27 27
 </div>
28 28
 
29 29
 <div class='form-group'>
30 30
 	<label class="d-block">
31
-		<span><?php esc_html_e( 'Minimum Date', 'invoicing' ); ?></span>
32
-		<?php echo wpi_help_tip( sprintf( __( 'You can enter the shortcut "today" or enter a date matching the format Y-m-d, e.g %s', 'invoicing' ), current_time( 'Y-m-d' ) ), false, true ); ?>
33
-		<input v-model='active_form_element.min_date' placeholder="<?php esc_attr_e( 'None', 'invoicing' ); ?>" class='form-control' type="text"/>
34
-		<small class="form-text text-muted"><?php _e( 'Specify the minimum/earliest date (inclusively) allowed for selection.', 'invoicing' ); ?></small>
31
+		<span><?php esc_html_e('Minimum Date', 'invoicing'); ?></span>
32
+		<?php echo wpi_help_tip(sprintf(__('You can enter the shortcut "today" or enter a date matching the format Y-m-d, e.g %s', 'invoicing'), current_time('Y-m-d')), false, true); ?>
33
+		<input v-model='active_form_element.min_date' placeholder="<?php esc_attr_e('None', 'invoicing'); ?>" class='form-control' type="text"/>
34
+		<small class="form-text text-muted"><?php _e('Specify the minimum/earliest date (inclusively) allowed for selection.', 'invoicing'); ?></small>
35 35
 	</label>
36 36
 </div>
37 37
 
38 38
 <div class='form-group'>
39 39
 	<label class="d-block">
40
-		<span><?php esc_html_e( 'Maximum Date', 'invoicing' ); ?></span>
41
-		<?php echo wpi_help_tip( sprintf( __( 'You can enter the shortcut "today" or enter a date matching the format Y-m-d, e.g %s', 'invoicing' ), current_time( 'Y-m-d' ) ), false, true ); ?>
42
-		<input v-model='active_form_element.max_date' placeholder="<?php esc_attr_e( 'None', 'invoicing' ); ?>" class='form-control' type="text"/>
43
-		<small class="form-text text-muted"><?php _e( 'Specify the maximum/latest date (inclusively) allowed for selection.', 'invoicing' ); ?></small>
40
+		<span><?php esc_html_e('Maximum Date', 'invoicing'); ?></span>
41
+		<?php echo wpi_help_tip(sprintf(__('You can enter the shortcut "today" or enter a date matching the format Y-m-d, e.g %s', 'invoicing'), current_time('Y-m-d')), false, true); ?>
42
+		<input v-model='active_form_element.max_date' placeholder="<?php esc_attr_e('None', 'invoicing'); ?>" class='form-control' type="text"/>
43
+		<small class="form-text text-muted"><?php _e('Specify the maximum/latest date (inclusively) allowed for selection.', 'invoicing'); ?></small>
44 44
 	</label>
45 45
 </div>
46 46
 
47 47
 <div class='form-group'>
48 48
 	<label class="d-block">
49
-		<span><?php esc_html_e( 'Mode', 'invoicing' ) ?></span>
49
+		<span><?php esc_html_e('Mode', 'invoicing') ?></span>
50 50
 		<select class='form-control custom-select' v-model='active_form_element.mode'>
51
-			<option value='single'><?php esc_html_e( 'Users can only select a single date', 'invoicing' ); ?></option>
52
-			<option value='range'><?php esc_html_e( 'Users can select a date range', 'invoicing' ); ?></option>
53
-			<option value='multiple'><?php esc_html_e( 'Users can select multiple dates', 'invoicing' ); ?></option>
51
+			<option value='single'><?php esc_html_e('Users can only select a single date', 'invoicing'); ?></option>
52
+			<option value='range'><?php esc_html_e('Users can select a date range', 'invoicing'); ?></option>
53
+			<option value='multiple'><?php esc_html_e('Users can select multiple dates', 'invoicing'); ?></option>
54 54
 		</select>
55 55
 	</label>
56 56
 </div>
57 57
 
58 58
 <div class='form-group'>
59 59
 	<label class="d-block">
60
-		<span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span>
61
-		<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>
62
-		<small class="form-text text-muted"><?php _e( 'HTML is allowed', 'invoicing' ); ?></small>
60
+		<span><?php esc_html_e('Help Text', 'invoicing'); ?></span>
61
+		<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>
62
+		<small class="form-text text-muted"><?php _e('HTML is allowed', 'invoicing'); ?></small>
63 63
 	</label>
64 64
 </div>
65 65
 
66 66
 <div class='form-group form-check'>
67 67
 	<input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' />
68
-	<label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label>
68
+	<label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label>
69 69
 </div>
70 70
 
71 71
 <div class='form-group form-check'>
72 72
 	<input :id="active_form_element.id + '_add_meta'" v-model='active_form_element.add_meta' type='checkbox' class='form-check-input' />
73
-	<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>
73
+	<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>
74 74
 </div>
75 75
 
76 76
 <hr class='featurette-divider mt-4'>
77 77
 
78 78
 <div class='form-group'>
79 79
 	<label class="d-block">
80
-		<span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span>
80
+		<span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span>
81 81
 		<input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" />
82
-		<span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span>
82
+		<span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span>
83 83
 	</label>
84 84
 </div>
85 85
 
Please login to merge, or discard this patch.
templates/payment-forms/elements/date.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -7,35 +7,35 @@
 block discarded – undo
7 7
  * @version 1.0.19
8 8
  */
9 9
 
10
-defined( 'ABSPATH' ) || exit;
10
+defined('ABSPATH') || exit;
11 11
 
12
-$label       = empty( $label ) ? '' : wp_kses_post( $label );
13
-$label_class = sanitize_key( preg_replace( '/[^A-Za-z0-9_-]/', '-', $label ) );
14
-if ( ! empty( $required ) ) {
12
+$label       = empty($label) ? '' : wp_kses_post($label);
13
+$label_class = sanitize_key(preg_replace('/[^A-Za-z0-9_-]/', '-', $label));
14
+if (!empty($required)) {
15 15
     $label .= "<span class='text-danger'> *</span>";
16 16
 }
17 17
 
18 18
 $options = array(
19
-    'data-default-date' => empty( 'default_date' ) ? false : $default_date,
20
-    'data-min-date'     => empty( 'min_date' ) ? false : $min_date,
21
-    'data-max-date'     => empty( 'max_date' ) ? false : $max_date,
22
-    'data-mode'         => empty( 'mode' ) ? 'single' : $mode,
23
-    'data-alt-format'   => get_option( 'date_format', 'F j, Y' ),
19
+    'data-default-date' => empty('default_date') ? false : $default_date,
20
+    'data-min-date'     => empty('min_date') ? false : $min_date,
21
+    'data-max-date'     => empty('max_date') ? false : $max_date,
22
+    'data-mode'         => empty('mode') ? 'single' : $mode,
23
+    'data-alt-format'   => get_option('date_format', 'F j, Y'),
24 24
     'data-date-format'  => 'Y-m-d',
25 25
     'data-alt-input'    => 'true',
26 26
 );
27 27
 
28 28
 echo aui()->input(
29 29
     array(
30
-        'name'             => esc_attr( $id ),
31
-        'id'               => esc_attr( $id ) . uniqid( '_' ),
32
-        'placeholder'      => empty( $placeholder ) ? '' : esc_attr( $placeholder ),
33
-        'required'         => ! empty( $required ),
30
+        'name'             => esc_attr($id),
31
+        'id'               => esc_attr($id) . uniqid('_'),
32
+        'placeholder'      => empty($placeholder) ? '' : esc_attr($placeholder),
33
+        'required'         => !empty($required),
34 34
         'label'            => $label,
35 35
         'label_type'       => 'vertical',
36
-        'help_text'        => empty( $description ) ? '' : wp_kses_post( $description ),
36
+        'help_text'        => empty($description) ? '' : wp_kses_post($description),
37 37
         'type'             => 'datepicker',
38 38
         'class'            => $label_class,
39
-        'extra_attributes' => array_filter( apply_filters( 'getpaid_date_field_attributes', $options ) ),
39
+        'extra_attributes' => array_filter(apply_filters('getpaid_date_field_attributes', $options)),
40 40
     )
41 41
 );
Please login to merge, or discard this patch.
includes/data/payment-form-elements.php 1 patch
Spacing   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -9,41 +9,41 @@  discard block
 block discarded – undo
9 9
  * @version 1.0.19
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) || exit;
12
+defined('ABSPATH') || exit;
13 13
 
14 14
 return array(
15 15
 
16 16
     array(
17 17
         'type'     => 'heading',
18
-        'name'     => __( 'Heading', 'invoicing' ),
18
+        'name'     => __('Heading', 'invoicing'),
19 19
         'defaults' => array(
20 20
             'level' => 'h2',
21
-            'text'  => __( 'Heading', 'invoicing' ),
21
+            'text'  => __('Heading', 'invoicing'),
22 22
         )
23 23
     ),
24 24
 
25 25
     array(
26 26
         'type' => 'paragraph',
27
-        'name' => __( 'Paragraph', 'invoicing' ),
27
+        'name' => __('Paragraph', 'invoicing'),
28 28
         'defaults'  => array(
29
-            'text'  => __( 'Paragraph text', 'invoicing' ),
29
+            'text'  => __('Paragraph text', 'invoicing'),
30 30
         )
31 31
     ),
32 32
 
33 33
     array( 
34 34
         'type' => 'alert',
35
-        'name' => __( 'Alert', 'invoicing' ),
35
+        'name' => __('Alert', 'invoicing'),
36 36
         'defaults'  => array(
37 37
             'value'        => '',
38 38
             'class'        => 'alert-warning',
39
-            'text'         => __( 'Alert', 'invoicing' ),
39
+            'text'         => __('Alert', 'invoicing'),
40 40
             'dismissible'  => false,
41 41
         )
42 42
     ),
43 43
 
44 44
     array( 
45 45
         'type' => 'separator',
46
-        'name' => __( 'Separator', 'invoicing' ),
46
+        'name' => __('Separator', 'invoicing'),
47 47
         'defaults'  => array(
48 48
             'value'        => '',
49 49
         ),
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
 
52 52
     array(
53 53
         'type' => 'text',
54
-        'name' => __( 'Text Input', 'invoicing' ),
54
+        'name' => __('Text Input', 'invoicing'),
55 55
         'defaults'  => array(
56
-            'placeholder'  => __( 'Enter some text', 'invoicing' ),
56
+            'placeholder'  => __('Enter some text', 'invoicing'),
57 57
             'value'        => '',
58
-            'label'        => __( 'Field Label', 'invoicing' ),
58
+            'label'        => __('Field Label', 'invoicing'),
59 59
             'description'  => '',
60 60
             'required'     => false,
61 61
         )
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 
64 64
     array(
65 65
         'type' => 'textarea',
66
-        'name' => __( 'Textarea', 'invoicing' ),
66
+        'name' => __('Textarea', 'invoicing'),
67 67
         'defaults'         => array(
68
-            'placeholder'  => __( 'Enter your text here', 'invoicing' ),
68
+            'placeholder'  => __('Enter your text here', 'invoicing'),
69 69
             'value'        => '',
70
-            'label'        => __( 'Textarea Label', 'invoicing' ),
70
+            'label'        => __('Textarea Label', 'invoicing'),
71 71
             'description'  => '',
72 72
             'required'     => false,
73 73
         )
@@ -75,27 +75,27 @@  discard block
 block discarded – undo
75 75
 
76 76
     array(
77 77
         'type' => 'select',
78
-        'name' => __( 'Dropdown', 'invoicing' ),
78
+        'name' => __('Dropdown', 'invoicing'),
79 79
         'defaults'         => array(
80
-            'placeholder'  => __( 'Select a value', 'invoicing' ),
80
+            'placeholder'  => __('Select a value', 'invoicing'),
81 81
             'value'        => '',
82
-            'label'        => __( 'Dropdown Label', 'invoicing' ),
82
+            'label'        => __('Dropdown Label', 'invoicing'),
83 83
             'description'  => '',
84 84
             'required'     => false,
85 85
             'options'      => array(
86
-                esc_attr__( 'Option One', 'invoicing' ),
87
-                esc_attr__( 'Option Two', 'invoicing' ),
88
-                esc_attr__( 'Option Three', 'invoicing' )
86
+                esc_attr__('Option One', 'invoicing'),
87
+                esc_attr__('Option Two', 'invoicing'),
88
+                esc_attr__('Option Three', 'invoicing')
89 89
             ),
90 90
         )
91 91
     ),
92 92
 
93 93
     array(
94 94
         'type' => 'checkbox',
95
-        'name' => __( 'Checkbox', 'invoicing' ),
95
+        'name' => __('Checkbox', 'invoicing'),
96 96
         'defaults'         => array(
97 97
             'value'        => '',
98
-            'label'        => __( 'Checkbox Label', 'invoicing' ),
98
+            'label'        => __('Checkbox Label', 'invoicing'),
99 99
             'description'  => '',
100 100
             'required'     => false,
101 101
         )
@@ -103,23 +103,23 @@  discard block
 block discarded – undo
103 103
 
104 104
     array( 
105 105
         'type' => 'radio',
106
-        'name' => __( 'Radio', 'invoicing' ),
106
+        'name' => __('Radio', 'invoicing'),
107 107
         'defaults'     => array(
108
-            'label'    => __( 'Select one choice', 'invoicing' ),
108
+            'label'    => __('Select one choice', 'invoicing'),
109 109
             'options'  => array(
110
-                esc_attr__( 'Choice One', 'invoicing' ),
111
-                esc_attr__( 'Choice Two', 'invoicing' ),
112
-                esc_attr__( 'Choice Three', 'invoicing' )
110
+                esc_attr__('Choice One', 'invoicing'),
111
+                esc_attr__('Choice Two', 'invoicing'),
112
+                esc_attr__('Choice Three', 'invoicing')
113 113
             ),
114 114
         )
115 115
     ),
116 116
 
117 117
     array( 
118 118
         'type' => 'date',
119
-        'name' => __( 'Date', 'invoicing' ),
119
+        'name' => __('Date', 'invoicing'),
120 120
         'defaults' => array(
121 121
             'value'        => '',
122
-            'label'        => __( 'Date', 'invoicing' ),
122
+            'label'        => __('Date', 'invoicing'),
123 123
             'description'  => '',
124 124
             'single'       => 'single',
125 125
             'required'     => false,
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
 
129 129
     array( 
130 130
         'type' => 'time',
131
-        'name' => __( 'Time', 'invoicing' ),
131
+        'name' => __('Time', 'invoicing'),
132 132
         'defaults' => array(
133 133
             'value'        => '',
134
-            'label'        => __( 'Time', 'invoicing' ),
134
+            'label'        => __('Time', 'invoicing'),
135 135
             'description'  => '',
136 136
             'required'     => false,
137 137
         )
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
 
140 140
     array( 
141 141
         'type' => 'number',
142
-        'name' => __( 'Number', 'invoicing' ),
142
+        'name' => __('Number', 'invoicing'),
143 143
         'defaults' => array(
144 144
             'placeholder'  => '',
145 145
             'value'        => '',
146
-            'label'        => __( 'Number', 'invoicing' ),
146
+            'label'        => __('Number', 'invoicing'),
147 147
             'description'  => '',
148 148
             'required'     => false,
149 149
         )
@@ -151,11 +151,11 @@  discard block
 block discarded – undo
151 151
 
152 152
     array( 
153 153
         'type' => 'website',
154
-        'name' => __( 'Website', 'invoicing' ),
154
+        'name' => __('Website', 'invoicing'),
155 155
         'defaults' => array(
156 156
             'placeholder'  => 'http://example.com',
157 157
             'value'        => '',
158
-            'label'        => __( 'Website', 'invoicing' ),
158
+            'label'        => __('Website', 'invoicing'),
159 159
             'description'  => '',
160 160
             'required'     => false,
161 161
         )
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
 
164 164
     array( 
165 165
         'type' => 'email',
166
-        'name' => __( 'Email', 'invoicing' ),
166
+        'name' => __('Email', 'invoicing'),
167 167
         'defaults'  => array(
168 168
             'placeholder'  => '[email protected]',
169 169
             'value'        => '',
170
-            'label'        => __( 'Email Address', 'invoicing' ),
170
+            'label'        => __('Email Address', 'invoicing'),
171 171
             'description'  => '',
172 172
             'required'     => false,
173 173
         )
@@ -175,31 +175,31 @@  discard block
 block discarded – undo
175 175
 
176 176
     array(
177 177
         'type' => 'file_upload',
178
-        'name' => __( 'File Upload', 'invoicing' ),
178
+        'name' => __('File Upload', 'invoicing'),
179 179
         'defaults'  => array(
180 180
             'value'         => '',
181
-            'label'         => __( 'Upload File', 'invoicing' ),
181
+            'label'         => __('Upload File', 'invoicing'),
182 182
             'description'   => '',
183 183
             'required'      => false,
184 184
             'max_file_num'  => 1,
185
-            'file_types'    => array( 'jpg|jpeg|jpe', 'gif', 'png' ),
185
+            'file_types'    => array('jpg|jpeg|jpe', 'gif', 'png'),
186 186
         )
187 187
     ),
188 188
 
189 189
     array( 
190 190
         'type' => 'address',
191
-        'name' => __( 'Address', 'invoicing' ),
191
+        'name' => __('Address', 'invoicing'),
192 192
         'defaults'  => array(
193 193
 
194 194
             'address_type'            => 'billing',
195
-            'billing_address_title'   => __( 'Billing Address', 'invoicing' ),
196
-            'shipping_address_title'  => __( 'Shipping Address', 'invoicing' ),
197
-            'shipping_address_toggle' => __( 'Same billing & shipping address.', 'invoicing' ),
195
+            'billing_address_title'   => __('Billing Address', 'invoicing'),
196
+            'shipping_address_title'  => __('Shipping Address', 'invoicing'),
197
+            'shipping_address_toggle' => __('Same billing & shipping address.', 'invoicing'),
198 198
             'fields'                  => array(
199 199
                 array(
200 200
                     'placeholder'  => 'Jon',
201 201
                     'value'        => '',
202
-                    'label'        => __( 'First Name', 'invoicing' ),
202
+                    'label'        => __('First Name', 'invoicing'),
203 203
                     'description'  => '',
204 204
                     'required'     => false,
205 205
                     'visible'      => true,
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 array(
211 211
                     'placeholder'  => 'Snow',
212 212
                     'value'        => '',
213
-                    'label'        => __( 'Last Name', 'invoicing' ),
213
+                    'label'        => __('Last Name', 'invoicing'),
214 214
                     'description'  => '',
215 215
                     'required'     => false,
216 216
                     'visible'      => true,
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 array(
222 222
                     'placeholder'  => '',
223 223
                     'value'        => '',
224
-                    'label'        => __( 'Address', 'invoicing' ),
224
+                    'label'        => __('Address', 'invoicing'),
225 225
                     'description'  => '',
226 226
                     'required'     => false,
227 227
                     'visible'      => true,
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
                 array(
233 233
                     'placeholder'  => '',
234 234
                     'value'        => '',
235
-                    'label'        => __( 'City', 'invoicing' ),
235
+                    'label'        => __('City', 'invoicing'),
236 236
                     'description'  => '',
237 237
                     'required'     => false,
238 238
                     'visible'      => true,
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
                 ),
242 242
 
243 243
                 array(
244
-                    'placeholder'  => __( 'Select your country' ),
244
+                    'placeholder'  => __('Select your country'),
245 245
                     'value'        => '',
246
-                    'label'        => __( 'Country', 'invoicing' ),
246
+                    'label'        => __('Country', 'invoicing'),
247 247
                     'description'  => '',
248 248
                     'required'     => false,
249 249
                     'visible'      => true,
@@ -252,9 +252,9 @@  discard block
 block discarded – undo
252 252
                 ),
253 253
 
254 254
                 array(
255
-                    'placeholder'  => __( 'Choose a state', 'invoicing' ),
255
+                    'placeholder'  => __('Choose a state', 'invoicing'),
256 256
                     'value'        => '',
257
-                    'label'        => __( 'State / Province', 'invoicing' ),
257
+                    'label'        => __('State / Province', 'invoicing'),
258 258
                     'description'  => '',
259 259
                     'required'     => false,
260 260
                     'visible'      => true,
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
                 array(
266 266
                     'placeholder'  => '',
267 267
                     'value'        => '',
268
-                    'label'        => __( 'ZIP / Postcode', 'invoicing' ),
268
+                    'label'        => __('ZIP / Postcode', 'invoicing'),
269 269
                     'description'  => '',
270 270
                     'required'     => false,
271 271
                     'visible'      => true,
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
                 array(
277 277
                     'placeholder'  => '',
278 278
                     'value'        => '',
279
-                    'label'        => __( 'Phone', 'invoicing' ),
279
+                    'label'        => __('Phone', 'invoicing'),
280 280
                     'description'  => '',
281 281
                     'required'     => false,
282 282
                     'visible'      => true,
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
                 array(
288 288
                     'placeholder'  => '',
289 289
                     'value'        => '',
290
-                    'label'        => __( 'Company', 'invoicing' ),
290
+                    'label'        => __('Company', 'invoicing'),
291 291
                     'description'  => '',
292 292
                     'required'     => false,
293 293
                     'visible'      => false,
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                 array(
299 299
                     'placeholder'  => '',
300 300
                     'value'        => '',
301
-                    'label'        => __( 'Company ID', 'invoicing' ),
301
+                    'label'        => __('Company ID', 'invoicing'),
302 302
                     'description'  => '',
303 303
                     'required'     => false,
304 304
                     'visible'      => false,
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                 array(
310 310
                     'placeholder'  => '',
311 311
                     'value'        => '',
312
-                    'label'        => __( 'VAT Number', 'invoicing' ),
312
+                    'label'        => __('VAT Number', 'invoicing'),
313 313
                     'description'  => '',
314 314
                     'required'     => false,
315 315
                     'visible'      => false,
@@ -322,11 +322,11 @@  discard block
 block discarded – undo
322 322
 
323 323
     array( 
324 324
         'type' => 'billing_email',
325
-        'name' => __( 'Billing Email', 'invoicing' ),
325
+        'name' => __('Billing Email', 'invoicing'),
326 326
         'defaults'  => array(
327 327
             'placeholder'  => '[email protected]',
328 328
             'value'        => '',
329
-            'label'        => __( 'Billing Email', 'invoicing' ),
329
+            'label'        => __('Billing Email', 'invoicing'),
330 330
             'description'  => '',
331 331
             'premade'      => true,
332 332
         )
@@ -334,18 +334,18 @@  discard block
 block discarded – undo
334 334
 
335 335
     array( 
336 336
         'type' => 'discount',
337
-        'name' => __( 'Discount Input', 'invoicing' ),
337
+        'name' => __('Discount Input', 'invoicing'),
338 338
         'defaults'  => array(
339 339
             'value'        => '',
340
-            'input_label'  => __( 'Coupon Code', 'invoicing' ),
341
-            'button_label' => __( 'Apply Coupon', 'invoicing' ),
342
-            'description'  => __( 'Have a discount code? Enter it above.', 'invoicing' ),
340
+            'input_label'  => __('Coupon Code', 'invoicing'),
341
+            'button_label' => __('Apply Coupon', 'invoicing'),
342
+            'description'  => __('Have a discount code? Enter it above.', 'invoicing'),
343 343
         )
344 344
     ),
345 345
 
346 346
     array( 
347 347
         'type' => 'items',
348
-        'name' => __( 'Items', 'invoicing' ),
348
+        'name' => __('Items', 'invoicing'),
349 349
         'defaults'  => array(
350 350
             'value'        => '',
351 351
             'items_type'   => 'total',
@@ -357,22 +357,22 @@  discard block
 block discarded – undo
357 357
 
358 358
     array( 
359 359
         'type' => 'price_input',
360
-        'name' => __( 'Price Input', 'invoicing' ),
360
+        'name' => __('Price Input', 'invoicing'),
361 361
         'defaults'  => array(
362 362
             'placeholder'  => wpinv_format_amount(0),
363 363
             'value'        => wpinv_format_amount(0),
364 364
             'minimum'      => wpinv_format_amount(0),
365
-            'label'        => __( 'Enter Amount', 'invoicing' ),
365
+            'label'        => __('Enter Amount', 'invoicing'),
366 366
             'description'  => '',
367 367
         )
368 368
     ),
369 369
 
370 370
     array( 
371 371
         'type' => 'price_select',
372
-        'name' => __( 'Price Select', 'invoicing' ),
372
+        'name' => __('Price Select', 'invoicing'),
373 373
         'defaults'  => array(
374 374
             'description'  => '',
375
-            'label'        => __( 'Select Amount', 'invoicing' ),
375
+            'label'        => __('Select Amount', 'invoicing'),
376 376
             'options'      => 'Option 1|10, Option 2|20',
377 377
             'placeholder'  => '',
378 378
             'select_type'  => 'select',
@@ -381,39 +381,39 @@  discard block
 block discarded – undo
381 381
 
382 382
     array( 
383 383
         'type'       => 'pay_button',
384
-        'name'       => __( 'Payment Button', 'invoicing' ),
384
+        'name'       => __('Payment Button', 'invoicing'),
385 385
         'defaults'   => array(
386 386
             'value'          => '',
387 387
             'class'          => 'btn-primary',
388
-            'label'          => __( 'Pay %price% »', 'invoicing' ),
389
-            'free'           => __( 'Continue »', 'invoicing' ),
390
-            'description'    => __( 'By continuing with our payment, you are agreeing to our privacy policy and terms of service.', 'invoicing' ),
388
+            'label'          => __('Pay %price% »', 'invoicing'),
389
+            'free'           => __('Continue »', 'invoicing'),
390
+            'description'    => __('By continuing with our payment, you are agreeing to our privacy policy and terms of service.', 'invoicing'),
391 391
             'premade'        => true,
392 392
         )
393 393
     ),
394 394
 
395 395
     array(
396 396
         'type'       => 'gateway_select',
397
-        'name'       => __( 'Gateway Select', 'invoicing' ),
397
+        'name'       => __('Gateway Select', 'invoicing'),
398 398
         'defaults'   => array(
399
-            'text'    => __( 'Select Payment Method', 'invoicing' ),
399
+            'text'    => __('Select Payment Method', 'invoicing'),
400 400
             'premade' => true,
401 401
         )
402 402
     ),
403 403
 
404 404
     array( 
405 405
         'type'       => 'total_payable',
406
-        'name'       => __( 'Total Payable', 'invoicing' ),
406
+        'name'       => __('Total Payable', 'invoicing'),
407 407
         'defaults'   => array(
408
-            'text' => __( 'Total to pay:', 'invoicing' ),
408
+            'text' => __('Total to pay:', 'invoicing'),
409 409
         )
410 410
     ),
411 411
 
412 412
     array( 
413 413
         'type'       => 'ip_address',
414
-        'name'       => __( 'IP Address', 'invoicing' ),
414
+        'name'       => __('IP Address', 'invoicing'),
415 415
         'defaults'   => array(
416
-            'text' => __( 'Your IP address is:', 'invoicing' ),
416
+            'text' => __('Your IP address is:', 'invoicing'),
417 417
         )
418 418
     )
419 419
 );
Please login to merge, or discard this patch.