@@ -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,25 +26,25 @@ discard block |
||
26 | 26 | |
27 | 27 | <div class="input-group"> |
28 | 28 | |
29 | - <?php if ( $position == 'left' ) : ?> |
|
30 | - <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?> |
|
29 | + <?php if ($position == 'left') : ?> |
|
30 | + <?php if (empty($GLOBALS['aui_bs5'])) : ?> |
|
31 | 31 | <div class="input-group-prepend "> |
32 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
32 | + <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span> |
|
33 | 33 | </div> |
34 | 34 | <?php else : ?> |
35 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
35 | + <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span> |
|
36 | 36 | <?php endif; ?> |
37 | 37 | <?php endif; ?> |
38 | 38 | |
39 | 39 | <input :placeholder='form_element.placeholder' class='form-control' type='text'> |
40 | 40 | |
41 | - <?php if ( $position == 'right' ) : ?> |
|
42 | - <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?> |
|
41 | + <?php if ($position == 'right') : ?> |
|
42 | + <?php if (empty($GLOBALS['aui_bs5'])) : ?> |
|
43 | 43 | <div class="input-group-append "> |
44 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
44 | + <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span> |
|
45 | 45 | </div> |
46 | 46 | <?php else : ?> |
47 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
47 | + <span class="input-group-text"><?php echo wp_kses_post(wpinv_currency_symbol()); ?></span> |
|
48 | 48 | <?php endif; ?> |
49 | 49 | <?php endif; ?> |
50 | 50 | </div> |
@@ -31,8 +31,11 @@ discard block |
||
31 | 31 | <div class="input-group-prepend "> |
32 | 32 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
33 | 33 | </div> |
34 | - <?php else : ?> |
|
35 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
36 | + <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
37 | +} |
|
38 | +?></span> |
|
36 | 39 | <?php endif; ?> |
37 | 40 | <?php endif; ?> |
38 | 41 | |
@@ -43,8 +46,11 @@ discard block |
||
43 | 46 | <div class="input-group-append "> |
44 | 47 | <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
45 | 48 | </div> |
46 | - <?php else : ?> |
|
47 | - <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); ?></span> |
|
49 | + <?php else { |
|
50 | + : ?> |
|
51 | + <span class="input-group-text"><?php echo wp_kses_post( wpinv_currency_symbol() ); |
|
52 | +} |
|
53 | +?></span> |
|
48 | 54 | <?php endif; ?> |
49 | 55 | <?php endif; ?> |
50 | 56 | </div> |
@@ -7,59 +7,59 @@ 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 class='form-group mb-3'> |
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 mb-3'> |
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 mb-3'> |
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 mb-3 form-check'> |
37 | 37 | <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' /> |
38 | - <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label> |
|
38 | + <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label> |
|
39 | 39 | </div> |
40 | 40 | |
41 | 41 | <div class='form-group mb-3 form-check'> |
42 | 42 | <input :id="active_form_element.id + '_add_meta'" v-model='active_form_element.add_meta' type='checkbox' class='form-check-input' /> |
43 | - <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e( 'Show this field in receipts and emails?', 'invoicing' ); ?></label> |
|
43 | + <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e('Show this field in receipts and emails?', 'invoicing'); ?></label> |
|
44 | 44 | </div> |
45 | 45 | |
46 | 46 | <hr class='featurette-divider mt-4'> |
47 | 47 | |
48 | 48 | <div class='form-group mb-3'> |
49 | 49 | <label class="d-block"> |
50 | - <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span> |
|
50 | + <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span> |
|
51 | 51 | <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" /> |
52 | - <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span> |
|
52 | + <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span> |
|
53 | 53 | </label> |
54 | 54 | </div> |
55 | 55 | |
56 | 56 | <hr class='featurette-divider mt-4'> |
57 | 57 | |
58 | -<h5><?php esc_html_e( 'Available Options', 'invoicing' ); ?></h5> |
|
58 | +<h5><?php esc_html_e('Available Options', 'invoicing'); ?></h5> |
|
59 | 59 | |
60 | 60 | <div class='form-group mb-3 input-group' v-for='(option, index) in active_form_element.options'> |
61 | 61 | <input type='text' class='form-control' v-model='active_form_element.options[index]'> |
62 | - <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?> |
|
62 | + <?php if (empty($GLOBALS['aui_bs5'])) : ?> |
|
63 | 63 | <div class="input-group-append "> |
64 | 64 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
65 | 65 | </div> |
@@ -69,5 +69,5 @@ discard block |
||
69 | 69 | </div> |
70 | 70 | |
71 | 71 | <div class='form-group mb-3'> |
72 | - <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e( 'Add Option', 'invoicing' ); ?></button> |
|
72 | + <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e('Add Option', 'invoicing'); ?></button> |
|
73 | 73 | </div> |
@@ -63,9 +63,12 @@ |
||
63 | 63 | <div class="input-group-append "> |
64 | 64 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
65 | 65 | </div> |
66 | - <?php else : ?> |
|
66 | + <?php else { |
|
67 | + : ?> |
|
67 | 68 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
68 | - <?php endif; ?> |
|
69 | + <?php endif; |
|
70 | +} |
|
71 | +?> |
|
69 | 72 | </div> |
70 | 73 | |
71 | 74 | <div class='form-group mb-3'> |
@@ -7,52 +7,52 @@ 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 class='form-group mb-3'> |
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 mb-3'> |
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> |
|
25 | - <small class="form-text text-muted"><?php esc_html_e( 'HTML is allowed', 'invoicing' ); ?></small> |
|
23 | + <span><?php esc_html_e('Help Text', 'invoicing'); ?></span> |
|
24 | + <textarea placeholder='<?php esc_attr_e('Add some help text for this field', 'invoicing'); ?>' v-model='active_form_element.description' class='form-control' rows='3'></textarea> |
|
25 | + <small class="form-text text-muted"><?php esc_html_e('HTML is allowed', 'invoicing'); ?></small> |
|
26 | 26 | </label> |
27 | 27 | </div> |
28 | 28 | |
29 | 29 | <div class='form-group mb-3 form-check'> |
30 | 30 | <input :id="active_form_element.id + '_edit'" v-model='active_form_element.required' type='checkbox' class='form-check-input' /> |
31 | - <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e( 'Is this field required?', 'invoicing' ); ?></label> |
|
31 | + <label class='form-check-label' :for="active_form_element.id + '_edit'"><?php esc_html_e('Is this field required?', 'invoicing'); ?></label> |
|
32 | 32 | </div> |
33 | 33 | |
34 | 34 | <div class='form-group mb-3 form-check'> |
35 | 35 | <input :id="active_form_element.id + '_add_meta'" v-model='active_form_element.add_meta' type='checkbox' class='form-check-input' /> |
36 | - <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e( 'Show this field in receipts and emails?', 'invoicing' ); ?></label> |
|
36 | + <label class='form-check-label' :for="active_form_element.id + '_add_meta'"><?php esc_html_e('Show this field in receipts and emails?', 'invoicing'); ?></label> |
|
37 | 37 | </div> |
38 | 38 | |
39 | 39 | <hr class='featurette-divider mt-4'> |
40 | 40 | |
41 | 41 | <div class='form-group mb-3'> |
42 | 42 | <label class="d-block"> |
43 | - <span><?php esc_html_e( 'Email Merge Tag', 'invoicing' ); ?></span> |
|
43 | + <span><?php esc_html_e('Email Merge Tag', 'invoicing'); ?></span> |
|
44 | 44 | <input :value='active_form_element.label | formatMergeTag' class='form-control bg-white' type="text" readonly onclick="this.select()" /> |
45 | - <span class="form-text text-muted"><?php esc_html_e( 'You can use this merge tag in notification emails', 'invoicing' ); ?></span> |
|
45 | + <span class="form-text text-muted"><?php esc_html_e('You can use this merge tag in notification emails', 'invoicing'); ?></span> |
|
46 | 46 | </label> |
47 | 47 | </div> |
48 | 48 | |
49 | 49 | <hr class='featurette-divider mt-4'> |
50 | 50 | |
51 | -<h5><?php esc_html_e( 'Available Options', 'invoicing' ); ?></h5> |
|
51 | +<h5><?php esc_html_e('Available Options', 'invoicing'); ?></h5> |
|
52 | 52 | |
53 | 53 | <div class='form-group mb-3 input-group' v-for='(option, index) in active_form_element.options'> |
54 | 54 | <input type='text' class='form-control' v-model='active_form_element.options[index]'> |
55 | - <?php if ( empty( $GLOBALS['aui_bs5'] ) ) : ?> |
|
55 | + <?php if (empty($GLOBALS['aui_bs5'])) : ?> |
|
56 | 56 | <div class="input-group-append "> |
57 | 57 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
58 | 58 | </div> |
@@ -62,5 +62,5 @@ discard block |
||
62 | 62 | </div> |
63 | 63 | |
64 | 64 | <div class='form-group mb-3'> |
65 | - <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e( 'Add Option', 'invoicing' ); ?></button> |
|
65 | + <button class='button button-secondary' type='button' @click.prevent='active_form_element.options.push("")'><?php esc_html_e('Add Option', 'invoicing'); ?></button> |
|
66 | 66 | </div> |
@@ -56,9 +56,12 @@ |
||
56 | 56 | <div class="input-group-append "> |
57 | 57 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
58 | 58 | </div> |
59 | - <?php else : ?> |
|
59 | + <?php else { |
|
60 | + : ?> |
|
60 | 61 | <button class='button button-secondary border' type='button' @click.prevent='active_form_element.options.splice(index, 1)'><span class='dashicons dashicons-trash'></span></button> |
61 | - <?php endif; ?> |
|
62 | + <?php endif; |
|
63 | +} |
|
64 | +?> |
|
62 | 65 | </div> |
63 | 66 | |
64 | 67 | <div class='form-group mb-3'> |