@@ -7,39 +7,39 @@ discard block |
||
7 | 7 | if ($display_ticket_price) { ?> |
8 | 8 | <section class="tckt-slctr-tkt-price-sctn"> |
9 | 9 | <h5><?php |
10 | - echo apply_filters( |
|
11 | - 'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading', |
|
12 | - esc_html__('Price', 'event_espresso') |
|
13 | - ); ?></h5> |
|
10 | + echo apply_filters( |
|
11 | + 'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading', |
|
12 | + esc_html__('Price', 'event_espresso') |
|
13 | + ); ?></h5> |
|
14 | 14 | <div class="tckt-slctr-tkt-details-tbl-wrap-dv"> |
15 | 15 | <table class="tckt-slctr-tkt-details-tbl"> |
16 | 16 | <thead> |
17 | 17 | <tr> |
18 | 18 | <th class="ee-third-width"><span class="small-text"> |
19 | 19 | <?php |
20 | - esc_html_e( |
|
21 | - 'Name', |
|
22 | - 'event_espresso' |
|
23 | - ); ?></span> |
|
20 | + esc_html_e( |
|
21 | + 'Name', |
|
22 | + 'event_espresso' |
|
23 | + ); ?></span> |
|
24 | 24 | </th> |
25 | 25 | <th class="jst-cntr"><span class="small-text"> |
26 | 26 | <?php |
27 | - esc_html_e( |
|
28 | - 'Description', |
|
29 | - 'event_espresso' |
|
30 | - ); ?></span> |
|
27 | + esc_html_e( |
|
28 | + 'Description', |
|
29 | + 'event_espresso' |
|
30 | + ); ?></span> |
|
31 | 31 | </th> |
32 | 32 | <th class="ee-fourth-width jst-rght"><span class="small-text"> |
33 | 33 | <?php |
34 | - esc_html_e( |
|
35 | - 'Amount', |
|
36 | - 'event_espresso' |
|
37 | - ); ?></span></th> |
|
34 | + esc_html_e( |
|
35 | + 'Amount', |
|
36 | + 'event_espresso' |
|
37 | + ); ?></span></th> |
|
38 | 38 | </tr> |
39 | 39 | </thead> |
40 | 40 | <tbody> |
41 | 41 | <?php |
42 | - if ($ticket->base_price() instanceof EE_Price) { ?> |
|
42 | + if ($ticket->base_price() instanceof EE_Price) { ?> |
|
43 | 43 | <tr> |
44 | 44 | <td data-th="<?php esc_html_e('Name', 'event_espresso'); ?>" class="small-text" colspan="2"> |
45 | 45 | <b><?php echo $ticket->base_price()->name(); ?></b></td> |
@@ -47,12 +47,12 @@ discard block |
||
47 | 47 | class="jst-rght small-text"><?php echo $ticket->base_price()->pretty_price(); ?></td> |
48 | 48 | </tr> |
49 | 49 | <?php |
50 | - $running_total = $ticket->base_price()->amount(); |
|
51 | - } else { |
|
52 | - $running_total = 0; |
|
53 | - } |
|
54 | - // now add price modifiers |
|
55 | - foreach ($ticket->price_modifiers() as $price_mod) { ?> |
|
50 | + $running_total = $ticket->base_price()->amount(); |
|
51 | + } else { |
|
52 | + $running_total = 0; |
|
53 | + } |
|
54 | + // now add price modifiers |
|
55 | + foreach ($ticket->price_modifiers() as $price_mod) { ?> |
|
56 | 56 | <tr> |
57 | 57 | <td data-th="<?php esc_html_e('Name', 'event_espresso'); ?>" |
58 | 58 | class="jst-rght small-text"><?php echo $price_mod->name(); ?></td> |
@@ -62,23 +62,23 @@ discard block |
||
62 | 62 | % |
63 | 63 | </td> |
64 | 64 | <?php |
65 | - $new_sub_total = $running_total * ($price_mod->amount() / 100); |
|
66 | - $new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total; |
|
67 | - ?> |
|
65 | + $new_sub_total = $running_total * ($price_mod->amount() / 100); |
|
66 | + $new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total; |
|
67 | + ?> |
|
68 | 68 | <?php } else { ?> |
69 | 69 | <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1 |
70 | - : $price_mod->amount(); ?> |
|
70 | + : $price_mod->amount(); ?> |
|
71 | 71 | <td data-th="<?php esc_html_e('Description', 'event_espresso'); ?>" |
72 | 72 | class="small-text"><?php echo $price_mod->desc(); ?></td> |
73 | 73 | <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1 |
74 | - : $price_mod->amount(); ?> |
|
74 | + : $price_mod->amount(); ?> |
|
75 | 75 | <?php } ?> |
76 | 76 | <td data-th="<?php esc_html_e('Amount', 'event_espresso'); ?>" |
77 | 77 | class="jst-rght small-text"> |
78 | 78 | <?php |
79 | - echo EEH_Template::format_currency( |
|
80 | - $new_sub_total |
|
81 | - ); ?></td> |
|
79 | + echo EEH_Template::format_currency( |
|
80 | + $new_sub_total |
|
81 | + ); ?></td> |
|
82 | 82 | <?php $running_total += $new_sub_total; ?> |
83 | 83 | </tr> |
84 | 84 | <?php } ?> |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | <tr> |
88 | 88 | <td colspan="2" class="jst-rght small-text sbttl"><b> |
89 | 89 | <?php |
90 | - esc_html_e( |
|
91 | - 'subtotal', |
|
92 | - 'event_espresso' |
|
93 | - ); ?></b></td> |
|
90 | + esc_html_e( |
|
91 | + 'subtotal', |
|
92 | + 'event_espresso' |
|
93 | + ); ?></b></td> |
|
94 | 94 | <td data-th="<?php esc_html_e('subtotal', 'event_espresso'); ?>" class="jst-rght small-text"> |
95 | 95 | <b><?php echo EEH_Template::format_currency($running_total); ?></b></td> |
96 | 96 | </tr> |
@@ -106,9 +106,9 @@ discard block |
||
106 | 106 | <td data-th="<?php esc_html_e('Amount', 'event_espresso'); ?>" |
107 | 107 | class="jst-rght small-text"> |
108 | 108 | <?php |
109 | - echo EEH_Template::format_currency( |
|
110 | - $tax_amount |
|
111 | - ); ?></td> |
|
109 | + echo EEH_Template::format_currency( |
|
110 | + $tax_amount |
|
111 | + ); ?></td> |
|
112 | 112 | <?php $running_total += $tax_amount; ?> |
113 | 113 | </tr> |
114 | 114 | <?php } ?> |
@@ -116,15 +116,15 @@ discard block |
||
116 | 116 | <tr> |
117 | 117 | <td colspan="2" class="jst-rght small-text ttl-lbl-td"> |
118 | 118 | <b><?php |
119 | - echo apply_filters( |
|
120 | - 'FHEE__ticket_selector_chart_template__ticket_details_total_price', |
|
121 | - esc_html__('Total', 'event_espresso') |
|
122 | - ); ?></b></td> |
|
119 | + echo apply_filters( |
|
120 | + 'FHEE__ticket_selector_chart_template__ticket_details_total_price', |
|
121 | + esc_html__('Total', 'event_espresso') |
|
122 | + ); ?></b></td> |
|
123 | 123 | <td data-th="<?php |
124 | - echo apply_filters( |
|
125 | - 'FHEE__ticket_selector_chart_template__ticket_details_total_price', |
|
126 | - esc_html__('Total', 'event_espresso') |
|
127 | - ); ?>" class="jst-rght small-text"> |
|
124 | + echo apply_filters( |
|
125 | + 'FHEE__ticket_selector_chart_template__ticket_details_total_price', |
|
126 | + esc_html__('Total', 'event_espresso') |
|
127 | + ); ?>" class="jst-rght small-text"> |
|
128 | 128 | <b><?php echo EEH_Template::format_currency($running_total); ?></b></td> |
129 | 129 | </tr> |
130 | 130 | </tbody> |