@@ -7,6 +7,6 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | ?> |
| 12 | 12 | <hr class="featurette-divider" /> |
| 13 | 13 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | |
| 11 | -defined( 'ABSPATH' ) || exit; |
|
| 11 | +defined('ABSPATH') || exit; |
|
| 12 | 12 | |
| 13 | 13 | ?> |
| 14 | 14 | <component :is='form_element.level' v-html='form_element.text'></component> |
| 15 | 15 | \ No newline at end of file |
@@ -7,16 +7,16 @@ discard block |
||
| 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,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | <div class="input-group"> |
| 28 | 28 | |
| 29 | - <?php if ( $position == 'left' ) : ?> |
|
| 29 | + <?php if ($position == 'left') : ?> |
|
| 30 | 30 | <div class="input-group-prepend"> |
| 31 | 31 | <span class="input-group-text"><?php echo wpinv_currency_symbol() ?></span> |
| 32 | 32 | </div> |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | <input :placeholder='form_element.placeholder' class='form-control' type='text'> |
| 36 | 36 | |
| 37 | - <?php if ( $position == 'right' ) : ?> |
|
| 37 | + <?php if ($position == 'right') : ?> |
|
| 38 | 38 | <div class="input-group-append"> |
| 39 | 39 | <span class="input-group-text"><?php echo wpinv_currency_symbol() ?></span> |
| 40 | 40 | </div> |
@@ -7,7 +7,7 @@ |
||
| 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-check'> |
@@ -7,11 +7,11 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | echo aui()->alert( |
| 13 | 13 | array( |
| 14 | - 'content' => esc_html__( 'The total payable amount will appear here', 'invoicing' ), |
|
| 14 | + 'content' => esc_html__('The total payable amount will appear here', 'invoicing'), |
|
| 15 | 15 | 'type' => 'info', |
| 16 | 16 | ) |
| 17 | 17 | ); |
@@ -7,10 +7,10 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | <span>{{form_element.text}}</span> |
| 14 | 14 | <a target='_blank' href="#"> |
| 15 | - <?php echo sanitize_text_field( wpinv_get_ip() ); ?> <i class='fa fa-external-link-square' aria-hidden='true'></i> |
|
| 15 | + <?php echo sanitize_text_field(wpinv_get_ip()); ?> <i class='fa fa-external-link-square' aria-hidden='true'></i> |
|
| 16 | 16 | </a> |
@@ -7,11 +7,11 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | echo aui()->alert( |
| 13 | 13 | array( |
| 14 | - 'content' => esc_html__( 'The gateway select box will appear here', 'invoicing' ), |
|
| 14 | + 'content' => esc_html__('The gateway select box will appear here', 'invoicing'), |
|
| 15 | 15 | 'type' => 'info', |
| 16 | 16 | ) |
| 17 | 17 | ); |
@@ -9,41 +9,41 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 hear', 'invoicing' ), |
|
| 68 | + 'placeholder' => __('Enter your text hear', '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 |
||
| 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 |
||
| 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 | 'required' => false, |
| 125 | 125 | ) |
@@ -127,10 +127,10 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | array( |
| 129 | 129 | 'type' => 'time', |
| 130 | - 'name' => __( 'Time', 'invoicing' ), |
|
| 130 | + 'name' => __('Time', 'invoicing'), |
|
| 131 | 131 | 'defaults' => array( |
| 132 | 132 | 'value' => '', |
| 133 | - 'label' => __( 'Time', 'invoicing' ), |
|
| 133 | + 'label' => __('Time', 'invoicing'), |
|
| 134 | 134 | 'description' => '', |
| 135 | 135 | 'required' => false, |
| 136 | 136 | ) |
@@ -138,11 +138,11 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | array( |
| 140 | 140 | 'type' => 'number', |
| 141 | - 'name' => __( 'Number', 'invoicing' ), |
|
| 141 | + 'name' => __('Number', 'invoicing'), |
|
| 142 | 142 | 'defaults' => array( |
| 143 | 143 | 'placeholder' => '', |
| 144 | 144 | 'value' => '', |
| 145 | - 'label' => __( 'Number', 'invoicing' ), |
|
| 145 | + 'label' => __('Number', 'invoicing'), |
|
| 146 | 146 | 'description' => '', |
| 147 | 147 | 'required' => false, |
| 148 | 148 | ) |
@@ -150,11 +150,11 @@ discard block |
||
| 150 | 150 | |
| 151 | 151 | array( |
| 152 | 152 | 'type' => 'website', |
| 153 | - 'name' => __( 'Website', 'invoicing' ), |
|
| 153 | + 'name' => __('Website', 'invoicing'), |
|
| 154 | 154 | 'defaults' => array( |
| 155 | 155 | 'placeholder' => 'http://example.com', |
| 156 | 156 | 'value' => '', |
| 157 | - 'label' => __( 'Website', 'invoicing' ), |
|
| 157 | + 'label' => __('Website', 'invoicing'), |
|
| 158 | 158 | 'description' => '', |
| 159 | 159 | 'required' => false, |
| 160 | 160 | ) |
@@ -162,11 +162,11 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | array( |
| 164 | 164 | 'type' => 'email', |
| 165 | - 'name' => __( 'Email', 'invoicing' ), |
|
| 165 | + 'name' => __('Email', 'invoicing'), |
|
| 166 | 166 | 'defaults' => array( |
| 167 | 167 | 'placeholder' => '[email protected]', |
| 168 | 168 | 'value' => '', |
| 169 | - 'label' => __( 'Email Address', 'invoicing' ), |
|
| 169 | + 'label' => __('Email Address', 'invoicing'), |
|
| 170 | 170 | 'description' => '', |
| 171 | 171 | 'required' => false, |
| 172 | 172 | ) |
@@ -174,14 +174,14 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | array( |
| 176 | 176 | 'type' => 'address', |
| 177 | - 'name' => __( 'Address', 'invoicing' ), |
|
| 177 | + 'name' => __('Address', 'invoicing'), |
|
| 178 | 178 | 'defaults' => array( |
| 179 | 179 | |
| 180 | 180 | 'fields' => array( |
| 181 | 181 | array( |
| 182 | 182 | 'placeholder' => 'Jon', |
| 183 | 183 | 'value' => '', |
| 184 | - 'label' => __( 'First Name', 'invoicing' ), |
|
| 184 | + 'label' => __('First Name', 'invoicing'), |
|
| 185 | 185 | 'description' => '', |
| 186 | 186 | 'required' => false, |
| 187 | 187 | 'visible' => true, |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | array( |
| 192 | 192 | 'placeholder' => 'Snow', |
| 193 | 193 | 'value' => '', |
| 194 | - 'label' => __( 'Last Name', 'invoicing' ), |
|
| 194 | + 'label' => __('Last Name', 'invoicing'), |
|
| 195 | 195 | 'description' => '', |
| 196 | 196 | 'required' => false, |
| 197 | 197 | 'visible' => true, |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | array( |
| 202 | 202 | 'placeholder' => '', |
| 203 | 203 | 'value' => '', |
| 204 | - 'label' => __( 'Address', 'invoicing' ), |
|
| 204 | + 'label' => __('Address', 'invoicing'), |
|
| 205 | 205 | 'description' => '', |
| 206 | 206 | 'required' => false, |
| 207 | 207 | 'visible' => true, |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | array( |
| 212 | 212 | 'placeholder' => '', |
| 213 | 213 | 'value' => '', |
| 214 | - 'label' => __( 'City', 'invoicing' ), |
|
| 214 | + 'label' => __('City', 'invoicing'), |
|
| 215 | 215 | 'description' => '', |
| 216 | 216 | 'required' => false, |
| 217 | 217 | 'visible' => true, |
@@ -219,9 +219,9 @@ discard block |
||
| 219 | 219 | ), |
| 220 | 220 | |
| 221 | 221 | array( |
| 222 | - 'placeholder' => __( 'Select your country' ), |
|
| 222 | + 'placeholder' => __('Select your country'), |
|
| 223 | 223 | 'value' => '', |
| 224 | - 'label' => __( 'Country', 'invoicing' ), |
|
| 224 | + 'label' => __('Country', 'invoicing'), |
|
| 225 | 225 | 'description' => '', |
| 226 | 226 | 'required' => false, |
| 227 | 227 | 'visible' => true, |
@@ -229,9 +229,9 @@ discard block |
||
| 229 | 229 | ), |
| 230 | 230 | |
| 231 | 231 | array( |
| 232 | - 'placeholder' => __( 'Choose a state', 'invoicing' ), |
|
| 232 | + 'placeholder' => __('Choose a state', 'invoicing'), |
|
| 233 | 233 | 'value' => '', |
| 234 | - 'label' => __( 'State / Province', 'invoicing' ), |
|
| 234 | + 'label' => __('State / Province', 'invoicing'), |
|
| 235 | 235 | 'description' => '', |
| 236 | 236 | 'required' => false, |
| 237 | 237 | 'visible' => true, |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | array( |
| 242 | 242 | 'placeholder' => '', |
| 243 | 243 | 'value' => '', |
| 244 | - 'label' => __( 'ZIP / Postcode', 'invoicing' ), |
|
| 244 | + 'label' => __('ZIP / Postcode', 'invoicing'), |
|
| 245 | 245 | 'description' => '', |
| 246 | 246 | 'required' => false, |
| 247 | 247 | 'visible' => true, |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | array( |
| 252 | 252 | 'placeholder' => '', |
| 253 | 253 | 'value' => '', |
| 254 | - 'label' => __( 'Phone', 'invoicing' ), |
|
| 254 | + 'label' => __('Phone', 'invoicing'), |
|
| 255 | 255 | 'description' => '', |
| 256 | 256 | 'required' => false, |
| 257 | 257 | 'visible' => true, |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | array( |
| 262 | 262 | 'placeholder' => '', |
| 263 | 263 | 'value' => '', |
| 264 | - 'label' => __( 'Company', 'invoicing' ), |
|
| 264 | + 'label' => __('Company', 'invoicing'), |
|
| 265 | 265 | 'description' => '', |
| 266 | 266 | 'required' => false, |
| 267 | 267 | 'visible' => false, |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | array( |
| 272 | 272 | 'placeholder' => '', |
| 273 | 273 | 'value' => '', |
| 274 | - 'label' => __( 'VAT Number', 'invoicing' ), |
|
| 274 | + 'label' => __('VAT Number', 'invoicing'), |
|
| 275 | 275 | 'description' => '', |
| 276 | 276 | 'required' => false, |
| 277 | 277 | 'visible' => false, |
@@ -283,11 +283,11 @@ discard block |
||
| 283 | 283 | |
| 284 | 284 | array( |
| 285 | 285 | 'type' => 'billing_email', |
| 286 | - 'name' => __( 'Billing Email', 'invoicing' ), |
|
| 286 | + 'name' => __('Billing Email', 'invoicing'), |
|
| 287 | 287 | 'defaults' => array( |
| 288 | 288 | 'placeholder' => '[email protected]', |
| 289 | 289 | 'value' => '', |
| 290 | - 'label' => __( 'Billing Email', 'invoicing' ), |
|
| 290 | + 'label' => __('Billing Email', 'invoicing'), |
|
| 291 | 291 | 'description' => '', |
| 292 | 292 | 'premade' => true, |
| 293 | 293 | ) |
@@ -295,18 +295,18 @@ discard block |
||
| 295 | 295 | |
| 296 | 296 | array( |
| 297 | 297 | 'type' => 'discount', |
| 298 | - 'name' => __( 'Discount Input', 'invoicing' ), |
|
| 298 | + 'name' => __('Discount Input', 'invoicing'), |
|
| 299 | 299 | 'defaults' => array( |
| 300 | 300 | 'value' => '', |
| 301 | - 'input_label' => __( 'Coupon Code', 'invoicing' ), |
|
| 302 | - 'button_label' => __( 'Apply Coupon', 'invoicing' ), |
|
| 303 | - 'description' => __( 'Have a discount code? Enter it above.', 'invoicing' ), |
|
| 301 | + 'input_label' => __('Coupon Code', 'invoicing'), |
|
| 302 | + 'button_label' => __('Apply Coupon', 'invoicing'), |
|
| 303 | + 'description' => __('Have a discount code? Enter it above.', 'invoicing'), |
|
| 304 | 304 | ) |
| 305 | 305 | ), |
| 306 | 306 | |
| 307 | 307 | array( |
| 308 | 308 | 'type' => 'items', |
| 309 | - 'name' => __( 'Items', 'invoicing' ), |
|
| 309 | + 'name' => __('Items', 'invoicing'), |
|
| 310 | 310 | 'defaults' => array( |
| 311 | 311 | 'value' => '', |
| 312 | 312 | 'items_type' => 'total', |
@@ -318,22 +318,22 @@ discard block |
||
| 318 | 318 | |
| 319 | 319 | array( |
| 320 | 320 | 'type' => 'price_input', |
| 321 | - 'name' => __( 'Price Input', 'invoicing' ), |
|
| 321 | + 'name' => __('Price Input', 'invoicing'), |
|
| 322 | 322 | 'defaults' => array( |
| 323 | 323 | 'placeholder' => wpinv_format_amount(0), |
| 324 | 324 | 'value' => wpinv_format_amount(0), |
| 325 | 325 | 'minimum' => wpinv_format_amount(0), |
| 326 | - 'label' => __( 'Enter Amount', 'invoicing' ), |
|
| 326 | + 'label' => __('Enter Amount', 'invoicing'), |
|
| 327 | 327 | 'description' => '', |
| 328 | 328 | ) |
| 329 | 329 | ), |
| 330 | 330 | |
| 331 | 331 | array( |
| 332 | 332 | 'type' => 'price_select', |
| 333 | - 'name' => __( 'Price Select', 'invoicing' ), |
|
| 333 | + 'name' => __('Price Select', 'invoicing'), |
|
| 334 | 334 | 'defaults' => array( |
| 335 | 335 | 'description' => '', |
| 336 | - 'label' => __( 'Select Amount', 'invoicing' ), |
|
| 336 | + 'label' => __('Select Amount', 'invoicing'), |
|
| 337 | 337 | 'options' => 'Option 1|10, Option 2|20', |
| 338 | 338 | 'placeholder' => '', |
| 339 | 339 | 'select_type' => 'select', |
@@ -342,38 +342,38 @@ discard block |
||
| 342 | 342 | |
| 343 | 343 | array( |
| 344 | 344 | 'type' => 'pay_button', |
| 345 | - 'name' => __( 'Payment Button', 'invoicing' ), |
|
| 345 | + 'name' => __('Payment Button', 'invoicing'), |
|
| 346 | 346 | 'defaults' => array( |
| 347 | 347 | 'value' => '', |
| 348 | 348 | 'class' => 'btn-primary', |
| 349 | - 'label' => __( 'Pay Now »', 'invoicing' ), |
|
| 350 | - 'description' => __( 'By continuing with our payment, you are agreeing to our privacy policy and terms of service.', 'invoicing' ), |
|
| 349 | + 'label' => __('Pay Now »', 'invoicing'), |
|
| 350 | + 'description' => __('By continuing with our payment, you are agreeing to our privacy policy and terms of service.', 'invoicing'), |
|
| 351 | 351 | 'premade' => true, |
| 352 | 352 | ) |
| 353 | 353 | ), |
| 354 | 354 | |
| 355 | 355 | array( |
| 356 | 356 | 'type' => 'gateway_select', |
| 357 | - 'name' => __( 'Gateway Select', 'invoicing' ), |
|
| 357 | + 'name' => __('Gateway Select', 'invoicing'), |
|
| 358 | 358 | 'defaults' => array( |
| 359 | - 'text' => __( 'Select Payment Method', 'invoicing' ), |
|
| 359 | + 'text' => __('Select Payment Method', 'invoicing'), |
|
| 360 | 360 | 'premade' => true, |
| 361 | 361 | ) |
| 362 | 362 | ), |
| 363 | 363 | |
| 364 | 364 | array( |
| 365 | 365 | 'type' => 'total_payable', |
| 366 | - 'name' => __( 'Total Payable', 'invoicing' ), |
|
| 366 | + 'name' => __('Total Payable', 'invoicing'), |
|
| 367 | 367 | 'defaults' => array( |
| 368 | - 'text' => __( 'Total to pay:', 'invoicing' ), |
|
| 368 | + 'text' => __('Total to pay:', 'invoicing'), |
|
| 369 | 369 | ) |
| 370 | 370 | ), |
| 371 | 371 | |
| 372 | 372 | array( |
| 373 | 373 | 'type' => 'ip_address', |
| 374 | - 'name' => __( 'IP Address', 'invoicing' ), |
|
| 374 | + 'name' => __('IP Address', 'invoicing'), |
|
| 375 | 375 | 'defaults' => array( |
| 376 | - 'text' => __( 'Your IP address is:', 'invoicing' ), |
|
| 376 | + 'text' => __('Your IP address is:', 'invoicing'), |
|
| 377 | 377 | ) |
| 378 | 378 | ) |
| 379 | 379 | ); |
@@ -7,32 +7,32 @@ |
||
| 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> |