@@ -7,57 +7,57 @@ discard block |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | -if ( empty( $fields ) ) { |
|
| 12 | +if (empty($fields)) { |
|
| 13 | 13 | return; |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | // A prefix for all ids (so that a form can be included in the same page multiple times). |
| 17 | -$uniqid = uniqid( '_' ); |
|
| 17 | +$uniqid = uniqid('_'); |
|
| 18 | 18 | |
| 19 | 19 | // Prepare the user's country. |
| 20 | -if ( ! empty( $form->invoice ) ) { |
|
| 20 | +if (!empty($form->invoice)) { |
|
| 21 | 21 | $country = $form->invoice->get_country(); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | -if ( empty( $country ) ) { |
|
| 25 | - $country = empty( $country ) ? getpaid_get_ip_country() : $country; |
|
| 26 | - $country = empty( $country ) ? wpinv_get_default_country() : $country; |
|
| 24 | +if (empty($country)) { |
|
| 25 | + $country = empty($country) ? getpaid_get_ip_country() : $country; |
|
| 26 | + $country = empty($country) ? wpinv_get_default_country() : $country; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // A prefix for all ids (so that a form can be included in the same page multiple times). |
| 30 | -$uniqid = uniqid( '_' ); |
|
| 30 | +$uniqid = uniqid('_'); |
|
| 31 | 31 | |
| 32 | -$address_type = empty( $address_type ) ? 'billing' : $address_type; |
|
| 32 | +$address_type = empty($address_type) ? 'billing' : $address_type; |
|
| 33 | 33 | |
| 34 | 34 | ?> |
| 35 | 35 | |
| 36 | -<?php if ( 'both' === $address_type ) : ?> |
|
| 36 | +<?php if ('both' === $address_type) : ?> |
|
| 37 | 37 | |
| 38 | 38 | <!-- Start Billing/Shipping Address Title --> |
| 39 | 39 | <h4 class="mb-3 getpaid-shipping-billing-address-title"> |
| 40 | - <?php esc_html_e( 'Billing / Shipping Address', 'invoicing' ); ?> |
|
| 40 | + <?php esc_html_e('Billing / Shipping Address', 'invoicing'); ?> |
|
| 41 | 41 | </h4> |
| 42 | 42 | <!-- End Billing Address Title --> |
| 43 | 43 | |
| 44 | 44 | <!-- Start Billing Address Title --> |
| 45 | 45 | <h4 class="mb-3 getpaid-billing-address-title"> |
| 46 | - <?php esc_html_e( 'Billing Address', 'invoicing' ); ?> |
|
| 46 | + <?php esc_html_e('Billing Address', 'invoicing'); ?> |
|
| 47 | 47 | </h4> |
| 48 | 48 | <!-- End Billing Address Title --> |
| 49 | 49 | |
| 50 | 50 | <?php endif; ?> |
| 51 | 51 | |
| 52 | 52 | |
| 53 | -<?php if ( 'both' === $address_type || 'billing' === $address_type ) : ?> |
|
| 53 | +<?php if ('both' === $address_type || 'billing' === $address_type) : ?> |
|
| 54 | 54 | |
| 55 | 55 | <!-- Start Billing Address --> |
| 56 | 56 | <div class="getpaid-billing-address-wrapper"> |
| 57 | 57 | <?php |
| 58 | 58 | $field_type = 'billing'; |
| 59 | - include plugin_dir_path( __FILE__ ) . 'address-fields.php'; |
|
| 60 | - do_action( 'getpaid_after_payment_form_billing_fields', $form ); |
|
| 59 | + include plugin_dir_path(__FILE__) . 'address-fields.php'; |
|
| 60 | + do_action('getpaid_after_payment_form_billing_fields', $form); |
|
| 61 | 61 | ?> |
| 62 | 62 | </div> |
| 63 | 63 | <!-- End Billing Address --> |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | <?php endif; ?> |
| 66 | 66 | |
| 67 | 67 | |
| 68 | -<?php if ( 'both' === $address_type ) : ?> |
|
| 68 | +<?php if ('both' === $address_type) : ?> |
|
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | <?php |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | 'name' => 'same-shipping-address', |
| 77 | 77 | 'id' => "shipping-toggle$uniqid", |
| 78 | 78 | 'required' => false, |
| 79 | - 'label' => wp_kses_post( $shipping_address_toggle ), |
|
| 79 | + 'label' => wp_kses_post($shipping_address_toggle), |
|
| 80 | 80 | 'value' => 1, |
| 81 | 81 | 'checked' => true, |
| 82 | 82 | 'class' => 'w-auto', |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | <!-- Start Shipping Address Title --> |
| 90 | 90 | <h4 class="mb-3 getpaid-shipping-address-title"> |
| 91 | - <?php esc_html_e( 'Shipping Address', 'invoicing' ); ?> |
|
| 91 | + <?php esc_html_e('Shipping Address', 'invoicing'); ?> |
|
| 92 | 92 | </h4> |
| 93 | 93 | <!-- End Shipping Address Title --> |
| 94 | 94 | |
@@ -97,14 +97,14 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | |
| 99 | 99 | |
| 100 | -<?php if ( 'both' === $address_type || 'shipping' === $address_type ) : ?> |
|
| 100 | +<?php if ('both' === $address_type || 'shipping' === $address_type) : ?> |
|
| 101 | 101 | |
| 102 | 102 | <!-- Start Shipping Address --> |
| 103 | 103 | <div class="getpaid-shipping-address-wrapper"> |
| 104 | 104 | <?php |
| 105 | 105 | $field_type = 'shipping'; |
| 106 | - include plugin_dir_path( __FILE__ ) . 'address-fields.php'; |
|
| 107 | - do_action( 'getpaid_after_payment_form_shipping_fields', $form ); |
|
| 106 | + include plugin_dir_path(__FILE__) . 'address-fields.php'; |
|
| 107 | + do_action('getpaid_after_payment_form_shipping_fields', $form); |
|
| 108 | 108 | ?> |
| 109 | 109 | </div> |
| 110 | 110 | <!-- End Shipping Address --> |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | <p> |
| 4 | 4 | <?php |
| 5 | 5 | echo wp_sprintf( |
| 6 | - wp_kses_post( __( 'Your payment is processing. This page will reload automatically in 10 seconds. If it does not, click <a href="%s">here</a>.', 'invoicing' ) ), |
|
| 7 | - esc_url_raw( remove_query_arg( 'payment-confirm' ) ) |
|
| 6 | + wp_kses_post(__('Your payment is processing. This page will reload automatically in 10 seconds. If it does not, click <a href="%s">here</a>.', 'invoicing')), |
|
| 7 | + esc_url_raw(remove_query_arg('payment-confirm')) |
|
| 8 | 8 | ); |
| 9 | 9 | ?> |
| 10 | 10 | <i class="fa fa-spin fa-refresh"></i> |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | <script type="text/javascript"> |
| 14 | 14 | setTimeout( |
| 15 | 15 | function(){ |
| 16 | - window.location.href = '<?php echo esc_url_raw( remove_query_arg( 'payment-confirm' ) ); ?>'; |
|
| 16 | + window.location.href = '<?php echo esc_url_raw(remove_query_arg('payment-confirm')); ?>'; |
|
| 17 | 17 | }, |
| 18 | 18 | 10000 |
| 19 | 19 | ); |
@@ -7,14 +7,14 @@ |
||
| 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 v-if='!is_default'> |
| 15 | - <div class='alert alert-info' role='alert'><?php esc_html_e( 'Item totals will appear here. Click to set items.', 'invoicing' ); ?></div> |
|
| 15 | + <div class='alert alert-info' role='alert'><?php esc_html_e('Item totals will appear here. Click to set items.', 'invoicing'); ?></div> |
|
| 16 | 16 | </div> |
| 17 | 17 | |
| 18 | 18 | <div v-if='is_default'> |
| 19 | - <div class='alert alert-info' role='alert'><?php esc_html_e( 'Item totals will appear here.', 'invoicing' ); ?></div> |
|
| 19 | + <div class='alert alert-info' role='alert'><?php esc_html_e('Item totals will appear here.', 'invoicing'); ?></div> |
|
| 20 | 20 | </div> |
@@ -7,15 +7,15 @@ |
||
| 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 | <label><span v-html="form_element.label"></span></label> |
| 15 | 15 | <div class="d-flex w-100 flex-column align-items-center justify-content-center p-2" style="height: 200px; border: 3px dashed rgb(136, 136, 136); cursor: pointer;"> |
| 16 | 16 | <div class="h5 text-dark"> |
| 17 | - <span v-if="form_element.max_file_num > 1"><?php esc_html_e( 'Drag files to this area or click to upload', 'invoicing' ); ?></span> |
|
| 18 | - <span v-if="form_element.max_file_num < 2"><?php esc_html_e( 'Drag your file to this area or click to upload', 'invoicing' ); ?></span> |
|
| 17 | + <span v-if="form_element.max_file_num > 1"><?php esc_html_e('Drag files to this area or click to upload', 'invoicing'); ?></span> |
|
| 18 | + <span v-if="form_element.max_file_num < 2"><?php esc_html_e('Drag your file to this area or click to upload', 'invoicing'); ?></span> |
|
| 19 | 19 | </div> |
| 20 | 20 | <small v-if='form_element.description' class='form-text text-muted' v-html='form_element.description'></small> |
| 21 | 21 | </div> |
@@ -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,17 +26,17 @@ 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 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
| 31 | + <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span> |
|
| 32 | 32 | </div> |
| 33 | 33 | <?php endif; ?> |
| 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 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
| 39 | + <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span> |
|
| 40 | 40 | </div> |
| 41 | 41 | <?php endif; ?> |
| 42 | 42 | </div> |
@@ -7,13 +7,13 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <div class='wpinv-address-wrapper row'> |
| 15 | 15 | |
| 16 | - <h4 v-if="form_element.address_type == 'both'" class="col-12 mb-3"><?php esc_html_e( 'Billing / Shipping Address', 'invoicing' ); ?></h4> |
|
| 16 | + <h4 v-if="form_element.address_type == 'both'" class="col-12 mb-3"><?php esc_html_e('Billing / Shipping Address', 'invoicing'); ?></h4> |
|
| 17 | 17 | |
| 18 | 18 | <div class='form-group address-field-preview wpinv-payment-form-field-preview' v-for='(field, index) in visible_fields( form_element.fields )' :class='grid_class( field )' :key='field.name'> |
| 19 | 19 | <label class="d-block w-100"> |
@@ -7,23 +7,23 @@ discard block |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <div v-if="!is_default"> |
| 15 | 15 | |
| 16 | 16 | <small class='form-text text-muted mb-2'> |
| 17 | - <?php esc_html_e( 'This section allows you to add an existing item to the form that users can then buy. If you do not add an item, ensure that you add a price select or input field to the form.', 'invoicing' ); ?> |
|
| 17 | + <?php esc_html_e('This section allows you to add an existing item to the form that users can then buy. If you do not add an item, ensure that you add a price select or input field to the form.', 'invoicing'); ?> |
|
| 18 | 18 | </small> |
| 19 | 19 | |
| 20 | 20 | <label class='form-group'> |
| 21 | 21 | <input v-model='active_form_element.hide_cart' type='checkbox' /> |
| 22 | - <span class='form-check-label'><?php esc_html_e( 'Hide cart details', 'invoicing' ); ?></span> |
|
| 22 | + <span class='form-check-label'><?php esc_html_e('Hide cart details', 'invoicing'); ?></span> |
|
| 23 | 23 | </label> |
| 24 | 24 | |
| 25 | 25 | <div class="mb-1"> |
| 26 | - <?php esc_html_e( 'Form Items', 'invoicing' ); ?> |
|
| 26 | + <?php esc_html_e('Form Items', 'invoicing'); ?> |
|
| 27 | 27 | </div> |
| 28 | 28 | |
| 29 | 29 | <draggable v-model='form_items' group='selectable_form_items'> |
@@ -42,22 +42,22 @@ discard block |
||
| 42 | 42 | <div class='p-3'> |
| 43 | 43 | |
| 44 | 44 | <span class='form-text'> |
| 45 | - <a target="_blank" :href="'<?php echo esc_url( admin_url( '/post.php?action=edit&post' ) ); ?>=' + item.id"> |
|
| 46 | - <?php esc_html_e( 'Edit the item name, price and other details', 'invoicing' ); ?> |
|
| 45 | + <a target="_blank" :href="'<?php echo esc_url(admin_url('/post.php?action=edit&post')); ?>=' + item.id"> |
|
| 46 | + <?php esc_html_e('Edit the item name, price and other details', 'invoicing'); ?> |
|
| 47 | 47 | </a> |
| 48 | 48 | </span> |
| 49 | 49 | |
| 50 | 50 | <label class='form-group d-block'> |
| 51 | 51 | <input v-model='item.allow_quantities' type='checkbox' /> |
| 52 | - <span><?php esc_html_e( 'Allow users to buy several quantities', 'invoicing' ); ?></span> |
|
| 52 | + <span><?php esc_html_e('Allow users to buy several quantities', 'invoicing'); ?></span> |
|
| 53 | 53 | </label> |
| 54 | 54 | |
| 55 | 55 | <label class='form-group d-block'> |
| 56 | 56 | <input v-model='item.required' type='checkbox' /> |
| 57 | - <span><?php esc_html_e( 'This item is required', 'invoicing' ); ?></span> |
|
| 57 | + <span><?php esc_html_e('This item is required', 'invoicing'); ?></span> |
|
| 58 | 58 | </label> |
| 59 | 59 | |
| 60 | - <button type='button' class='button button-link button-link-delete' @click.prevent='removeItem(item)'><?php esc_html_e( 'Delete Item', 'invoicing' ); ?></button> |
|
| 60 | + <button type='button' class='button button-link button-link-delete' @click.prevent='removeItem(item)'><?php esc_html_e('Delete Item', 'invoicing'); ?></button> |
|
| 61 | 61 | |
| 62 | 62 | </div> |
| 63 | 63 | </div> |
@@ -65,19 +65,19 @@ discard block |
||
| 65 | 65 | </div> |
| 66 | 66 | </draggable> |
| 67 | 67 | |
| 68 | - <small v-if='! form_items.length' class='form-text text-danger'><?php esc_html_e( 'You have not set up any items. Please select an item below or create a new item.', 'invoicing' ); ?></small> |
|
| 68 | + <small v-if='! form_items.length' class='form-text text-danger'><?php esc_html_e('You have not set up any items. Please select an item below or create a new item.', 'invoicing'); ?></small> |
|
| 69 | 69 | |
| 70 | 70 | <div class="mt-4 mb-4"> |
| 71 | 71 | |
| 72 | 72 | <div class="mb-2"> |
| 73 | 73 | <select class='w-100' v-init-item-search> |
| 74 | - <option value="" selected="selected"><?php esc_html_e( 'Select an item to add...', 'invoicing' ); ?></option> |
|
| 74 | + <option value="" selected="selected"><?php esc_html_e('Select an item to add...', 'invoicing'); ?></option> |
|
| 75 | 75 | </select> |
| 76 | 76 | |
| 77 | 77 | </div> |
| 78 | 78 | |
| 79 | - <button type="button" @click.prevent='addSelectedItem' class="button button-primary"><?php esc_html_e( 'Add Selected Item', 'invoicing' ); ?></button> |
|
| 80 | - <a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=wpi_item' ) ); ?>" target="_blank" class="button button-secondary"><?php esc_html_e( 'Create New Item.', 'invoicing' ); ?></a> |
|
| 79 | + <button type="button" @click.prevent='addSelectedItem' class="button button-primary"><?php esc_html_e('Add Selected Item', 'invoicing'); ?></button> |
|
| 80 | + <a href="<?php echo esc_url(admin_url('post-new.php?post_type=wpi_item')); ?>" target="_blank" class="button button-secondary"><?php esc_html_e('Create New Item.', 'invoicing'); ?></a> |
|
| 81 | 81 | |
| 82 | 82 | </div> |
| 83 | 83 | </div> |
@@ -86,13 +86,13 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | <label class="w-100 d-block"> |
| 88 | 88 | |
| 89 | - <span><?php esc_html_e( 'Let customers...', 'invoicing' ); ?></span> |
|
| 89 | + <span><?php esc_html_e('Let customers...', 'invoicing'); ?></span> |
|
| 90 | 90 | |
| 91 | 91 | <select class='w-100' style="padding: 6px 24px 6px 8px; border-color: #e0e0e0;" v-model='active_form_element.items_type'> |
| 92 | - <option value='total'><?php esc_html_e( 'Buy all items on the list', 'invoicing' ); ?></option> |
|
| 93 | - <option value='radio'><?php esc_html_e( 'Select a single item from the list', 'invoicing' ); ?></option> |
|
| 94 | - <option value='checkbox'><?php esc_html_e( 'Select one or more items on the list', 'invoicing' ); ?></option> |
|
| 95 | - <option value='select'><?php esc_html_e( 'Select a single item from a dropdown', 'invoicing' ); ?></option> |
|
| 92 | + <option value='total'><?php esc_html_e('Buy all items on the list', 'invoicing'); ?></option> |
|
| 93 | + <option value='radio'><?php esc_html_e('Select a single item from the list', 'invoicing'); ?></option> |
|
| 94 | + <option value='checkbox'><?php esc_html_e('Select one or more items on the list', 'invoicing'); ?></option> |
|
| 95 | + <option value='select'><?php esc_html_e('Select a single item from a dropdown', 'invoicing'); ?></option> |
|
| 96 | 96 | </select> |
| 97 | 97 | |
| 98 | 98 | </label> |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | <div class='form-group'> |
| 103 | 103 | <label class="d-block"> |
| 104 | - <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span> |
|
| 105 | - <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> |
|
| 106 | - <small class="form-text text-muted"><?php esc_html_e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 104 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
| 105 | + <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> |
|
| 106 | + <small class="form-text text-muted"><?php esc_html_e('HTML is allowed', 'invoicing'); ?></small> |
|
| 107 | 107 | </label> |
| 108 | 108 | </div> |
@@ -7,54 +7,54 @@ |
||
| 7 | 7 | * @version 1.0.19 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -defined( 'ABSPATH' ) || exit; |
|
| 10 | +defined('ABSPATH') || exit; |
|
| 11 | 11 | |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | 14 | <div class='form-group'> |
| 15 | 15 | <label class="d-block"> |
| 16 | - <span><?php esc_html_e( 'Field Label', 'invoicing' ); ?></span> |
|
| 16 | + <span><?php esc_html_e('Field Label', 'invoicing'); ?></span> |
|
| 17 | 17 | <input v-model='active_form_element.label' class='form-control' type="text"/> |
| 18 | 18 | </label> |
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | 21 | <div class='form-group'> |
| 22 | 22 | <label class="d-block"> |
| 23 | - <span><?php esc_html_e( 'Placeholder text', 'invoicing' ); ?></span> |
|
| 23 | + <span><?php esc_html_e('Placeholder text', 'invoicing'); ?></span> |
|
| 24 | 24 | <input v-model='active_form_element.placeholder' class='form-control' type="text"/> |
| 25 | 25 | </label> |
| 26 | 26 | </div> |
| 27 | 27 | |
| 28 | 28 | <div class='form-group'> |
| 29 | 29 | <label class="d-block"> |
| 30 | - <span><?php esc_html_e( 'Help Text', 'invoicing' ); ?></span> |
|
| 31 | - <textarea placeholder='<?php esc_attr_e( 'Add some help text for this field', 'invoicing' ); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | - <small class="form-text text-muted"><?php esc_html_e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 30 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
| 31 | + <textarea placeholder='<?php esc_attr_e('Add some help text for this field', 'invoicing'); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
| 32 | + <small class="form-text text-muted"><?php esc_html_e('HTML is allowed', 'invoicing'); ?></small> |
|
| 33 | 33 | </label> |
| 34 | 34 | </div> |
| 35 | 35 | |
| 36 | 36 | <div class='form-group form-check'> |
| 37 | 37 | <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' /> |
| 38 | - <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label> |
|
| 38 | + <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label> |
|
| 39 | 39 | </div> |
| 40 | 40 | |
| 41 | 41 | <div class='form-group form-check'> |
| 42 | 42 | <input :id="active_form_element.id + '_add_meta'" v-model='active_form_element.add_meta' type='checkbox' class='form-check-input' /> |
| 43 | - <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e( 'Show this field in receipts and emails?', 'invoicing' ); ?></label> |
|
| 43 | + <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e('Show this field in receipts and emails?', 'invoicing'); ?></label> |
|
| 44 | 44 | </div> |
| 45 | 45 | |
| 46 | 46 | <div class='form-group form-check'> |
| 47 | 47 | <input :id="active_form_element.id + '_edit_default_current'" v-model='active_form_element.default_current_post' type='checkbox' class='form-check-input' /> |
| 48 | - <label class='form-check-label' :for="active_form_element.id + '_edit_default_current'"><?php esc_html_e( 'Default to the current page\'s URL?', 'invoicing' ); ?></label> |
|
| 48 | + <label class='form-check-label' :for="active_form_element.id + '_edit_default_current'"><?php esc_html_e('Default to the current page\'s URL?', 'invoicing'); ?></label> |
|
| 49 | 49 | </div> |
| 50 | 50 | |
| 51 | 51 | <hr class='featurette-divider mt-4'> |
| 52 | 52 | |
| 53 | 53 | <div class='form-group'> |
| 54 | 54 | <label class="d-block"> |
| 55 | - <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span> |
|
| 55 | + <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span> |
|
| 56 | 56 | <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" /> |
| 57 | - <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span> |
|
| 57 | + <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span> |
|
| 58 | 58 | </label> |
| 59 | 59 | </div> |
| 60 | 60 | |
@@ -7,12 +7,12 @@ |
||
| 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 | - <label :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Enter your text', 'invoicing' ); ?></label> |
|
| 15 | + <label :for="active_form_element.id + '_edit'"><?php esc_html_e('Enter your text', 'invoicing'); ?></label> |
|
| 16 | 16 | <textarea :id="active_form_element.id + '_edit'" v-model='active_form_element.text' class='form-control' rows='3'></textarea> |
| 17 | - <small class="form-text text-muted"><?php esc_html_e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
| 17 | + <small class="form-text text-muted"><?php esc_html_e('HTML is allowed', 'invoicing'); ?></small> |
|
| 18 | 18 | </div> |