@@ -154,12 +154,12 @@ |
||
154 | 154 | <td class="item_r"><?php echo $line_item->total_no_code();?></td> |
155 | 155 | </tr> |
156 | 156 | <?php break; |
157 | - case EEM_Line_Item::type_tax: |
|
158 | - ?> |
|
157 | + case EEM_Line_Item::type_tax: |
|
158 | + ?> |
|
159 | 159 | <tr class="item sub-item tax-total"> |
160 | 160 | <td class="item_l"><?php echo $line_item->name(); ?></td> |
161 | 161 | <?php if ($show_line_item_description){?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
162 | - <td colspan="2" class="item_c"><?php echo $line_item->percent(); ?>%</td> |
|
162 | + <td colspan="2" class="item_c"><?php echo $line_item->percent(); ?>%</td> |
|
163 | 163 | |
164 | 164 | <td class="item_r"><?php echo $line_item->total_no_code();?></td> |
165 | 165 | </tr><?php break; |
@@ -45,13 +45,13 @@ discard block |
||
45 | 45 | </div> |
46 | 46 | <!--#client-details vcard--> |
47 | 47 | |
48 | - <h2><?php _e("Purchases",'event_espresso')?></h2> |
|
48 | + <h2><?php _e("Purchases", 'event_espresso')?></h2> |
|
49 | 49 | <table class="invoice-amount"> |
50 | 50 | |
51 | 51 | <thead> |
52 | 52 | <tr class="header_row"> |
53 | 53 | <th class="left ticket_th"><?php _e('Item', 'event_espresso'); ?></th> |
54 | - <?php if ($show_line_item_description){?><th class="left event_th"><?php _e('Description', 'event_espresso'); ?></th><?php }?> |
|
54 | + <?php if ($show_line_item_description) {?><th class="left event_th"><?php _e('Description', 'event_espresso'); ?></th><?php }?> |
|
55 | 55 | <th class="quantity_th"><?php _e('Qty', 'event_espresso'); ?></th> |
56 | 56 | <th class="left event_th"><?php _e('Price', 'event_espresso'); ?></th> |
57 | 57 | <th class="subtotal_th item_r"><?php _e('Total', 'event_espresso'); ?></th> |
@@ -65,56 +65,56 @@ discard block |
||
65 | 65 | * @param EE_Line_Item $line_item |
66 | 66 | * @param boolean $odd for indicating whether to style this line item as an 'odd' or 'even' |
67 | 67 | */ |
68 | - function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false){ |
|
69 | - switch($line_item->type()){ |
|
68 | + function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false) { |
|
69 | + switch ($line_item->type()) { |
|
70 | 70 | case EEM_Line_Item::type_total: |
71 | - foreach($line_item->children() as $child_line_item){ |
|
72 | - ee_invoice_display_line_item($child_line_item,$show_line_item_description); |
|
71 | + foreach ($line_item->children() as $child_line_item) { |
|
72 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description); |
|
73 | 73 | }?> |
74 | 74 | <tr><td colspan="<?php echo $show_line_item_description ? 5 : 4 ?>"><hr></td></tr> |
75 | 75 | <tr class="total_tr odd"> |
76 | 76 | <td colspan="<?php echo $show_line_item_description ? 2 : 1 ?>"> </td> |
77 | 77 | <td colspan="2" class="total" id="total_currency"><?php _e('Total', 'event_espresso'); ?></td> |
78 | - <td class="total"><?php echo $line_item->total_no_code();?></td> |
|
78 | + <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
|
79 | 79 | </tr> |
80 | 80 | <?php break; |
81 | 81 | |
82 | 82 | |
83 | 83 | case EEM_Line_Item::type_sub_total: |
84 | - foreach($line_item->children() as $child_line_item){ |
|
84 | + foreach ($line_item->children() as $child_line_item) { |
|
85 | 85 | //$odd = !$odd; |
86 | - ee_invoice_display_line_item($child_line_item,$show_line_item_description,$odd); |
|
86 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
87 | 87 | }?> |
88 | 88 | <tr class="total_tr odd"> |
89 | 89 | <td colspan="<?php echo $show_line_item_description ? 2 : 1 ?>"> </td> |
90 | 90 | <td colspan="2" class="total" id="total_currency"><?php _e('Sub-Total', 'event_espresso'); ?></td> |
91 | - <td class="total"><?php echo $line_item->total_no_code();?></td> |
|
91 | + <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
|
92 | 92 | </tr> |
93 | 93 | <?php break; |
94 | 94 | |
95 | 95 | |
96 | 96 | case EEM_Line_Item::type_tax_sub_total: |
97 | - foreach($line_item->children() as $child_line_item){ |
|
98 | - $odd = !$odd; |
|
97 | + foreach ($line_item->children() as $child_line_item) { |
|
98 | + $odd = ! $odd; |
|
99 | 99 | ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
100 | 100 | }?> |
101 | 101 | <tr class="total_tr odd"> |
102 | 102 | <td colspan="<?php echo $show_line_item_description ? 2 : 1 ?>"> </td> |
103 | 103 | <td colspan="2" class="total" id="total_currency"><?php _e('Tax Total', 'event_espresso'); ?></td> |
104 | - <td class="total"><?php echo $line_item->total_no_code();?></td> |
|
104 | + <td class="total"><?php echo $line_item->total_no_code(); ?></td> |
|
105 | 105 | </tr> |
106 | 106 | <?php break; |
107 | 107 | |
108 | 108 | |
109 | 109 | case EEM_Line_Item::type_line_item: |
110 | 110 | $subitems = $line_item->children(); |
111 | - $has_subitems = count($subitems) > 1 ; |
|
112 | - if($has_subitems){ |
|
111 | + $has_subitems = count($subitems) > 1; |
|
112 | + if ($has_subitems) { |
|
113 | 113 | ?> |
114 | - <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
|
114 | + <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
|
115 | 115 | <td class="item_l"><?php echo $line_item->name() ?></td> |
116 | - <?php if ($show_line_item_description){?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
117 | - <td class="item_l"><?php echo $line_item->quantity();?></td> |
|
116 | + <?php if ($show_line_item_description) {?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
117 | + <td class="item_l"><?php echo $line_item->quantity(); ?></td> |
|
118 | 118 | |
119 | 119 | <td class="item_c"><?php echo $line_item->unit_price_no_code()?></td> |
120 | 120 | |
@@ -122,15 +122,15 @@ discard block |
||
122 | 122 | <?php //<td class="item_l"><?php $datetimes_strings = array(); foreach($datetimes as $datetime){ $datetimes_strings[]= $datetime->start_date_and_time();} echo implode(", ",$datetimes_strings); ?> |
123 | 123 | </tr> |
124 | 124 | <?php |
125 | - if( $has_subitems ){ |
|
126 | - foreach($line_item->children() as $child_line_item){ |
|
127 | - ee_invoice_display_line_item($child_line_item,$show_line_item_description, $odd); |
|
125 | + if ($has_subitems) { |
|
126 | + foreach ($line_item->children() as $child_line_item) { |
|
127 | + ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd); |
|
128 | 128 | } |
129 | 129 | } |
130 | - }else{//no subitems - just show this line item ?> |
|
131 | - <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
|
130 | + } else {//no subitems - just show this line item ?> |
|
131 | + <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
|
132 | 132 | <td class="item_l"><?php echo $line_item->name()?></td> |
133 | - <?php if ($show_line_item_description){?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
133 | + <?php if ($show_line_item_description) {?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
134 | 134 | <td class="item_l"><?php echo $line_item->quantity()?></td> |
135 | 135 | <td class="item_c"><?php echo $line_item->unit_price_no_code()?></td> |
136 | 136 | <td class="item_r"> <?php echo $line_item->total_no_code(); echo $line_item->is_taxable() ? '*' : ''?> </td> |
@@ -143,32 +143,32 @@ discard block |
||
143 | 143 | ?> |
144 | 144 | <tr class="item subitem-row"> |
145 | 145 | <td class="item_l subitem"><?php echo $line_item->name(); ?></td> |
146 | - <?php if ($show_line_item_description){?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
146 | + <?php if ($show_line_item_description) {?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
147 | 147 | <?php if ($line_item->is_percent()) { ?> |
148 | 148 | <td></td> |
149 | - <td class="item_c"><?php echo $line_item->percent();?>%</td> |
|
150 | - <?php }else{//flat discount/surcharge ?> |
|
149 | + <td class="item_c"><?php echo $line_item->percent(); ?>%</td> |
|
150 | + <?php } else {//flat discount/surcharge ?> |
|
151 | 151 | <td></td> |
152 | - <td class="item_c"><?php echo $line_item->unit_price_no_code();?></td> |
|
152 | + <td class="item_c"><?php echo $line_item->unit_price_no_code(); ?></td> |
|
153 | 153 | <?php } ?> |
154 | - <td class="item_r"><?php echo $line_item->total_no_code();?></td> |
|
154 | + <td class="item_r"><?php echo $line_item->total_no_code(); ?></td> |
|
155 | 155 | </tr> |
156 | 156 | <?php break; |
157 | 157 | case EEM_Line_Item::type_tax: |
158 | 158 | ?> |
159 | 159 | <tr class="item sub-item tax-total"> |
160 | 160 | <td class="item_l"><?php echo $line_item->name(); ?></td> |
161 | - <?php if ($show_line_item_description){?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
161 | + <?php if ($show_line_item_description) {?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
|
162 | 162 | <td colspan="2" class="item_c"><?php echo $line_item->percent(); ?>%</td> |
163 | 163 | |
164 | - <td class="item_r"><?php echo $line_item->total_no_code();?></td> |
|
164 | + <td class="item_r"><?php echo $line_item->total_no_code(); ?></td> |
|
165 | 165 | </tr><?php break; |
166 | 166 | } |
167 | 167 | } |
168 | - $c=false; |
|
168 | + $c = false; |
|
169 | 169 | /* @var $transaction EE_Transaction */ |
170 | 170 | $total_line_item = $transaction->total_line_item(); |
171 | - ee_invoice_display_line_item($total_line_item,$show_line_item_description); |
|
171 | + ee_invoice_display_line_item($total_line_item, $show_line_item_description); |
|
172 | 172 | /* foreach($transaction->registrations() as $registration){ |
173 | 173 | ?> |
174 | 174 | <tr class="item <?php echo ($c = !$c) ? ' odd' : ''; ?>"> |
@@ -183,13 +183,13 @@ discard block |
||
183 | 183 | </tbody> |
184 | 184 | |
185 | 185 | </table> |
186 | - <p><?php _e("* taxable items", "event_espresso");?></p> |
|
187 | - <h2><?php _e("Payments",'event_espresso')?></h2> |
|
186 | + <p><?php _e("* taxable items", "event_espresso"); ?></p> |
|
187 | + <h2><?php _e("Payments", 'event_espresso')?></h2> |
|
188 | 188 | <table class="invoice-amount"> |
189 | 189 | <thead> |
190 | 190 | <tr class="header_row"> |
191 | 191 | <th ><span class=""><?php _e('Payment Method', 'event_espresso'); ?></span></th> |
192 | - <th class='left datetime_th'><?php _e("Date",'event_espresso')?></th> |
|
192 | + <th class='left datetime_th'><?php _e("Date", 'event_espresso')?></th> |
|
193 | 193 | <th ><span class=""><?php _e('Transaction Id / Cheque #', 'event_espresso'); ?></span></th> |
194 | 194 | <th ><span class=""><?php _e('P.O. / S.O.#', 'event_espresso'); ?></span></th> |
195 | 195 | <th ><span class=""><?php _e('Status', 'event_espresso'); ?></span></th> |
@@ -199,29 +199,29 @@ discard block |
||
199 | 199 | <tbody> |
200 | 200 | <?php |
201 | 201 | $c = false; |
202 | - if(!empty($payments)){ |
|
202 | + if ( ! empty($payments)) { |
|
203 | 203 | |
204 | - foreach($payments as $payment){ |
|
204 | + foreach ($payments as $payment) { |
|
205 | 205 | /* @var $payment EE_Payment */?> |
206 | - <tr class='item <?php echo (($c = !$c) ? ' odd' : '')?>'> |
|
206 | + <tr class='item <?php echo (($c = ! $c) ? ' odd' : '')?>'> |
|
207 | 207 | <td><?php $payment->e('PAY_gateway')?></td> |
208 | 208 | <td><?php echo $payment->timestamp('D M j, Y')?></td> |
209 | 209 | <td><?php $payment->e('PAY_txn_id_chq_nmbr')?></td> |
210 | 210 | <td><?php $payment->e('PAY_po_number')?></td> |
211 | 211 | <td><?php $payment->e_pretty_status()?></td> |
212 | - <td class='item_r'><?php echo EEH_Template::format_currency($payment->amount());?></td> |
|
212 | + <td class='item_r'><?php echo EEH_Template::format_currency($payment->amount()); ?></td> |
|
213 | 213 | </tr> |
214 | 214 | <?php } |
215 | - }else{?> |
|
215 | + } else {?> |
|
216 | 216 | <tr class='item'> |
217 | - <td class='aln-cntr' colspan=6><?php _e("No approved payments have been received",'event_espresso')?></td> |
|
217 | + <td class='aln-cntr' colspan=6><?php _e("No approved payments have been received", 'event_espresso')?></td> |
|
218 | 218 | </tr> |
219 | 219 | <?php } |
220 | 220 | ?> |
221 | 221 | </tbody> |
222 | 222 | <tfoot> |
223 | 223 | <tr class='total_tr'><td colspan="4"></td> |
224 | - <td class="item_r"><?php _e('Total Paid','event_espresso')?></td> |
|
224 | + <td class="item_r"><?php _e('Total Paid', 'event_espresso')?></td> |
|
225 | 225 | <td class="item_r"><?php echo EEH_Template::format_currency($amount_pd)?> </td> |
226 | 226 | </tr> |
227 | 227 | <?php //echo $discount; ?> |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | ee_invoice_display_line_item($child_line_item,$show_line_item_description, $odd); |
128 | 128 | } |
129 | 129 | } |
130 | - }else{//no subitems - just show this line item ?> |
|
130 | + } else{//no subitems - just show this line item ?> |
|
131 | 131 | <tr class="item <?php echo $odd ? 'odd' : ''; ?>"> |
132 | 132 | <td class="item_l"><?php echo $line_item->name()?></td> |
133 | 133 | <?php if ($show_line_item_description){?><td class="item_l"><?php echo $line_item->desc() ?></td><?php }?> |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | <?php if ($line_item->is_percent()) { ?> |
148 | 148 | <td></td> |
149 | 149 | <td class="item_c"><?php echo $line_item->percent();?>%</td> |
150 | - <?php }else{//flat discount/surcharge ?> |
|
150 | + <?php } else{//flat discount/surcharge ?> |
|
151 | 151 | <td></td> |
152 | 152 | <td class="item_c"><?php echo $line_item->unit_price_no_code();?></td> |
153 | 153 | <?php } ?> |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | <td class='item_r'><?php echo EEH_Template::format_currency($payment->amount());?></td> |
213 | 213 | </tr> |
214 | 214 | <?php } |
215 | - }else{?> |
|
215 | + } else{?> |
|
216 | 216 | <tr class='item'> |
217 | 217 | <td class='aln-cntr' colspan=6><?php _e("No approved payments have been received",'event_espresso')?></td> |
218 | 218 | </tr> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | <!-- Base Stylesheet do not change or remove --> |
7 | 7 | <link rel="stylesheet" type="text/css" href="[base_url]base.css" media="screen" /> |
8 | 8 | <!-- Print Style Sheet --> |
9 | -<link rel="stylesheet" type="text/css" href="[base_url]css/print/<?php echo str_replace('.css', '',$invoice_css); ?>_print.css" media="print" /> |
|
9 | +<link rel="stylesheet" type="text/css" href="[base_url]css/print/<?php echo str_replace('.css', '', $invoice_css); ?>_print.css" media="print" /> |
|
10 | 10 | <!-- Primary Style Sheet --> |
11 | 11 | <link rel="stylesheet" type="text/css" href="[base_url]css/<?php echo $invoice_css; ?>" /> |
12 | 12 | <!-- Make sure the buttons don't print --> |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <td class="item_c"><?php echo $line_item->unit_price_no_code()?></td> |
74 | 74 | <td class="item_r"><?php echo $line_item->total_no_code()?></td> |
75 | 75 | </tr> |
76 | - <?php }else{?> |
|
76 | + <?php } else{?> |
|
77 | 77 | <tr class="item"> |
78 | 78 | <td class="aln-left"><?php echo $line_item->name().$taxable_html?></td> |
79 | 79 | <td colspan="2"><?php echo $line_item->desc();?><p class="ticket-note"><?php echo sprintf(__('This ticket can be used once at %s of the dates/times below.', 'event_espresso'), $ticket_uses); ?></p></td> |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | <td class='item_r'><?php echo $payment->amount_no_code()?></td> |
238 | 238 | </tr> |
239 | 239 | <?php } |
240 | - }else{?> |
|
240 | + } else{?> |
|
241 | 241 | <tr class='item'> |
242 | 242 | <td class='aln-cntr' colspan="6"><?php _e("No approved payments have been received.",'event_espresso')?> </td> |
243 | 243 | </tr> |
@@ -36,53 +36,53 @@ discard block |
||
36 | 36 | <h2 id="invoice-hdr"><?php _e('Order Confirmation', 'event_espresso')?></h2> |
37 | 37 | <h3 id="invoice-date"><?php _e('Date:', 'event_espresso')?> <span class="plain-text">[registration_date]</span></h3> |
38 | 38 | <h3 id="invoice-txn-id"><?php _e('Transaction ID:', 'event_espresso')?> <span class="plain-text">[transaction_id]</span></h3> |
39 | - <h3 id="invoice-txn-status"><?php _e('Status:', 'event_espresso')?> <span class="<?php echo $transaction->status_ID()?> plain-text"><?php echo $transaction->pretty_status();?></span></h3> |
|
39 | + <h3 id="invoice-txn-status"><?php _e('Status:', 'event_espresso')?> <span class="<?php echo $transaction->status_ID()?> plain-text"><?php echo $transaction->pretty_status(); ?></span></h3> |
|
40 | 40 | </div> |
41 | 41 | </td> |
42 | 42 | </tr> |
43 | 43 | </table> |
44 | 44 | <div class="events"> |
45 | - <?php foreach($events_for_txn as $event_id => $event){ |
|
46 | - ?><h3 class="section-title event-name"><img class="icon" src="<?php echo EE_IMAGES_URL.'calendar_year-24x24.png';?>"><?php _e("Event Name:","event_espresso")?> <span class="plain-text"><?php echo $event->name();?></span> <span class="small-text link">[ <a href='<?php echo $event->get_permalink()?>'><?php _e('view', 'event_espresso'); ?></a> ]</span></h3> |
|
47 | - <?php if (strlen($event->description()>1)){?><p class="event-description"><?php $event->description()?></p><?php }?> |
|
45 | + <?php foreach ($events_for_txn as $event_id => $event) { |
|
46 | + ?><h3 class="section-title event-name"><img class="icon" src="<?php echo EE_IMAGES_URL.'calendar_year-24x24.png'; ?>"><?php _e("Event Name:", "event_espresso")?> <span class="plain-text"><?php echo $event->name(); ?></span> <span class="small-text link">[ <a href='<?php echo $event->get_permalink()?>'><?php _e('view', 'event_espresso'); ?></a> ]</span></h3> |
|
47 | + <?php if (strlen($event->description() > 1)) {?><p class="event-description"><?php $event->description()?></p><?php }?> |
|
48 | 48 | <ul class="tickets-per-event"> |
49 | - <?php foreach($ticket_line_items_per_event[$event_id] as $line_item_id => $line_item){ |
|
49 | + <?php foreach ($ticket_line_items_per_event[$event_id] as $line_item_id => $line_item) { |
|
50 | 50 | $ticket = $line_item->ticket(); |
51 | - $taxable_html = $ticket->taxable() ? '*': ''; |
|
51 | + $taxable_html = $ticket->taxable() ? '*' : ''; |
|
52 | 52 | $subitems = $line_item->children(); |
53 | - $ticket_uses = $ticket->get_pretty('TKT_uses', __("any", "event_espresso")); |
|
53 | + $ticket_uses = $ticket->get_pretty('TKT_uses', __("any", "event_espresso")); |
|
54 | 54 | ?> |
55 | 55 | <li class="event-ticket"> |
56 | 56 | <div class="ticket-details"> |
57 | 57 | <table class="invoice-amount"> |
58 | 58 | <thead> |
59 | 59 | <tr class="header_row"> |
60 | - <th class="name-column"><?php _e("Ticket", "event_espresso");?></th> |
|
61 | - <th colspan="2" class="desc-column"><?php _e("Description", "event_espresso");?></th> |
|
62 | - <th class="number-column item_c"><?php _e("Quantity", "event_espresso");?></th> |
|
63 | - <th class="number-column item_c"><?php _e("Price", "event_espresso");?></th> |
|
64 | - <th class="number-column item_r"><?php _e("Total", "event_espresso");?></th> |
|
60 | + <th class="name-column"><?php _e("Ticket", "event_espresso"); ?></th> |
|
61 | + <th colspan="2" class="desc-column"><?php _e("Description", "event_espresso"); ?></th> |
|
62 | + <th class="number-column item_c"><?php _e("Quantity", "event_espresso"); ?></th> |
|
63 | + <th class="number-column item_c"><?php _e("Price", "event_espresso"); ?></th> |
|
64 | + <th class="number-column item_r"><?php _e("Total", "event_espresso"); ?></th> |
|
65 | 65 | </tr> |
66 | 66 | </thead> |
67 | 67 | <tbody> |
68 | - <?php if( count($subitems) < 2){?> |
|
68 | + <?php if (count($subitems) < 2) {?> |
|
69 | 69 | <tr class="item"> |
70 | 70 | <td><?php echo $line_item->name().$taxable_html?></td> |
71 | - <td colspan="2"><?php echo $line_item->desc();?><p class="ticket-note"><?php echo sprintf(__('This ticket can be used once at %s of the dates/times below.', 'event_espresso'), $ticket_uses); ?></p></td> |
|
71 | + <td colspan="2"><?php echo $line_item->desc(); ?><p class="ticket-note"><?php echo sprintf(__('This ticket can be used once at %s of the dates/times below.', 'event_espresso'), $ticket_uses); ?></p></td> |
|
72 | 72 | <td class="item_c"><?php echo $line_item->quantity()?></td> |
73 | 73 | <td class="item_c"><?php echo $line_item->unit_price_no_code()?></td> |
74 | 74 | <td class="item_r"><?php echo $line_item->total_no_code()?></td> |
75 | 75 | </tr> |
76 | - <?php }else{?> |
|
76 | + <?php } else {?> |
|
77 | 77 | <tr class="item"> |
78 | 78 | <td class="aln-left"><?php echo $line_item->name().$taxable_html?></td> |
79 | - <td colspan="2"><?php echo $line_item->desc();?><p class="ticket-note"><?php echo sprintf(__('This ticket can be used once at %s of the dates/times below.', 'event_espresso'), $ticket_uses); ?></p></td> |
|
79 | + <td colspan="2"><?php echo $line_item->desc(); ?><p class="ticket-note"><?php echo sprintf(__('This ticket can be used once at %s of the dates/times below.', 'event_espresso'), $ticket_uses); ?></p></td> |
|
80 | 80 | <td class="item_c"><?php echo $line_item->quantity()?></td> |
81 | 81 | <td class="item_c"><?php echo $line_item->unit_price_no_code()?></td> |
82 | 82 | <td class="item_r"><?php echo $line_item->total_no_code()?></td> |
83 | 83 | </tr> |
84 | - <?php foreach($subitems as $sub_line_item){ |
|
85 | - $is_percent = $sub_line_item->is_percent();?> |
|
84 | + <?php foreach ($subitems as $sub_line_item) { |
|
85 | + $is_percent = $sub_line_item->is_percent(); ?> |
|
86 | 86 | <tr class="subitem-row"> |
87 | 87 | <td class="subitem"><?php echo $sub_line_item->name()?></td> |
88 | 88 | <td colspan="2"><?php echo $sub_line_item->desc()?></td> |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | <?php } ?> |
94 | 94 | <tr class="total_tr odd"> |
95 | 95 | <td colspan="4"></td> |
96 | - <td class="total" nowrap="nowrap"><?php _e("Ticket Total:", "event_espresso");?></td> |
|
96 | + <td class="total" nowrap="nowrap"><?php _e("Ticket Total:", "event_espresso"); ?></td> |
|
97 | 97 | <td class="item_r"><?php echo $line_item->total_no_code()?></td> |
98 | 98 | </tr> |
99 | 99 | <?php }?> |
@@ -104,22 +104,22 @@ discard block |
||
104 | 104 | <div class="reg-details-for-ticket"> |
105 | 105 | <div class="ticket-time-and-place-details"> |
106 | 106 | <div class="ticket-time-details"> |
107 | - <h4 class="sub-section-title no-bottom-margin"><img class="icon" src="<?php echo EE_IMAGES_URL.'clock-16x16.png';?>"><?php echo _n("Date/Time:","Dates/Times:",count($ticket->datetimes()), "event_espresso");?></h4> |
|
107 | + <h4 class="sub-section-title no-bottom-margin"><img class="icon" src="<?php echo EE_IMAGES_URL.'clock-16x16.png'; ?>"><?php echo _n("Date/Time:", "Dates/Times:", count($ticket->datetimes()), "event_espresso"); ?></h4> |
|
108 | 108 | <ul class="event-dates"> |
109 | - <?php foreach($ticket->datetimes_ordered() as $datetime){ |
|
109 | + <?php foreach ($ticket->datetimes_ordered() as $datetime) { |
|
110 | 110 | /* @var $datetime EE_Datetime */ ?> |
111 | 111 | <li><?php |
112 | - echo $datetime->name() ? '<b>'.$datetime->name().' </b>' : '' ; |
|
113 | - echo sprintf(__("%s - %s (%s)", "event_espresso"),$datetime->start_date_and_time(),$datetime->end_date_and_time(),$datetime->get_timezone()); |
|
112 | + echo $datetime->name() ? '<b>'.$datetime->name().' </b>' : ''; |
|
113 | + echo sprintf(__("%s - %s (%s)", "event_espresso"), $datetime->start_date_and_time(), $datetime->end_date_and_time(), $datetime->get_timezone()); |
|
114 | 114 | echo $datetime->description() ? '<p class="ticket-note">'.$datetime->description().'</p>' : '' ?></li> |
115 | 115 | <?php }?> |
116 | 116 | </ul> |
117 | 117 | </div> |
118 | - <?php if ($event->venues()){?> |
|
118 | + <?php if ($event->venues()) {?> |
|
119 | 119 | <div class="ticket-place-details"> |
120 | - <h4 class="sub-section-title no-bottom-margin"><img class="icon" src="<?php echo EE_IMAGES_URL.'location-pin-16x16.png';?>"><?php echo _n("Venue:","Venues:",count($event->venues()), "event_espresso");?></h4> |
|
120 | + <h4 class="sub-section-title no-bottom-margin"><img class="icon" src="<?php echo EE_IMAGES_URL.'location-pin-16x16.png'; ?>"><?php echo _n("Venue:", "Venues:", count($event->venues()), "event_espresso"); ?></h4> |
|
121 | 121 | <ul class="event-venues"> |
122 | - <?php foreach($event->venues() as $venue){?> |
|
122 | + <?php foreach ($event->venues() as $venue) {?> |
|
123 | 123 | <li><?php echo $venue->name()?> <span class="small-text">[ <a href='<?php echo $venue->get_permalink()?>'><?php _e('view', 'event_espresso'); ?></a> ]</span></li> |
124 | 124 | <?php } ?> |
125 | 125 | </ul> |
@@ -127,34 +127,34 @@ discard block |
||
127 | 127 | <?php }?> |
128 | 128 | </div> |
129 | 129 | <div class="ticket-registrations-area"> |
130 | - <h4 class="sub-section-title"><img class="icon" src="<?php echo EE_IMAGES_URL.'users-16x16.png';?>"><?php echo __("Registration Details", "event_espresso");?> <span class="small-text link">[ <a class="print_button noPrint" href="<?php echo $edit_reg_info_url; ?>"><?php _e('edit', 'event_espresso'); ?></a> ]</span></h4> |
|
130 | + <h4 class="sub-section-title"><img class="icon" src="<?php echo EE_IMAGES_URL.'users-16x16.png'; ?>"><?php echo __("Registration Details", "event_espresso"); ?> <span class="small-text link">[ <a class="print_button noPrint" href="<?php echo $edit_reg_info_url; ?>"><?php _e('edit', 'event_espresso'); ?></a> ]</span></h4> |
|
131 | 131 | <ul class="ticket-registrations-list"> |
132 | - <?php foreach($registrations_per_line_item[$line_item_id] as $registration){ |
|
132 | + <?php foreach ($registrations_per_line_item[$line_item_id] as $registration) { |
|
133 | 133 | /* @var $registration EE_Registration */ |
134 | 134 | $attendee = $registration->attendee(); |
135 | - $answers = $registration->answers(array('order_by'=>array('Question.Question_Group_Question.QGQ_order'=>'ASC')));?> |
|
135 | + $answers = $registration->answers(array('order_by'=>array('Question.Question_Group_Question.QGQ_order'=>'ASC'))); ?> |
|
136 | 136 | <li class="ticket-registration"> |
137 | 137 | <table class="registration-details"> |
138 | 138 | <tr class="odd"> |
139 | - <th><?php echo _e("Registration Code:", "event_espresso");?></th> |
|
140 | - <td><?php echo $registration->reg_code();?> - <span class="<?php echo $registration->status_ID()?>"><?php echo $registration->pretty_status()?></span></td> |
|
139 | + <th><?php echo _e("Registration Code:", "event_espresso"); ?></th> |
|
140 | + <td><?php echo $registration->reg_code(); ?> - <span class="<?php echo $registration->status_ID()?>"><?php echo $registration->pretty_status()?></span></td> |
|
141 | 141 | </tr> |
142 | 142 | <?php |
143 | - foreach($event->question_groups() as $question_group){ |
|
144 | - ?><tr><th><?php $question_group->e('QSG_name');?></th><td></td></tr><?php |
|
143 | + foreach ($event->question_groups() as $question_group) { |
|
144 | + ?><tr><th><?php $question_group->e('QSG_name'); ?></th><td></td></tr><?php |
|
145 | 145 | $has_personal_info = false; |
146 | - foreach($question_group->questions() as $question){ |
|
147 | - if( in_array($question->system_ID(),$questions_to_skip)){ |
|
146 | + foreach ($question_group->questions() as $question) { |
|
147 | + if (in_array($question->system_ID(), $questions_to_skip)) { |
|
148 | 148 | $has_personal_info = true; |
149 | 149 | continue; |
150 | 150 | } |
151 | 151 | ?><tr> |
152 | 152 | <th><?php echo $question->display_text()?></th> |
153 | - <td><?php echo $registration->answer_value_to_question($question);?></td> |
|
153 | + <td><?php echo $registration->answer_value_to_question($question); ?></td> |
|
154 | 154 | </tr><?php |
155 | 155 | } |
156 | - if($has_personal_info){ |
|
157 | - ?><tr><th><?php _e('Attendee', 'event_espresso');?></th><td><?php echo sprintf(__('%s (%s)', "event_espresso"),$attendee->full_name(),$attendee->email())?></td></tr><?php |
|
156 | + if ($has_personal_info) { |
|
157 | + ?><tr><th><?php _e('Attendee', 'event_espresso'); ?></th><td><?php echo sprintf(__('%s (%s)', "event_espresso"), $attendee->full_name(), $attendee->email())?></td></tr><?php |
|
158 | 158 | } |
159 | 159 | } |
160 | 160 | ?> |
@@ -171,21 +171,21 @@ discard block |
||
171 | 171 | <?php }?> |
172 | 172 | </div> |
173 | 173 | <div class="taxes"> |
174 | - <?php if ($tax_total_line_item && $tax_total_line_item->children()){?> |
|
175 | - <h3 class="section-title"><?php _e("Taxes",'event_espresso')?></h3> |
|
174 | + <?php if ($tax_total_line_item && $tax_total_line_item->children()) {?> |
|
175 | + <h3 class="section-title"><?php _e("Taxes", 'event_espresso')?></h3> |
|
176 | 176 | <table class="invoice-amount"> |
177 | 177 | |
178 | 178 | <thead> |
179 | 179 | <tr class="header_row"> |
180 | - <th class="left ticket_th"><?php _e("Tax Name", "event_espresso");?></th> |
|
181 | - <th class="left"><?php _e('Description', 'event_espresso');?></th> |
|
180 | + <th class="left ticket_th"><?php _e("Tax Name", "event_espresso"); ?></th> |
|
181 | + <th class="left"><?php _e('Description', 'event_espresso'); ?></th> |
|
182 | 182 | <th class="event_th item_c"><?php _e('Rate', 'event_espresso'); ?></th> |
183 | 183 | <th class="subtotal_th"><?php _e('Tax Amount', 'event_espresso'); ?></th> |
184 | 184 | </tr> |
185 | 185 | </thead> |
186 | 186 | <tbody> |
187 | 187 | <?php |
188 | - foreach($tax_total_line_item->children() as $child_tax){?> |
|
188 | + foreach ($tax_total_line_item->children() as $child_tax) {?> |
|
189 | 189 | <tr> |
190 | 190 | <td><?php echo $child_tax->name()?></td> |
191 | 191 | <td><?php echo $child_tax->desc()?></td> |
@@ -195,26 +195,26 @@ discard block |
||
195 | 195 | <?php } ?> |
196 | 196 | <tr class="total_tr odd"> |
197 | 197 | <td class="total_tr" colspan="2"></td> |
198 | - <td class="total"><?php _e("Tax Total:", "event_espresso");?></td> |
|
198 | + <td class="total"><?php _e("Tax Total:", "event_espresso"); ?></td> |
|
199 | 199 | <td class="item_r"><?php echo $tax_total_line_item->total_no_code()?></td> |
200 | 200 | </tr> |
201 | 201 | </tbody> |
202 | 202 | |
203 | 203 | </table> |
204 | 204 | <?php }?> |
205 | - <p><?php _e("* taxable items", "event_espresso");?></p> |
|
205 | + <p><?php _e("* taxable items", "event_espresso"); ?></p> |
|
206 | 206 | </div> |
207 | 207 | <div class="grand-total-dv"> |
208 | - <h2 class="grand-total"><?php printf(__("Grand Total: %s", "event_espresso"),EEH_Template::format_currency($total_cost));?></h2> |
|
208 | + <h2 class="grand-total"><?php printf(__("Grand Total: %s", "event_espresso"), EEH_Template::format_currency($total_cost)); ?></h2> |
|
209 | 209 | </div> |
210 | 210 | <div class="payment-dv"> |
211 | - <h3 class="section-title"><?php _e("Payments",'event_espresso')?></h3> |
|
211 | + <h3 class="section-title"><?php _e("Payments", 'event_espresso')?></h3> |
|
212 | 212 | <p>[instructions]</p> |
213 | 213 | <table class="invoice-amount"> |
214 | 214 | <thead> |
215 | 215 | <tr class="header_row"> |
216 | 216 | <th><span class=""><?php _e('Payment Method', 'event_espresso'); ?></span></th> |
217 | - <th class='left datetime_th'><?php _e("Date",'event_espresso')?></th> |
|
217 | + <th class='left datetime_th'><?php _e("Date", 'event_espresso')?></th> |
|
218 | 218 | <th><span class=""><?php _e('Transaction Id / Cheque #', 'event_espresso'); ?></span></th> |
219 | 219 | <th><span class=""><?php _e('P.O. / S.O.#', 'event_espresso'); ?></span></th> |
220 | 220 | <th><span class=""><?php _e('Status', 'event_espresso'); ?></span></th> |
@@ -224,11 +224,11 @@ discard block |
||
224 | 224 | <tbody> |
225 | 225 | <?php |
226 | 226 | $c = false; |
227 | - if(!empty($payments)){ |
|
227 | + if ( ! empty($payments)) { |
|
228 | 228 | |
229 | - foreach($payments as $payment){ |
|
229 | + foreach ($payments as $payment) { |
|
230 | 230 | /* @var $payment EE_Payment */?> |
231 | - <tr class='item <?php echo (($c = !$c) ? ' odd' : '')?>'> |
|
231 | + <tr class='item <?php echo (($c = ! $c) ? ' odd' : '')?>'> |
|
232 | 232 | <td><?php $payment->e('PAY_gateway')?></td> |
233 | 233 | <td><?php echo $payment->timestamp()?></td> |
234 | 234 | <td><?php $payment->e('PAY_txn_id_chq_nmbr')?></td> |
@@ -237,17 +237,17 @@ discard block |
||
237 | 237 | <td class='item_r'><?php echo $payment->amount_no_code()?></td> |
238 | 238 | </tr> |
239 | 239 | <?php } |
240 | - }else{?> |
|
240 | + } else {?> |
|
241 | 241 | <tr class='item'> |
242 | - <td class='aln-cntr' colspan="6"><?php _e("No approved payments have been received.",'event_espresso')?> </td> |
|
242 | + <td class='aln-cntr' colspan="6"><?php _e("No approved payments have been received.", 'event_espresso')?> </td> |
|
243 | 243 | </tr> |
244 | 244 | <?php } |
245 | - ?><tr class="item" ><td class='aln-cntr' colspan="6"><?php if($amount_owed){?><a class="noPrint" href='<?php echo $retry_payment_url?>'><?php _e("Please make a payment.", "event_espresso");}?></a></td></tr> |
|
245 | + ?><tr class="item" ><td class='aln-cntr' colspan="6"><?php if ($amount_owed) {?><a class="noPrint" href='<?php echo $retry_payment_url?>'><?php _e("Please make a payment.", "event_espresso"); }?></a></td></tr> |
|
246 | 246 | </tbody> |
247 | 247 | <tfoot> |
248 | 248 | <tr class='total_tr'><td colspan="4"> </td> |
249 | - <td class="item_r"><?php _e('Total Paid','event_espresso')?></td> |
|
250 | - <td class="item_r"><?php echo EEH_Template::format_currency($amount_pd,false,false)?> </td> |
|
249 | + <td class="item_r"><?php _e('Total Paid', 'event_espresso')?></td> |
|
250 | + <td class="item_r"><?php echo EEH_Template::format_currency($amount_pd, false, false)?> </td> |
|
251 | 251 | </tr> |
252 | 252 | <?php //echo $discount; ?> |
253 | 253 | <tr class="total_tr odd"> |
@@ -259,20 +259,20 @@ discard block |
||
259 | 259 | </table> |
260 | 260 | </div> |
261 | 261 | <div class="additional-info-dv"> |
262 | - <h3 class="section-title"><?php _e("Additional Information:", "event_espresso");?></h3> |
|
262 | + <h3 class="section-title"><?php _e("Additional Information:", "event_espresso"); ?></h3> |
|
263 | 263 | <div class="additional-info"> |
264 | - <?php if($venues_for_events){?> |
|
265 | - <h2><?php echo _n("Venue Details:", "Venues Details:", "event_espresso",count($venues_for_events));?></h2> |
|
264 | + <?php if ($venues_for_events) {?> |
|
265 | + <h2><?php echo _n("Venue Details:", "Venues Details:", "event_espresso", count($venues_for_events)); ?></h2> |
|
266 | 266 | <table class="venue-list"> |
267 | - <?php foreach($venues_for_events as $venue){?> |
|
267 | + <?php foreach ($venues_for_events as $venue) {?> |
|
268 | 268 | <tr class="venue-details"> |
269 | 269 | <td class="venue-details-part venue-address-dv"> |
270 | 270 | <h3><a href='<?php echo $venue->get_permalink()?>'><?php |
271 | 271 | echo $venue->name() |
272 | 272 | ?></a></h3> |
273 | 273 | <p><?php echo $venue->description()?></p> |
274 | - <?php echo EEH_Address::format($venue);?></td> |
|
275 | - <?php if($venue->enable_for_gmap()){?> |
|
274 | + <?php echo EEH_Address::format($venue); ?></td> |
|
275 | + <?php if ($venue->enable_for_gmap()) {?> |
|
276 | 276 | <td class="venue-details-part venue-image-dv"><?php echo EEH_Venue_View::espresso_google_static_map($venue)?></td> |
277 | 277 | <?php } ?> |
278 | 278 | </tr> |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @return EED_Invoice |
30 | 30 | */ |
31 | 31 | public static function instance() { |
32 | - return parent::get_instance( __CLASS__ ); |
|
32 | + return parent::get_instance(__CLASS__); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | * @return void |
42 | 42 | */ |
43 | 43 | public static function set_hooks() { |
44 | - EE_Config::register_route( 'download_invoice', 'EED_Invoice', 'download_invoice' ); |
|
45 | - EE_Config::register_route( 'launch_invoice', 'EED_Invoice', 'launch_invoice' ); |
|
44 | + EE_Config::register_route('download_invoice', 'EED_Invoice', 'download_invoice'); |
|
45 | + EE_Config::register_route('launch_invoice', 'EED_Invoice', 'launch_invoice'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | |
@@ -63,12 +63,12 @@ discard block |
||
63 | 63 | * @access public |
64 | 64 | * @return void |
65 | 65 | */ |
66 | - public function run( $WP ) { |
|
67 | - if ( is_readable( EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php' )) { |
|
68 | - require_once( EE_MODULES . 'gateways/Invoice/lib/Invoice.class.php' ); |
|
66 | + public function run($WP) { |
|
67 | + if (is_readable(EE_MODULES.'gateways/Invoice/lib/Invoice.class.php')) { |
|
68 | + require_once(EE_MODULES.'gateways/Invoice/lib/Invoice.class.php'); |
|
69 | 69 | } else { |
70 | - $msg = __( 'The Invoice.class.php file could not be loaded.', 'event_espresso' ); |
|
71 | - EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ ); |
|
70 | + $msg = __('The Invoice.class.php file could not be loaded.', 'event_espresso'); |
|
71 | + EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__); |
|
72 | 72 | } |
73 | 73 | // add_filter( 'FHEE_load_ee_config', '__return_true' ); |
74 | 74 | // add_filter( 'FHEE_run_EE_wp', '__return_true' ); |
@@ -89,9 +89,9 @@ discard block |
||
89 | 89 | */ |
90 | 90 | public function launch_invoice() { |
91 | 91 | $this->run(null); |
92 | - if ( EE_Registry::instance()->REQ->is_set( 'id' )) { |
|
93 | - $id = sanitize_key( EE_Registry::instance()->REQ->get( 'id' )); |
|
94 | - $invoice = new Invoice( $id ); |
|
92 | + if (EE_Registry::instance()->REQ->is_set('id')) { |
|
93 | + $id = sanitize_key(EE_Registry::instance()->REQ->get('id')); |
|
94 | + $invoice = new Invoice($id); |
|
95 | 95 | $invoice->send_invoice(); |
96 | 96 | } |
97 | 97 | } |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function download_invoice() { |
108 | 108 | $this->run(null); |
109 | - if ( EE_Registry::instance()->REQ->is_set( 'id' )) { |
|
110 | - $id = sanitize_key( EE_Registry::instance()->REQ->get( 'id' )); |
|
109 | + if (EE_Registry::instance()->REQ->is_set('id')) { |
|
110 | + $id = sanitize_key(EE_Registry::instance()->REQ->get('id')); |
|
111 | 111 | $invoice = new Invoice($_REQUEST['id']); |
112 | 112 | // send invoice but force download |
113 | - $invoice->send_invoice( TRUE ); |
|
113 | + $invoice->send_invoice(TRUE); |
|
114 | 114 | } |
115 | 115 | } |
116 | 116 |
@@ -1,4 +1,6 @@ |
||
1 | -<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed'); |
|
1 | +<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
2 | + exit('No direct script access allowed'); |
|
3 | +} |
|
2 | 4 | /** |
3 | 5 | * Event Espresso |
4 | 6 | * |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
2 | 2 | /** |
3 | - * |
|
4 | - * Class EE_SPCO_Reg_Step_Registration_Confirmation |
|
5 | - * |
|
6 | - * Description |
|
7 | - * |
|
8 | - * @package Event Espresso |
|
9 | - * @subpackage core |
|
10 | - * @author Brent Christensen |
|
11 | - * @since 4.5.0 |
|
12 | - * |
|
13 | - */ |
|
3 | + * |
|
4 | + * Class EE_SPCO_Reg_Step_Registration_Confirmation |
|
5 | + * |
|
6 | + * Description |
|
7 | + * |
|
8 | + * @package Event Espresso |
|
9 | + * @subpackage core |
|
10 | + * @author Brent Christensen |
|
11 | + * @since 4.5.0 |
|
12 | + * |
|
13 | + */ |
|
14 | 14 | class EE_SPCO_Reg_Step_Registration_Confirmation extends EE_SPCO_Reg_Step { |
15 | 15 | |
16 | 16 | /** |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | * @param EE_Checkout $checkout |
21 | 21 | * @return \EE_SPCO_Reg_Step_Registration_Confirmation |
22 | 22 | */ |
23 | - public function __construct( EE_Checkout $checkout ) { |
|
23 | + public function __construct(EE_Checkout $checkout) { |
|
24 | 24 | $this->_slug = 'registration_confirmation'; |
25 | 25 | $this->_name = __('Registration Confirmation', 'event_espresso'); |
26 | - $this->_template = SPCO_TEMPLATES_PATH . 'registration_page_confirmation.template.php'; |
|
26 | + $this->_template = SPCO_TEMPLATES_PATH.'registration_page_confirmation.template.php'; |
|
27 | 27 | $this->checkout = $checkout; |
28 | 28 | } |
29 | 29 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * @return string |
50 | 50 | */ |
51 | 51 | public function generate_reg_form() { |
52 | - EE_Registry::instance()->REQ->add_output( 'generate_reg_form' ); |
|
52 | + EE_Registry::instance()->REQ->add_output('generate_reg_form'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | |
57 | 57 | /** |
58 | - * @return boolean |
|
58 | + * @return boolean|null |
|
59 | 59 | */ |
60 | 60 | public function process_reg_step() { |
61 | 61 | return true; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | |
66 | 66 | /** |
67 | - * @return boolean |
|
67 | + * @return boolean|null |
|
68 | 68 | */ |
69 | 69 | public function update_reg_step() { |
70 | 70 | return true; |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text"> |
2 | - <?php echo apply_filters( 'FHEE__registration_page_attendee_information__auto_copy_attendee_pg', __('The above information will be used for any additional tickets/attendees.', 'event_espresso' ));?> |
|
2 | + <?php echo apply_filters('FHEE__registration_page_attendee_information__auto_copy_attendee_pg', __('The above information will be used for any additional tickets/attendees.', 'event_espresso')); ?> |
|
3 | 3 | </p> |
4 | 4 | \ No newline at end of file |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <div id="spco-copy-attendee-dv" class="hide-if-no-js"> |
2 | 2 | |
3 | 3 | <p class="spco-copy-all-attendee-pg"> |
4 | - <label class="ee-checkbox-label-before ee-checkbox-label-wide"><?php _e('Use Attendee #1\'s information for ALL attendees', 'event_espresso');?> |
|
4 | + <label class="ee-checkbox-label-before ee-checkbox-label-wide"><?php _e('Use Attendee #1\'s information for ALL attendees', 'event_espresso'); ?> |
|
5 | 5 | <input id="spco-copy-all-attendee-chk" class="spco-copy-all-attendee-chk ee-do-not-validate" type="checkbox" value="copy-all"> |
6 | 6 | </label> |
7 | 7 | </p> |
8 | 8 | |
9 | - <p class="spco-copy-attendee-pg"><?php echo apply_filters( 'FHEE__registration_page_attendee_information__copy_attendee_pg', sprintf( __('This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.', 'event_espresso'), '<strong>', '</strong>' )); ?></p> |
|
9 | + <p class="spco-copy-attendee-pg"><?php echo apply_filters('FHEE__registration_page_attendee_information__copy_attendee_pg', sprintf(__('This option allows you to use the above information for all additional attendee question fields. %sPlease note:%s some events may have additional questions that you may still be required to answer in order to complete your registration.', 'event_espresso'), '<strong>', '</strong>')); ?></p> |
|
10 | 10 | |
11 | - <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><span class="dashicons dashicons-arrow-right"></span><?php _e('advanced copy options', 'event_espresso');?></a> |
|
12 | - <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" style="display: none;"><span class="dashicons dashicons-arrow-down"></span><?php _e('basic copy options', 'event_espresso');?></a> |
|
11 | + <a id="display-more-attendee-copy-options" class="display-the-hidden smaller-text float-right" rel="more-attendee-copy-options" ><span class="dashicons dashicons-arrow-right"></span><?php _e('advanced copy options', 'event_espresso'); ?></a> |
|
12 | + <a id="hide-more-attendee-copy-options" class="hide-the-displayed smaller-text float-right" rel="more-attendee-copy-options" style="display: none;"><span class="dashicons dashicons-arrow-down"></span><?php _e('basic copy options', 'event_espresso'); ?></a> |
|
13 | 13 | |
14 | 14 | <div id="more-attendee-copy-options-dv" class="" style="display: none;"> |
15 | 15 | |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | <?php _e('Only copy the above information to the following selected additional attendees.', 'event_espresso'); ?> |
18 | 18 | </p> |
19 | 19 | |
20 | - <?php foreach ( $spco_copy_attendee_chk as $spco_copy_chk ) { echo $spco_copy_chk; } ?> |
|
20 | + <?php foreach ($spco_copy_attendee_chk as $spco_copy_chk) { echo $spco_copy_chk; } ?> |
|
21 | 21 | |
22 | 22 | </div> |
23 | 23 | <div class="clear-float"></div> |
@@ -2,16 +2,16 @@ |
||
2 | 2 | if (!defined('EVENT_ESPRESSO_VERSION')) |
3 | 3 | exit('No direct script access allowed'); |
4 | 4 | /** |
5 | - * |
|
6 | - * EE_PMT_Admin_Only. |
|
7 | - * These payment methods really shouldn't be shown on frontend and contain nearly no functionality. |
|
8 | - * They should just be used admin-side for recording payments like Cash, Check, etc. |
|
9 | - * |
|
10 | - * @package Event Espresso |
|
11 | - * @subpackage |
|
12 | - * @author Mike Nelson |
|
13 | - * |
|
14 | - */ |
|
5 | + * |
|
6 | + * EE_PMT_Admin_Only. |
|
7 | + * These payment methods really shouldn't be shown on frontend and contain nearly no functionality. |
|
8 | + * They should just be used admin-side for recording payments like Cash, Check, etc. |
|
9 | + * |
|
10 | + * @package Event Espresso |
|
11 | + * @subpackage |
|
12 | + * @author Mike Nelson |
|
13 | + * |
|
14 | + */ |
|
15 | 15 | class EE_PMT_Admin_Only extends EE_PMT_Base{ |
16 | 16 | |
17 | 17 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
2 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
3 | 3 | exit('No direct script access allowed'); |
4 | 4 | /** |
5 | 5 | * |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @author Mike Nelson |
13 | 13 | * |
14 | 14 | */ |
15 | -class EE_PMT_Admin_Only extends EE_PMT_Base{ |
|
15 | +class EE_PMT_Admin_Only extends EE_PMT_Base { |
|
16 | 16 | |
17 | 17 | |
18 | 18 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @param \EE_Transaction $transaction |
35 | 35 | * @return NULL |
36 | 36 | */ |
37 | - public function generate_new_billing_form( EE_Transaction $transaction = NULL ) { |
|
37 | + public function generate_new_billing_form(EE_Transaction $transaction = NULL) { |
|
38 | 38 | return NULL; |
39 | 39 | } |
40 | 40 |
@@ -1,6 +1,7 @@ |
||
1 | 1 | <?php |
2 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
2 | +if (!defined('EVENT_ESPRESSO_VERSION')) { |
|
3 | 3 | exit('No direct script access allowed'); |
4 | +} |
|
4 | 5 | /** |
5 | 6 | * |
6 | 7 | * EE_PMT_Admin_Only. |
@@ -3,27 +3,27 @@ |
||
3 | 3 | if (!defined('EVENT_ESPRESSO_VERSION')) |
4 | 4 | exit('No direct script access allowed'); |
5 | 5 | /** |
6 | - * Event Espresso |
|
7 | - * |
|
8 | - * Event Registration and Management Plugin for WordPress |
|
9 | - * |
|
10 | - * @ package Event Espresso |
|
11 | - * @ author Seth Shoultes |
|
12 | - * @ copyright (c) 2008-2011 Event Espresso All Rights Reserved. |
|
13 | - * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
14 | - * @ link http://www.eventespresso.com |
|
15 | - * @ version 4.3 |
|
16 | - * |
|
17 | - * ------------------------------------------------------------------------ |
|
18 | - * |
|
19 | - * bank_payment_overview_content |
|
20 | - * |
|
21 | - * @package Event Espresso |
|
22 | - * @subpackage |
|
23 | - * @author Mike Nelson |
|
24 | - * |
|
25 | - * ------------------------------------------------------------------------ |
|
26 | - */ |
|
6 | + * Event Espresso |
|
7 | + * |
|
8 | + * Event Registration and Management Plugin for WordPress |
|
9 | + * |
|
10 | + * @ package Event Espresso |
|
11 | + * @ author Seth Shoultes |
|
12 | + * @ copyright (c) 2008-2011 Event Espresso All Rights Reserved. |
|
13 | + * @ license http://eventespresso.com/support/terms-conditions/ * see Plugin Licensing * |
|
14 | + * @ link http://www.eventespresso.com |
|
15 | + * @ version 4.3 |
|
16 | + * |
|
17 | + * ------------------------------------------------------------------------ |
|
18 | + * |
|
19 | + * bank_payment_overview_content |
|
20 | + * |
|
21 | + * @package Event Espresso |
|
22 | + * @subpackage |
|
23 | + * @author Mike Nelson |
|
24 | + * |
|
25 | + * ------------------------------------------------------------------------ |
|
26 | + */ |
|
27 | 27 | ?><div class="event-display-boxes"> |
28 | 28 | <h4 id="page_title" class="payment_type_title section-heading"><?php echo $page_title ?></h4> |
29 | 29 | <p class="instruct"><?php echo wpautop( $payment_instructions ) ?></p> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
3 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) |
|
4 | 4 | exit('No direct script access allowed'); |
5 | 5 | /** |
6 | 6 | * Event Espresso |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | ?><div class="event-display-boxes"> |
28 | 28 | <h4 id="page_title" class="payment_type_title section-heading"><?php echo $page_title ?></h4> |
29 | - <p class="instruct"><?php echo wpautop( $payment_instructions ) ?></p> |
|
29 | + <p class="instruct"><?php echo wpautop($payment_instructions) ?></p> |
|
30 | 30 | </div> |
31 | 31 | <?php |
32 | 32 | // End of file bank_payment_overview_content.template.php |
33 | 33 | \ No newline at end of file |
@@ -1,7 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (!defined('EVENT_ESPRESSO_VERSION')) |
|
3 | +if (!defined('EVENT_ESPRESSO_VERSION')) { |
|
4 | 4 | exit('No direct script access allowed'); |
5 | +} |
|
5 | 6 | /** |
6 | 7 | * Event Espresso |
7 | 8 | * |