Completed
Branch master (6bdf49)
by
unknown
36:31 queued 29:38
created
admin_pages/events/templates/event_settings.template.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -22,19 +22,19 @@
 block discarded – undo
22 22
             <td>
23 23
                 <p>
24 24
                     <?php echo wp_kses(
25
-                        EEH_Form_Fields::select_input(
26
-                            'default_reg_status',
27
-                            $reg_status_array,
28
-                            $default_reg_status
29
-                        ),
30
-                        AllowedTags::getWithFormTags()
31
-                    ); ?>
25
+						EEH_Form_Fields::select_input(
26
+							'default_reg_status',
27
+							$reg_status_array,
28
+							$default_reg_status
29
+						),
30
+						AllowedTags::getWithFormTags()
31
+					); ?>
32 32
                 </p>
33 33
                 <p class="description">
34 34
                     <?php esc_html_e(
35
-                        'This setting allows you to preselect what the default registration status setting is when creating an event.  Note that changing this setting does NOT retroactively apply it to existing events.',
36
-                        'event_espresso'
37
-                    ); ?>
35
+						'This setting allows you to preselect what the default registration status setting is when creating an event.  Note that changing this setting does NOT retroactively apply it to existing events.',
36
+						'event_espresso'
37
+					); ?>
38 38
                 </p>
39 39
             </td>
40 40
         </tr>
Please login to merge, or discard this patch.
admin_pages/venues/templates/google_map.template.php 1 patch
Indentation   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -20,24 +20,24 @@  discard block
 block discarded – undo
20 20
                 </th>
21 21
                 <td>
22 22
                     <?php echo wp_kses(
23
-                        EEH_Form_Fields::select_input(
24
-                            'use_google_maps',
25
-                            $values,
26
-                            $map_settings->use_google_maps,
27
-                            'id="ee-display-map-no-shortcodes"'
28
-                        ),
29
-                        AllowedTags::getWithFormTags()
30
-                    ); ?>
23
+						EEH_Form_Fields::select_input(
24
+							'use_google_maps',
25
+							$values,
26
+							$map_settings->use_google_maps,
27
+							'id="ee-display-map-no-shortcodes"'
28
+						),
29
+						AllowedTags::getWithFormTags()
30
+					); ?>
31 31
                     <p class="description">
32 32
                         <?php esc_html_e(
33
-                            'Turn Google maps on or off site wide for Event Espresso.',
34
-                            'event_espresso'
35
-                        ); ?>
33
+							'Turn Google maps on or off site wide for Event Espresso.',
34
+							'event_espresso'
35
+						); ?>
36 36
                     </p>
37 37
                 </td>
38 38
             </tr>
39 39
             <?php
40
-            if (apply_filters('FHEE__google_map__show_api_key_input', true)) { ?>
40
+			if (apply_filters('FHEE__google_map__show_api_key_input', true)) { ?>
41 41
                 <tr>
42 42
                     <th>
43 43
                         <label for="ee-google-map-api-key">
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
                         />
54 54
                         <p class="description">
55 55
                             <?php printf(
56
-                                esc_html__(
57
-                                    'An API key is now required to use the Google Maps API: %1$sclick here to get an API key%2$s',
58
-                                    'event_espresso'
59
-                                ),
60
-                                '<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank" rel="noopener noreferrer">',
61
-                                '</a>'
62
-                            );
63
-                            ?>
56
+								esc_html__(
57
+									'An API key is now required to use the Google Maps API: %1$sclick here to get an API key%2$s',
58
+									'event_espresso'
59
+								),
60
+								'<a href="https://console.developers.google.com/flows/enableapi?apiid=maps_backend,geocoding_backend,directions_backend,distance_matrix_backend,elevation_backend,static_maps_backend&keyType=CLIENT_SIDE&reusekey=true" target="_blank" rel="noopener noreferrer">',
61
+								'</a>'
62
+							);
63
+							?>
64 64
                         </p>
65 65
                     </td>
66 66
                 </tr>
@@ -132,14 +132,14 @@  discard block
 block discarded – undo
132 132
                 </th>
133 133
                 <td>
134 134
                     <?php echo wp_kses(
135
-                        EEH_Form_Fields::select_input(
136
-                            'event_details_display_nav',
137
-                            $values,
138
-                            $map_settings->event_details_display_nav,
139
-                            'id="event_details_display_nav" '
140
-                        ),
141
-                        AllowedTags::getWithFormTags()
142
-                    ); ?>
135
+						EEH_Form_Fields::select_input(
136
+							'event_details_display_nav',
137
+							$values,
138
+							$map_settings->event_details_display_nav,
139
+							'id="event_details_display_nav" '
140
+						),
141
+						AllowedTags::getWithFormTags()
142
+					); ?>
143 143
                 </td>
144 144
             </tr>
145 145
 
@@ -151,14 +151,14 @@  discard block
 block discarded – undo
151 151
                 </th>
152 152
                 <td>
153 153
                     <?php echo wp_kses(
154
-                        EEH_Form_Fields::select_input(
155
-                            'event_details_nav_size',
156
-                            $values,
157
-                            $map_settings->event_details_nav_size,
158
-                            'id="event_details_nav_size"'
159
-                        ),
160
-                        AllowedTags::getWithFormTags()
161
-                    ); ?>
154
+						EEH_Form_Fields::select_input(
155
+							'event_details_nav_size',
156
+							$values,
157
+							$map_settings->event_details_nav_size,
158
+							'id="event_details_nav_size"'
159
+						),
160
+						AllowedTags::getWithFormTags()
161
+					); ?>
162 162
                 </td>
163 163
             </tr>
164 164
 
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
                 <td>
170 170
                     <label for="event_details_control_type-default" class="ee-admin-radio-lbl">
171 171
                         <?php $checked = $map_settings->event_details_control_type == 'default'
172
-                            ? 'checked'
173
-                            : ''; ?>
172
+							? 'checked'
173
+							: ''; ?>
174 174
                         <input id="event_details_control_type-default"
175 175
                                type="radio"
176 176
                                name="event_details_control_type"
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
 
183 183
                     <label for="event_details_control_type-horizontal" class="ee-admin-radio-lbl">
184 184
                         <?php $checked = $map_settings->event_details_control_type == 'horizontal'
185
-                            ? 'checked'
186
-                            : ''; ?>
185
+							? 'checked'
186
+							: ''; ?>
187 187
                         <input id="event_details_control_type-horizontal"
188 188
                                type="radio"
189 189
                                name="event_details_control_type"
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
 
196 196
                     <label for="event_details_control_type-dropdown" class="ee-admin-radio-lbl">
197 197
                         <?php $checked = $map_settings->event_details_control_type == 'dropdown'
198
-                            ? 'checked'
199
-                            : ''; ?>
198
+							? 'checked'
199
+							: ''; ?>
200 200
                         <input id="event_details_control_type-dropdown"
201 201
                                type="radio"
202 202
                                name="event_details_control_type"
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
                 <td>
215 215
                     <label for="event_details_map_align-none" class="ee-admin-radio-lbl">
216 216
                         <?php $checked = $map_settings->event_details_map_align == 'none'
217
-                            ? 'checked'
218
-                            : ''; ?>
217
+							? 'checked'
218
+							: ''; ?>
219 219
                         <input id="event_details_map_align-none"
220 220
                                type="radio"
221 221
                                name="event_details_map_align"
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
 
228 228
                     <label for="event_details_map_align-left" class="ee-admin-radio-lbl">
229 229
                         <?php $checked = $map_settings->event_details_map_align == 'left'
230
-                            ? 'checked'
231
-                            : ''; ?>
230
+							? 'checked'
231
+							: ''; ?>
232 232
                         <input id="event_details_map_align-left"
233 233
                                type="radio"
234 234
                                name="event_details_map_align"
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
 
241 241
                     <label for="event_details_map_align-center" class="ee-admin-radio-lbl">
242 242
                         <?php $checked = $map_settings->event_details_map_align == 'center'
243
-                            ? 'checked'
244
-                            : ''; ?>
243
+							? 'checked'
244
+							: ''; ?>
245 245
                         <input id="event_details_map_align-center"
246 246
                                type="radio"
247 247
                                name="event_details_map_align"
@@ -253,8 +253,8 @@  discard block
 block discarded – undo
253 253
 
254 254
                     <label for="event_details_map_align-right" class="ee-admin-radio-lbl">
255 255
                         <?php $checked = $map_settings->event_details_map_align == 'right'
256
-                            ? 'checked'
257
-                            : ''; ?>
256
+							? 'checked'
257
+							: ''; ?>
258 258
                         <input id="event_details_map_align-right"
259 259
                                type="radio"
260 260
                                name="event_details_map_align"
@@ -330,14 +330,14 @@  discard block
 block discarded – undo
330 330
                 </th>
331 331
                 <td>
332 332
                     <?php echo wp_kses(
333
-                        EEH_Form_Fields::select_input(
334
-                            'event_list_display_nav',
335
-                            $values,
336
-                            $map_settings->event_list_display_nav,
337
-                            'id="event_list_display_nav"'
338
-                        ),
339
-                        AllowedTags::getWithFormTags()
340
-                    ); ?>
333
+						EEH_Form_Fields::select_input(
334
+							'event_list_display_nav',
335
+							$values,
336
+							$map_settings->event_list_display_nav,
337
+							'id="event_list_display_nav"'
338
+						),
339
+						AllowedTags::getWithFormTags()
340
+					); ?>
341 341
                 </td>
342 342
             </tr>
343 343
 
@@ -349,14 +349,14 @@  discard block
 block discarded – undo
349 349
                 </th>
350 350
                 <td>
351 351
                     <?php echo wp_kses(
352
-                        EEH_Form_Fields::select_input(
353
-                            'event_list_nav_size',
354
-                            $values,
355
-                            $map_settings->event_list_nav_size,
356
-                            'id="event_list_nav_size"'
357
-                        ),
358
-                        AllowedTags::getWithFormTags()
359
-                    ); ?>
352
+						EEH_Form_Fields::select_input(
353
+							'event_list_nav_size',
354
+							$values,
355
+							$map_settings->event_list_nav_size,
356
+							'id="event_list_nav_size"'
357
+						),
358
+						AllowedTags::getWithFormTags()
359
+					); ?>
360 360
                 </td>
361 361
             </tr>
362 362
 
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
                 <td>
368 368
                     <label for="event_list_control_type-default" class="ee-admin-radio-lbl">
369 369
                         <?php $checked = $map_settings->event_list_control_type == 'default'
370
-                            ? 'checked'
371
-                            : ''; ?>
370
+							? 'checked'
371
+							: ''; ?>
372 372
                         <input id="event_list_control_type-default"
373 373
                                type="radio"
374 374
                                name="event_list_control_type"
@@ -380,8 +380,8 @@  discard block
 block discarded – undo
380 380
 
381 381
                     <label for="event_list_control_type-horizontal" class="ee-admin-radio-lbl">
382 382
                         <?php $checked = $map_settings->event_list_control_type == 'horizontal'
383
-                            ? 'checked'
384
-                            : ''; ?>
383
+							? 'checked'
384
+							: ''; ?>
385 385
                         <input id="event_list_control_type-horizontal"
386 386
                                type="radio"
387 387
                                name="event_list_control_type"
@@ -393,9 +393,9 @@  discard block
 block discarded – undo
393 393
 
394 394
                     <label for="event_list_control_type-dropdown" class="ee-admin-radio-lbl">
395 395
                         <?php $checked =
396
-                            $map_settings->event_list_control_type == 'dropdown'
397
-                                ? 'checked'
398
-                                : ''; ?>
396
+							$map_settings->event_list_control_type == 'dropdown'
397
+								? 'checked'
398
+								: ''; ?>
399 399
                         <input id="event_list_control_type-dropdown"
400 400
                                type="radio"
401 401
                                name="event_list_control_type"
@@ -415,8 +415,8 @@  discard block
 block discarded – undo
415 415
                 <td>
416 416
                     <label for="event_list_map_align-none" class="ee-admin-radio-lbl">
417 417
                         <?php $checked = $map_settings->event_list_map_align == 'none'
418
-                            ? 'checked'
419
-                            : ''; ?>
418
+							? 'checked'
419
+							: ''; ?>
420 420
                         <input id="event_list_map_align-none"
421 421
                                type="radio"
422 422
                                name="event_list_map_align"
@@ -428,8 +428,8 @@  discard block
 block discarded – undo
428 428
 
429 429
                     <label for="event_list_map_align-left" class="ee-admin-radio-lbl">
430 430
                         <?php $checked = $map_settings->event_list_map_align == 'left'
431
-                            ? 'checked'
432
-                            : ''; ?>
431
+							? 'checked'
432
+							: ''; ?>
433 433
                         <input id="event_list_map_align-left"
434 434
                                type="radio"
435 435
                                name="event_list_map_align"
@@ -441,8 +441,8 @@  discard block
 block discarded – undo
441 441
 
442 442
                     <label for="event_list_map_align-center" class="ee-admin-radio-lbl">
443 443
                         <?php $checked = $map_settings->event_list_map_align == 'center'
444
-                            ? 'checked'
445
-                            : ''; ?>
444
+							? 'checked'
445
+							: ''; ?>
446 446
                         <input id="event_list_map_align-center"
447 447
                                type="radio"
448 448
                                name="event_list_map_align"
@@ -454,8 +454,8 @@  discard block
 block discarded – undo
454 454
 
455 455
                     <label for="event_list_map_align-right" class="ee-admin-radio-lbl">
456 456
                         <?php $checked = $map_settings->event_list_map_align == 'right'
457
-                            ? 'checked'
458
-                            : ''; ?>
457
+							? 'checked'
458
+							: ''; ?>
459 459
                         <input id="event_list_map_align-right"
460 460
                                type="radio"
461 461
                                name="event_list_map_align"
Please login to merge, or discard this patch.
modules/gateways/Invoice/lib/templates/invoice_body.template.php 1 patch
Indentation   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -76,20 +76,20 @@  discard block
 block discarded – undo
76 76
         </thead>
77 77
         <tbody>
78 78
         <?php
79
-        /**
80
-         * Recursive function for traversing all the sub-items of each line item
81
-         * and displaying them in the table
82
-         *
83
-         * @param EE_Line_Item $line_item
84
-         * @param boolean      $odd for indicating whether to style this line item as an 'odd' or 'even'
85
-         */
86
-        function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false)
87
-        {
88
-            switch ($line_item->type()) {
89
-                case EEM_Line_Item::type_total:
90
-                    foreach ($line_item->children() as $child_line_item) {
91
-                        ee_invoice_display_line_item($child_line_item, $show_line_item_description);
92
-                    } ?>
79
+		/**
80
+		 * Recursive function for traversing all the sub-items of each line item
81
+		 * and displaying them in the table
82
+		 *
83
+		 * @param EE_Line_Item $line_item
84
+		 * @param boolean      $odd for indicating whether to style this line item as an 'odd' or 'even'
85
+		 */
86
+		function ee_invoice_display_line_item(EE_Line_Item $line_item, $show_line_item_description, $odd = false)
87
+		{
88
+			switch ($line_item->type()) {
89
+				case EEM_Line_Item::type_total:
90
+					foreach ($line_item->children() as $child_line_item) {
91
+						ee_invoice_display_line_item($child_line_item, $show_line_item_description);
92
+					} ?>
93 93
                     <tr>
94 94
                         <td colspan="<?php echo ($show_line_item_description ? 5 : 4) ?>">
95 95
                             <hr>
@@ -101,50 +101,50 @@  discard block
 block discarded – undo
101 101
                         <td class="total"><?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags()); ?></td>
102 102
                     </tr>
103 103
                     <?php
104
-                    break;
104
+					break;
105 105
 
106 106
 
107
-                case EEM_Line_Item::type_sub_total:
108
-                    foreach ($line_item->children() as $child_line_item) {
109
-                        // $odd = !$odd;
110
-                        ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd);
111
-                    } ?>
107
+				case EEM_Line_Item::type_sub_total:
108
+					foreach ($line_item->children() as $child_line_item) {
109
+						// $odd = !$odd;
110
+						ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd);
111
+					} ?>
112 112
                     <tr class="total_tr odd">
113 113
                         <td colspan="<?php echo ($show_line_item_description ? 2 : 1) ?>">&nbsp;</td>
114 114
                         <td colspan="2" class="total" id="total_currency">
115 115
                             <?php esc_html_e(
116
-                                'Sub-Total',
117
-                                'event_espresso'
118
-                            ); ?></td>
116
+								'Sub-Total',
117
+								'event_espresso'
118
+							); ?></td>
119 119
                         <td class="total"><?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags()); ?></td>
120 120
                     </tr>
121 121
                     <?php
122
-                    break;
122
+					break;
123 123
 
124 124
 
125
-                case EEM_Line_Item::type_tax_sub_total:
126
-                    foreach ($line_item->children() as $child_line_item) {
127
-                        $odd = ! $odd;
128
-                        ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd);
129
-                    } ?>
125
+				case EEM_Line_Item::type_tax_sub_total:
126
+					foreach ($line_item->children() as $child_line_item) {
127
+						$odd = ! $odd;
128
+						ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd);
129
+					} ?>
130 130
                     <tr class="total_tr odd">
131 131
                         <td colspan="<?php echo ($show_line_item_description ? 2 : 1) ?>">&nbsp;</td>
132 132
                         <td colspan="2" class="total" id="total_currency">
133 133
                             <?php esc_html_e(
134
-                                'Tax Total',
135
-                                'event_espresso'
136
-                            ); ?></td>
134
+								'Tax Total',
135
+								'event_espresso'
136
+							); ?></td>
137 137
                         <td class="total"><?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags()); ?></td>
138 138
                     </tr>
139 139
                     <?php
140
-                    break;
140
+					break;
141 141
 
142 142
 
143
-                case EEM_Line_Item::type_line_item:
144
-                    $subitems = $line_item->children();
145
-                    $has_subitems = count($subitems) > 1;
146
-                    if ($has_subitems) {
147
-                        ?>
143
+				case EEM_Line_Item::type_line_item:
144
+					$subitems = $line_item->children();
145
+					$has_subitems = count($subitems) > 1;
146
+					if ($has_subitems) {
147
+						?>
148 148
                         <tr class="item <?php echo ($odd ? 'odd' : ''); ?>">
149 149
                             <td class="item_l"><?php echo esc_html($line_item->name()) ?></td>
150 150
                             <?php if ($show_line_item_description) { ?>
@@ -155,18 +155,18 @@  discard block
 block discarded – undo
155 155
                             <td class="item_c"><?php echo esc_html($line_item->unit_price_no_code()) ?></td>
156 156
 
157 157
                             <td class="item_r"> <?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags());
158
-                                echo ($line_item->is_taxable() ? '*' : ''); ?> </td>
158
+								echo ($line_item->is_taxable() ? '*' : ''); ?> </td>
159 159
                             <?php // <td class="item_l"><?php  $datetimes_strings = array(); foreach($datetimes as $datetime){ $datetimes_strings[]= $datetime->start_date_and_time();} echo implode(", ",$datetimes_strings);
160
-                            ?>
160
+							?>
161 161
                         </tr>
162 162
                         <?php
163
-                        if ($has_subitems) {
164
-                            foreach ($line_item->children() as $child_line_item) {
165
-                                ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd);
166
-                            }
167
-                        }
168
-                    } else {// no subitems - just show this line item
169
-                        ?>
163
+						if ($has_subitems) {
164
+							foreach ($line_item->children() as $child_line_item) {
165
+								ee_invoice_display_line_item($child_line_item, $show_line_item_description, $odd);
166
+							}
167
+						}
168
+					} else {// no subitems - just show this line item
169
+						?>
170 170
                         <tr class="item <?php echo ($odd ? 'odd' : ''); ?>">
171 171
                             <td class="item_l"><?php echo esc_html($line_item->name()); ?></td>
172 172
                             <?php if ($show_line_item_description) { ?>
@@ -175,15 +175,15 @@  discard block
 block discarded – undo
175 175
                             <td class="item_l"><?php echo esc_html($line_item->quantity()); ?></td>
176 176
                             <td class="item_c"><?php echo wp_kses($line_item->unit_price_no_code(), AllowedTags::getAllowedTags()); ?></td>
177 177
                             <td class="item_r"> <?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags());
178
-                                echo ($line_item->is_taxable() ? '*' : ''); ?> </td>
178
+								echo ($line_item->is_taxable() ? '*' : ''); ?> </td>
179 179
                             <?php // <td class="item_l"><?php  $datetimes_strings = array(); foreach($datetimes as $datetime){ $datetimes_strings[]= $datetime->start_date_and_time();} echo implode(", ",$datetimes_strings);
180
-                            ?>
180
+							?>
181 181
                         </tr>
182 182
                     <?php }
183 183
 
184
-                    break;
185
-                case EEM_Line_Item::type_sub_line_item:
186
-                    ?>
184
+					break;
185
+				case EEM_Line_Item::type_sub_line_item:
186
+					?>
187 187
                     <tr class="item subitem-row">
188 188
                         <td class="item_l subitem"><?php echo esc_html($line_item->name()); ?></td>
189 189
                         <?php if ($show_line_item_description) { ?>
@@ -199,9 +199,9 @@  discard block
 block discarded – undo
199 199
                         <td class="item_r"><?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags()); ?></td>
200 200
                     </tr>
201 201
                     <?php
202
-                    break;
203
-                case EEM_Line_Item::type_tax:
204
-                    ?>
202
+					break;
203
+				case EEM_Line_Item::type_tax:
204
+					?>
205 205
                     <tr class="item sub-item tax-total">
206 206
                     <td class="item_l"><?php echo esc_html($line_item->name()); ?></td>
207 207
                     <?php if ($show_line_item_description) { ?>
@@ -211,15 +211,15 @@  discard block
 block discarded – undo
211 211
 
212 212
                     <td class="item_r"><?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags()); ?></td>
213 213
                     </tr><?php
214
-                    break;
215
-            }
216
-        }
214
+					break;
215
+			}
216
+		}
217 217
 
218
-        $c = false;
219
-        /* @var $transaction EE_Transaction */
220
-        $total_line_item = $transaction->total_line_item();
221
-        ee_invoice_display_line_item($total_line_item, $show_line_item_description);
222
-        ?>
218
+		$c = false;
219
+		/* @var $transaction EE_Transaction */
220
+		$total_line_item = $transaction->total_line_item();
221
+		ee_invoice_display_line_item($total_line_item, $show_line_item_description);
222
+		?>
223 223
         </tbody>
224 224
 
225 225
     </table>
@@ -238,11 +238,11 @@  discard block
 block discarded – undo
238 238
         </thead>
239 239
         <tbody>
240 240
         <?php
241
-        $c = false;
242
-        if (! empty($payments)) {
243
-            foreach ($payments as $payment) {
244
-                /* @var $payment EE_Payment */
245
-                ?>
241
+		$c = false;
242
+		if (! empty($payments)) {
243
+			foreach ($payments as $payment) {
244
+				/* @var $payment EE_Payment */
245
+				?>
246 246
                 <tr class='item <?php echo(($c = ! $c) ? ' odd' : '') ?>'>
247 247
                     <td><?php $payment->e('PAY_gateway') ?></td>
248 248
                     <td><?php echo esc_html($payment->timestamp('D M j, Y')); ?></td>
@@ -251,23 +251,23 @@  discard block
 block discarded – undo
251 251
                     <td><?php $payment->e_pretty_status() ?></td>
252 252
                     <td class='item_r'>
253 253
                         <?php echo wp_kses(
254
-                            EEH_Template::format_currency($payment->amount()),
255
-                            AllowedTags::getAllowedTags()
256
-                        ); ?>
254
+							EEH_Template::format_currency($payment->amount()),
255
+							AllowedTags::getAllowedTags()
256
+						); ?>
257 257
                     </td>
258 258
                 </tr>
259 259
             <?php }
260
-        } else {
261
-            ?>
260
+		} else {
261
+			?>
262 262
             <tr class='item'>
263 263
                 <td class='aln-cntr' colspan=6>
264 264
                     <?php esc_html_e(
265
-                        "No approved payments have been received",
266
-                        'event_espresso'
267
-                    ) ?></td>
265
+						"No approved payments have been received",
266
+						'event_espresso'
267
+					) ?></td>
268 268
             </tr>
269 269
         <?php }
270
-        ?>
270
+		?>
271 271
         </tbody>
272 272
         <tfoot>
273 273
         <tr class='total_tr'>
@@ -275,9 +275,9 @@  discard block
 block discarded – undo
275 275
             <td class="item_r"><?php esc_html_e('Total Paid', 'event_espresso') ?></td>
276 276
             <td class="item_r">
277 277
                 <?php echo wp_kses(
278
-                    EEH_Template::format_currency($amount_pd),
279
-                    AllowedTags::getAllowedTags()
280
-                ); ?>
278
+					EEH_Template::format_currency($amount_pd),
279
+					AllowedTags::getAllowedTags()
280
+				); ?>
281 281
             </td>
282 282
         </tr>
283 283
         <tr class="total_tr">
@@ -285,9 +285,9 @@  discard block
 block discarded – undo
285 285
             <td class="total" id="total_currency"><?php esc_html_e('Amount Owed', 'event_espresso'); ?></td>
286 286
             <td class="total">
287 287
                 <?php echo wp_kses(
288
-                    EEH_Template::format_currency($total_cost - $amount_pd),
289
-                    AllowedTags::getAllowedTags()
290
-                ); ?>
288
+					EEH_Template::format_currency($total_cost - $amount_pd),
289
+					AllowedTags::getAllowedTags()
290
+				); ?>
291 291
             </td>
292 292
         </tr>
293 293
         </tfoot>
Please login to merge, or discard this patch.
modules/gateways/Invoice/lib/templates/receipt_body.template.php 1 patch
Indentation   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
             <h3 class="section-title event-name">
65 65
                 <img class="icon" src="<?php echo EE_IMAGES_URL . 'calendar_year-24x24.png'; ?>">
66 66
                 <?php
67
-                esc_html_e(
68
-                    "Event Name:",
69
-                    "event_espresso"
70
-                ) ?>
67
+				esc_html_e(
68
+					"Event Name:",
69
+					"event_espresso"
70
+				) ?>
71 71
                 <span class="plain-text"><?php echo wp_kses($event->name(), AllowedTags::getAllowedTags()); ?></span>
72 72
                 <span class="small-text link">
73 73
                 [ <a href='<?php echo esc_url_raw($event->get_permalink()) ?>'><?php esc_html_e('view', 'event_espresso'); ?></a> ]
@@ -78,14 +78,14 @@  discard block
 block discarded – undo
78 78
             <?php } ?>
79 79
             <ul class="tickets-per-event">
80 80
                 <?php
81
-                foreach ($ticket_line_items_per_event[ $event_id ] as $line_item_id => $line_item) {
82
-                    $ticket       = $line_item->ticket();
83
-                    $taxable_html = $ticket->taxable()
84
-                            ? '*'
85
-                            : '';
86
-                    $subitems     = $line_item->children();
87
-                    $ticket_uses  = $ticket->get_pretty('TKT_uses', esc_html__("any", "event_espresso"));
88
-                    ?>
81
+				foreach ($ticket_line_items_per_event[ $event_id ] as $line_item_id => $line_item) {
82
+					$ticket       = $line_item->ticket();
83
+					$taxable_html = $ticket->taxable()
84
+							? '*'
85
+							: '';
86
+					$subitems     = $line_item->children();
87
+					$ticket_uses  = $ticket->get_pretty('TKT_uses', esc_html__("any", "event_espresso"));
88
+					?>
89 89
                     <li class="event-ticket">
90 90
                         <div class="ticket-details">
91 91
                             <table class="invoice-amount">
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
                                     <th class="name-column"><?php esc_html_e("Ticket", "event_espresso"); ?></th>
95 95
                                     <th colspan="2" class="desc-column">
96 96
                                         <?php
97
-                                        esc_html_e(
98
-                                            "Description",
99
-                                            "event_espresso"
100
-                                        ); ?></th>
97
+										esc_html_e(
98
+											"Description",
99
+											"event_espresso"
100
+										); ?></th>
101 101
                                     <th class="number-column item_c"><?php esc_html_e("Quantity", "event_espresso"); ?></th>
102 102
                                     <th class="number-column item_c"><?php esc_html_e("Price", "event_espresso"); ?></th>
103 103
                                     <th class="number-column item_r"><?php esc_html_e("Total", "event_espresso"); ?></th>
@@ -105,20 +105,20 @@  discard block
 block discarded – undo
105 105
                                 </thead>
106 106
                                 <tbody>
107 107
                                 <?php
108
-                                if (count($subitems) < 2) { ?>
108
+								if (count($subitems) < 2) { ?>
109 109
                                     <tr class="item">
110 110
                                         <td><?php echo esc_html($line_item->name() . $taxable_html); ?></td>
111 111
                                         <td colspan="2">
112 112
                                             <?php echo esc_html($line_item->desc()); ?>
113 113
                                             <p class="ticket-note">
114 114
                                                 <?php
115
-                                                echo sprintf(
116
-                                                    esc_html__(
117
-                                                        'This ticket can be used once at %s of the dates/times below.',
118
-                                                        'event_espresso'
119
-                                                    ),
120
-                                                    $ticket_uses
121
-                                                ); ?>
115
+												echo sprintf(
116
+													esc_html__(
117
+														'This ticket can be used once at %s of the dates/times below.',
118
+														'event_espresso'
119
+													),
120
+													$ticket_uses
121
+												); ?>
122 122
                                             </p>
123 123
                                         </td>
124 124
                                         <td class="item_c"><?php echo esc_html($line_item->quantity()); ?></td>
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                                         <td class="item_r"><?php echo wp_kses($line_item->total_no_code(), AllowedTags::getAllowedTags());  ?></td>
127 127
                                     </tr>
128 128
                                     <?php
129
-                                } else { ?>
129
+								} else { ?>
130 130
                                     <tr class="item">
131 131
                                         <td class="aln-left">
132 132
                                             <?php echo esc_html($line_item->name() . $taxable_html); ?>
@@ -134,13 +134,13 @@  discard block
 block discarded – undo
134 134
                                         <td colspan="2"><?php echo esc_html($line_item->desc()); ?>
135 135
                                             <p class="ticket-note">
136 136
                                                 <?php
137
-                                                echo sprintf(
138
-                                                    esc_html__(
139
-                                                        'This ticket can be used once at %s of the dates/times below.',
140
-                                                        'event_espresso'
141
-                                                    ),
142
-                                                    $ticket_uses
143
-                                                ); ?>
137
+												echo sprintf(
138
+													esc_html__(
139
+														'This ticket can be used once at %s of the dates/times below.',
140
+														'event_espresso'
141
+													),
142
+													$ticket_uses
143
+												); ?>
144 144
                                             </p>
145 145
                                         </td>
146 146
                                         <td class="item_c">
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
                                         </td>
155 155
                                     </tr>
156 156
                                     <?php
157
-                                    foreach ($subitems as $sub_line_item) {
158
-                                        $is_percent = $sub_line_item->is_percent(); ?>
157
+									foreach ($subitems as $sub_line_item) {
158
+										$is_percent = $sub_line_item->is_percent(); ?>
159 159
                                         <tr class="subitem-row">
160 160
                                             <td class="subitem">
161 161
                                                 <?php echo esc_html($sub_line_item->name()); ?>
@@ -166,14 +166,14 @@  discard block
 block discarded – undo
166 166
                                             <td class="item_c">
167 167
                                             </td>
168 168
                                             <td class="item_c"><?php
169
-                                                echo ($is_percent
170
-                                                    ? $sub_line_item->percent() . "%"
171
-                                                    : $sub_line_item->unit_price_no_code()); ?>
169
+												echo ($is_percent
170
+													? $sub_line_item->percent() . "%"
171
+													: $sub_line_item->unit_price_no_code()); ?>
172 172
                                             </td>
173 173
                                             <td class="item_r"><?php echo wp_kses($sub_line_item->total_no_code(), AllowedTags::getAllowedTags()); ?></td>
174 174
                                         </tr>
175 175
                                         <?php
176
-                                    } ?>
176
+									} ?>
177 177
                                     <tr class="total_tr odd">
178 178
                                         <td colspan="4"></td>
179 179
                                         <td class="total" nowrap="nowrap">
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                                         </td>
185 185
                                     </tr>
186 186
                                     <?php
187
-                                } ?>
187
+								} ?>
188 188
                                 </tbody>
189 189
                             </table>
190 190
 
@@ -195,49 +195,49 @@  discard block
 block discarded – undo
195 195
                                     <h4 class="sub-section-title no-bottom-margin">
196 196
                                         <img class="icon" src="<?php echo esc_url_raw(EE_IMAGES_URL . 'clock-16x16.png'); ?>">
197 197
                                         <?php
198
-                                        echo _n(
199
-                                            "Date/Time:",
200
-                                            "Dates/Times:",
201
-                                            count($ticket->datetimes()),
202
-                                            "event_espresso"
203
-                                        ); ?></h4>
198
+										echo _n(
199
+											"Date/Time:",
200
+											"Dates/Times:",
201
+											count($ticket->datetimes()),
202
+											"event_espresso"
203
+										); ?></h4>
204 204
                                     <ul class="event-dates">
205 205
                                         <?php
206
-                                        foreach ($ticket->datetimes_ordered() as $datetime) {
207
-                                            /* @var $datetime EE_Datetime */ ?>
206
+										foreach ($ticket->datetimes_ordered() as $datetime) {
207
+											/* @var $datetime EE_Datetime */ ?>
208 208
                                             <li><?php
209
-                                                echo ($datetime->name()
210
-                                                    ? '<b>' . esc_html($datetime->name()) . ' </b>'
211
-                                                    : '');
212
-                                                echo sprintf(
213
-                                                    esc_html__("%s - %s (%s)", "event_espresso"),
214
-                                                    $datetime->start_date_and_time(),
215
-                                                    $datetime->end_date_and_time(),
216
-                                                    $datetime->get_timezone()
217
-                                                );
218
-                                                echo ($datetime->description()
219
-                                                    ? '<p class="ticket-note">' . wp_kses($datetime->description(), AllowedTags::getAllowedTags()) . '</p>'
220
-                                                    : ''); ?></li>
209
+												echo ($datetime->name()
210
+													? '<b>' . esc_html($datetime->name()) . ' </b>'
211
+													: '');
212
+												echo sprintf(
213
+													esc_html__("%s - %s (%s)", "event_espresso"),
214
+													$datetime->start_date_and_time(),
215
+													$datetime->end_date_and_time(),
216
+													$datetime->get_timezone()
217
+												);
218
+												echo ($datetime->description()
219
+													? '<p class="ticket-note">' . wp_kses($datetime->description(), AllowedTags::getAllowedTags()) . '</p>'
220
+													: ''); ?></li>
221 221
                                             <?php
222
-                                        } ?>
222
+										} ?>
223 223
                                     </ul>
224 224
                                 </div>
225 225
                                 <?php
226
-                                if ($event->venues()) { ?>
226
+								if ($event->venues()) { ?>
227 227
                                     <div class="ticket-place-details">
228 228
                                         <h4 class="sub-section-title no-bottom-margin">
229 229
                                             <img class="icon" src="<?php
230
-                                            echo esc_url_raw(EE_IMAGES_URL . 'location-pin-16x16.png'); ?>">
230
+											echo esc_url_raw(EE_IMAGES_URL . 'location-pin-16x16.png'); ?>">
231 231
                                             <?php
232
-                                            echo _n(
233
-                                                "Venue:",
234
-                                                "Venues:",
235
-                                                count($event->venues()),
236
-                                                "event_espresso"
237
-                                            ); ?></h4>
232
+											echo _n(
233
+												"Venue:",
234
+												"Venues:",
235
+												count($event->venues()),
236
+												"event_espresso"
237
+											); ?></h4>
238 238
                                         <ul class="event-venues">
239 239
                                             <?php
240
-                                            foreach ($event->venues() as $venue) { ?>
240
+											foreach ($event->venues() as $venue) { ?>
241 241
                                                 <li><?php echo esc_html($venue->name()) ?>
242 242
                                                     <span class="small-text">
243 243
                                                 [
@@ -248,18 +248,18 @@  discard block
 block discarded – undo
248 248
                                             </span>
249 249
                                                 </li>
250 250
                                                 <?php
251
-                                            } ?>
251
+											} ?>
252 252
                                         </ul>
253 253
                                     </div>
254 254
                                     <?php
255
-                                } ?>
255
+								} ?>
256 256
                             </div>
257 257
                             <div class="ticket-registrations-area">
258 258
                                 <h4 class="sub-section-title">
259 259
                                     <img class="icon" src="<?php
260
-                                    echo esc_url_raw(EE_IMAGES_URL . 'users-16x16.png'); ?>">
260
+									echo esc_url_raw(EE_IMAGES_URL . 'users-16x16.png'); ?>">
261 261
                                     <?php
262
-                                    echo esc_html__("Registration Details", "event_espresso"); ?>
262
+									echo esc_html__("Registration Details", "event_espresso"); ?>
263 263
                                     <span class="small-text link">[
264 264
                                 <a class="print_button noPrint" href="<?php echo esc_url_raw($edit_reg_info_url); ?>">
265 265
                                     <?php esc_html_e('edit', 'event_espresso'); ?>
@@ -269,12 +269,12 @@  discard block
 block discarded – undo
269 269
                                 </h4>
270 270
                                 <ul class="ticket-registrations-list">
271 271
                                     <?php
272
-                                    foreach ($registrations_per_line_item[ $line_item_id ] as $registration) {
273
-                                        /* @var $registration EE_Registration */
274
-                                        $attendee = $registration->attendee();
275
-                                        $answers  = $registration->answers(
276
-                                            ['order_by' => ['Question.Question_Group_Question.QGQ_order' => 'ASC']]
277
-                                        ); ?>
272
+									foreach ($registrations_per_line_item[ $line_item_id ] as $registration) {
273
+										/* @var $registration EE_Registration */
274
+										$attendee = $registration->attendee();
275
+										$answers  = $registration->answers(
276
+											['order_by' => ['Question.Question_Group_Question.QGQ_order' => 'ASC']]
277
+										); ?>
278 278
                                         <li class="ticket-registration">
279 279
                                             <table class="registration-details">
280 280
                                                 <tr class="odd">
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
                                                     </td>
290 290
                                                 </tr>
291 291
                                                 <?php
292
-                                                foreach ($event->question_groups() as $question_group) { ?>
292
+												foreach ($event->question_groups() as $question_group) { ?>
293 293
                                                     <tr>
294 294
                                                         <th>
295 295
                                                             <?php $question_group->e('QSG_name'); ?>
@@ -297,12 +297,12 @@  discard block
 block discarded – undo
297 297
                                                         <td></td>
298 298
                                                     </tr>
299 299
                                                     <?php $has_personal_info = false;
300
-                                                    foreach ($question_group->questions() as $question) {
301
-                                                        if (in_array($question->system_ID(), $questions_to_skip)) {
302
-                                                            $has_personal_info = true;
303
-                                                            continue;
304
-                                                        }
305
-                                                        ?>
300
+													foreach ($question_group->questions() as $question) {
301
+														if (in_array($question->system_ID(), $questions_to_skip)) {
302
+															$has_personal_info = true;
303
+															continue;
304
+														}
305
+														?>
306 306
                                                         <tr>
307 307
                                                             <th>
308 308
                                                                 <?php echo wp_kses($question->display_text(), AllowedTags::getAllowedTags()); ?>
@@ -312,26 +312,26 @@  discard block
 block discarded – undo
312 312
                                                             </td>
313 313
                                                         </tr>
314 314
                                                     <?php }
315
-                                                    if ($has_personal_info) { ?>
315
+													if ($has_personal_info) { ?>
316 316
                                                         <tr>
317 317
                                                             <th><?php esc_html_e('Attendee', 'event_espresso'); ?></th>
318 318
                                                             <td>
319 319
                                                                 <?php
320
-                                                                echo sprintf(
321
-                                                                    esc_html__('%s (%s)', "event_espresso"),
322
-                                                                    esc_html($attendee->full_name()),
323
-                                                                    sanitize_email($attendee->email())
324
-                                                                ) ?>
320
+																echo sprintf(
321
+																	esc_html__('%s (%s)', "event_espresso"),
322
+																	esc_html($attendee->full_name()),
323
+																	sanitize_email($attendee->email())
324
+																) ?>
325 325
                                                             </td>
326 326
                                                         </tr>
327 327
                                                         <?php
328
-                                                    }
329
-                                                }
330
-                                                ?>
328
+													}
329
+												}
330
+												?>
331 331
                                             </table>
332 332
                                         </li>
333 333
                                         <?php
334
-                                    } ?>
334
+									} ?>
335 335
                                 </ul>
336 336
                             </div>
337 337
                         </div>
@@ -375,10 +375,10 @@  discard block
 block discarded – undo
375 375
     <div class="grand-total-dv">
376 376
         <h2 class="grand-total">
377 377
             <?php
378
-            printf(
379
-                esc_html__("Grand Total: %s", "event_espresso"),
380
-                EEH_Template::format_currency($total_cost)
381
-            ); ?>
378
+			printf(
379
+				esc_html__("Grand Total: %s", "event_espresso"),
380
+				EEH_Template::format_currency($total_cost)
381
+			); ?>
382 382
         </h2>
383 383
     </div>
384 384
     <div class="payment-dv">
@@ -397,13 +397,13 @@  discard block
 block discarded – undo
397 397
             </thead>
398 398
             <tbody>
399 399
             <?php
400
-            $c = false;
401
-            if (! empty($payments)) {
402
-                foreach ($payments as $payment) {
403
-                    /* @var $payment EE_Payment */ ?>
400
+			$c = false;
401
+			if (! empty($payments)) {
402
+				foreach ($payments as $payment) {
403
+					/* @var $payment EE_Payment */ ?>
404 404
                     <tr class='item <?php echo(($c = ! $c)
405
-                        ? ' odd'
406
-                        : '') ?>'>
405
+						? ' odd'
406
+						: '') ?>'>
407 407
                         <td><?php $payment->e('PAY_gateway') ?></td>
408 408
                         <td><?php echo esc_html($payment->timestamp()); ?></td>
409 409
                         <td><?php $payment->e('PAY_txn_id_chq_nmbr') ?></td>
@@ -412,14 +412,14 @@  discard block
 block discarded – undo
412 412
                         <td class='item_r'><?php echo wp_kses($payment->amount_no_code(), AllowedTags::getAllowedTags()); ?></td>
413 413
                     </tr>
414 414
                 <?php }
415
-            } else { ?>
415
+			} else { ?>
416 416
                 <tr class='item'>
417 417
                     <td class='aln-cntr' colspan="6">
418 418
                         <?php
419
-                        esc_html_e(
420
-                            "No approved payments have been received.",
421
-                            'event_espresso'
422
-                        ) ?>
419
+						esc_html_e(
420
+							"No approved payments have been received.",
421
+							'event_espresso'
422
+						) ?>
423 423
                     </td>
424 424
                 </tr>
425 425
             <?php } ?>
@@ -439,9 +439,9 @@  discard block
 block discarded – undo
439 439
                 <td class="item_r"><?php esc_html_e('Total Paid', 'event_espresso') ?></td>
440 440
                 <td class="item_r">
441 441
                     <?php echo wp_kses(
442
-                        EEH_Template::format_currency($amount_pd, false, false),
443
-                        AllowedTags::getAllowedTags()
444
-                    ); ?>
442
+						EEH_Template::format_currency($amount_pd, false, false),
443
+						AllowedTags::getAllowedTags()
444
+					); ?>
445 445
                 </td>
446 446
             </tr>
447 447
             <tr class="total_tr odd">
@@ -449,9 +449,9 @@  discard block
 block discarded – undo
449 449
                 <td class="total" id="total_currency"><?php esc_html_e('Amount Owed:', 'event_espresso'); ?></td>
450 450
                 <td class="total">
451 451
                     <?php echo wp_kses(
452
-                        EEH_Template::format_currency($amount_owed),
453
-                        AllowedTags::getAllowedTags()
454
-                    ); ?>
452
+						EEH_Template::format_currency($amount_owed),
453
+						AllowedTags::getAllowedTags()
454
+					); ?>
455 455
                 </td>
456 456
             </tr>
457 457
             </tfoot>
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
             <?php if ($venues_for_events) { ?>
464 464
             <h2>
465 465
                 <?php
466
-                echo _n("Venue Details:", "Venues Details:", count($venues_for_events), "event_espresso"); ?>
466
+				echo _n("Venue Details:", "Venues Details:", count($venues_for_events), "event_espresso"); ?>
467 467
             </h2>
468 468
             <table class="venue-list">
469 469
                 <?php foreach ($venues_for_events as $venue) { ?>
Please login to merge, or discard this patch.
thank_you_page/templates/thank-you-page-transaction-details.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
                 <label><?php esc_html_e('Amount Owing: ', 'event_espresso'); ?></label>
31 31
             </td>
32 32
             <td class="<?php echo ($transaction->paid() == $transaction->total())
33
-                ? 'ee-transaction-paid'
34
-                : 'ee-transaction-unpaid' ?>">
33
+				? 'ee-transaction-paid'
34
+				: 'ee-transaction-unpaid' ?>">
35 35
                 <?php echo wp_kses(EEH_Template::format_currency($transaction->remaining()), AllowedTags::getAllowedTags()); ?>
36 36
             </td>
37 37
         </tr>
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             </td>
42 42
             <td>
43 43
                 <?php $transaction->e_pretty_status(true);
44
-                if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
44
+				if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
45 45
                     &nbsp; <span class="small-text">
46 46
                         <a href='<?php echo esc_url_raw($SPCO_payment_options_url) ?>'>
47 47
                             <?php esc_html_e('View Payment Options', 'event_espresso'); ?>
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
             </td>
60 60
         </tr>
61 61
         <?php do_action(
62
-            'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row',
63
-            $transaction
64
-        ); ?>
62
+			'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row',
63
+			$transaction
64
+		); ?>
65 65
         </tbody>
66 66
     </table>
67 67
 
Please login to merge, or discard this patch.
templates/txn_admin_details_main_meta_box_txn_details.template.php 1 patch
Indentation   +177 added lines, -177 removed lines patch added patch discarded remove patch
@@ -83,25 +83,25 @@  discard block
 block discarded – undo
83 83
     </div>
84 84
     <br class="clear" />
85 85
     <?php
86
-    $no_payments = $grand_raw_total > 0
87
-                   || $TXN_status !== EEM_Transaction::complete_status_code
88
-                   || ! empty($payments);
89
-    ?>
86
+	$no_payments = $grand_raw_total > 0
87
+				   || $TXN_status !== EEM_Transaction::complete_status_code
88
+				   || ! empty($payments);
89
+	?>
90 90
     <?php if ($attendee instanceof EE_Attendee && $no_payments) : ?>
91 91
         <?php $no_payment_text = $can_edit_payments
92
-            ? esc_html__(
93
-                'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.',
94
-                'event_espresso'
95
-            )
96
-            : esc_html__(
97
-                'No payments have been applied to this transaction yet.',
98
-                'event_espresso'
99
-            );
100
-        ?>
92
+			? esc_html__(
93
+				'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.',
94
+				'event_espresso'
95
+			)
96
+			: esc_html__(
97
+				'No payments have been applied to this transaction yet.',
98
+				'event_espresso'
99
+			);
100
+		?>
101 101
 
102 102
         <h3 class="admin-primary-mbox-h4 hdr-has-icon">
103 103
             <span class="ee-icon ee-icon-cash"></span><?php
104
-            esc_html_e('Payment Details', 'event_espresso'); ?>
104
+			esc_html_e('Payment Details', 'event_espresso'); ?>
105 105
         </h3>
106 106
 
107 107
         <div class="admin-primary-mbox-tbl-wrap">
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
                         <th class="jst-left"><?php esc_html_e('TXN&nbsp;ID / CHQ&nbsp;#', 'event_espresso'); ?></th>
118 118
                         <th class="jst-left"><?php esc_html_e('P.O. / S.O.&nbsp;#', 'event_espresso'); ?></th>
119 119
                         <th class="jst-left"><?php esc_html_e(
120
-                            'Notes / Extra&nbsp;Accounting',
121
-                            'event_espresso'
122
-                        ); ?></th>
120
+							'Notes / Extra&nbsp;Accounting',
121
+							'event_espresso'
122
+						); ?></th>
123 123
                         <th class="jst-cntr"><?php esc_html_e('Amount', 'event_espresso'); ?></th>
124 124
                     </tr>
125 125
                 </thead>
@@ -127,14 +127,14 @@  discard block
 block discarded – undo
127 127
                     <?php if ($payments) : ?>
128 128
                         <?php $payment_total = 0; ?>
129 129
                         <?php foreach ($payments as $PAY_ID => $payment) :
130
-                            if (! $payment instanceof EE_Payment) {
131
-                                continue;
132
-                            }
133
-                            $PAY_ID = absint($PAY_ID);
134
-                            $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ])
135
-                                ? wp_json_encode($existing_reg_payments[ $PAY_ID ])
136
-                                : '{}';
137
-                            ?>
130
+							if (! $payment instanceof EE_Payment) {
131
+								continue;
132
+							}
133
+							$PAY_ID = absint($PAY_ID);
134
+							$existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ])
135
+								? wp_json_encode($existing_reg_payments[ $PAY_ID ])
136
+								: '{}';
137
+							?>
138 138
                             <tr id="txn-admin-payment-tr-<?php echo absint($PAY_ID); ?>">
139 139
                                 <td>
140 140
                 <span id="payment-status-<?php echo absint($PAY_ID); ?>"
@@ -188,15 +188,15 @@  discard block
 block discarded – undo
188 188
                                     </div>
189 189
                                     <div id="payment-gateway-<?php echo absint($PAY_ID); ?>">
190 190
                                         <?php echo ($payment->payment_method() instanceof EE_Payment_Method
191
-                                            ? esc_html($payment->payment_method()->admin_name())
192
-                                            : esc_html__("Unknown", 'event_espresso')); ?>
191
+											? esc_html($payment->payment_method()->admin_name())
192
+											: esc_html__("Unknown", 'event_espresso')); ?>
193 193
                                     </div>
194 194
                                     <div id="payment-gateway-id-<?php echo absint($PAY_ID); ?>"
195 195
                                          class="hidden"
196 196
                                     >
197 197
                                         <?php echo ($payment->payment_method() instanceof EE_Payment_Method
198
-                                            ? esc_html($payment->payment_method()->ID())
199
-                                            : 0); ?>
198
+											? esc_html($payment->payment_method()->ID())
199
+											: 0); ?>
200 200
                                     </div>
201 201
                                 </td>
202 202
                                 <td class=" jst-left">
@@ -221,21 +221,21 @@  discard block
 block discarded – undo
221 221
                                 </td>
222 222
                                 <td class=" jst-rght">
223 223
                                     <?php
224
-                                    $payment_class = $payment->amount() > 0
225
-                                        ? 'txn-admin-payment-status-' . $payment->STS_ID()
226
-                                        : 'txn-admin-payment-status-PDC';
227
-                                    ?>
224
+									$payment_class = $payment->amount() > 0
225
+										? 'txn-admin-payment-status-' . $payment->STS_ID()
226
+										: 'txn-admin-payment-status-PDC';
227
+									?>
228 228
                                     <span class="<?php echo esc_attr($payment_class); ?>">
229 229
                                         <span id="payment-amount-<?php echo absint($PAY_ID); ?>" style="display:inline;">
230 230
                                         <?php echo wp_kses(
231
-                                            EEH_Template::format_currency(
232
-                                                $payment->amount(),
233
-                                                false,
234
-                                                false
235
-                                            ),
236
-                                            AllowedTags::getAllowedTags()
237
-                                        );
238
-                                        ?>
231
+											EEH_Template::format_currency(
232
+												$payment->amount(),
233
+												false,
234
+												false
235
+											),
236
+											AllowedTags::getAllowedTags()
237
+										);
238
+										?>
239 239
                                         </span>
240 240
                                     </span>
241 241
                                 </td>
@@ -243,9 +243,9 @@  discard block
 block discarded – undo
243 243
                             <?php $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0; ?>
244 244
                         <?php endforeach; ?>
245 245
                         <?php $pay_totals_class = $payment_total > $grand_raw_total
246
-                            ? ' important-notice'
247
-                            : '';
248
-                        ?>
246
+							? ' important-notice'
247
+							: '';
248
+						?>
249 249
                         <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr hidden">
250 250
                             <td class=" jst-rght" colspan="10">
251 251
                                 <span class="important-notice"><?php echo wp_kses($no_payment_text, AllowedTags::getAllowedTags()); ?></span>
@@ -257,32 +257,32 @@  discard block
 block discarded – undo
257 257
                             <th class=" jst-rght" colspan="9">
258 258
                         <span id="payments-total-spn">
259 259
                         <?php
260
-                        $overpaid = $payment_total > $grand_raw_total
261
-                            ? '<span id="overpaid">'
262
-                              . __('This transaction has been overpaid ! ', 'event_espresso')
263
-                              . '</span>'
264
-                            : '';
265
-                        echo wp_kses(
266
-                            $overpaid
267
-                            . sprintf(
268
-                                __('Payments Total %s', 'event_espresso'),
269
-                                '(' . EE_Registry::instance()->CFG->currency->code . ')'
270
-                            ),
271
-                            AllowedTags::getAllowedTags()
272
-                        ); ?>
260
+						$overpaid = $payment_total > $grand_raw_total
261
+							? '<span id="overpaid">'
262
+							  . __('This transaction has been overpaid ! ', 'event_espresso')
263
+							  . '</span>'
264
+							: '';
265
+						echo wp_kses(
266
+							$overpaid
267
+							. sprintf(
268
+								__('Payments Total %s', 'event_espresso'),
269
+								'(' . EE_Registry::instance()->CFG->currency->code . ')'
270
+							),
271
+							AllowedTags::getAllowedTags()
272
+						); ?>
273 273
                         </span>
274 274
                             </th>
275 275
                             <th class=" jst-rght">
276 276
                         <span id="txn-admin-payment-total">
277 277
                         <?php
278
-                        echo wp_kses(
279
-                            EEH_Template::format_currency(
280
-                                $payment_total,
281
-                                false,
282
-                                false
283
-                            ),
284
-                            AllowedTags::getAllowedTags()
285
-                        ); ?>
278
+						echo wp_kses(
279
+							EEH_Template::format_currency(
280
+								$payment_total,
281
+								false,
282
+								false
283
+							),
284
+							AllowedTags::getAllowedTags()
285
+						); ?>
286 286
                         </span>
287 287
                             </th>
288 288
                         </tr>
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
         <ul id="txn-admin-payment-options-ul">
367 367
             <?php if ($can_edit_payments) :
368
-                ?>
368
+				?>
369 369
                 <li>
370 370
                     <a id="display-txn-admin-apply-payment"
371 371
                        class="button-primary no-icon no-hide"
@@ -390,12 +390,12 @@  discard block
 block discarded – undo
390 390
                 </li>
391 391
             <?php endif; ?>
392 392
             <?php
393
-            // Allows extend the fields at actions area.
394
-            do_action(
395
-                'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons',
396
-                $can_edit_payments
397
-            );
398
-            ?>
393
+			// Allows extend the fields at actions area.
394
+			do_action(
395
+				'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons',
396
+				$can_edit_payments
397
+			);
398
+			?>
399 399
         </ul>
400 400
         <br class="clear" />
401 401
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
             >
407 407
                 <div class="ee-icon ee-icon-cash-add float-left"></div>
408 408
                 <?php
409
-                echo esc_html__('Apply a Payment to Transaction #', 'event_espresso') . esc_html($txn_nmbr['value']); ?>
409
+				echo esc_html__('Apply a Payment to Transaction #', 'event_espresso') . esc_html($txn_nmbr['value']); ?>
410 410
             </h2>
411 411
 
412 412
             <h2 id="admin-modal-dialog-edit-payment-h2" class="admin-modal-dialog-h2 hdr-has-icon"
@@ -414,23 +414,23 @@  discard block
 block discarded – undo
414 414
             >
415 415
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
416 416
                 <?php
417
-                printf(
418
-                    esc_html__('Edit Payment #%s for Transaction #%s', 'event_espresso'),
419
-                    '<span></span>',
420
-                    $txn_nmbr['value']
421
-                );
422
-                ?>
417
+				printf(
418
+					esc_html__('Edit Payment #%s for Transaction #%s', 'event_espresso'),
419
+					'<span></span>',
420
+					$txn_nmbr['value']
421
+				);
422
+				?>
423 423
             </h2>
424 424
 
425 425
             <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;">
426 426
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
427 427
                 <?php
428
-                printf(
429
-                    esc_html__('Edit Refund #%s for Transaction #%s', 'event_espresso'),
430
-                    '<span></span>',
431
-                    $txn_nmbr['value']
432
-                );
433
-                ?>
428
+				printf(
429
+					esc_html__('Edit Refund #%s for Transaction #%s', 'event_espresso'),
430
+					'<span></span>',
431
+					$txn_nmbr['value']
432
+				);
433
+				?>
434 434
             </h2>
435 435
 
436 436
             <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon"
@@ -438,9 +438,9 @@  discard block
 block discarded – undo
438 438
             >
439 439
                 <div class="ee-icon ee-icon-cash-remove float-left"></div>
440 440
                 <?php
441
-                echo esc_html__('Apply a Refund to Transaction #', 'event_espresso');
442
-                echo esc_html($txn_nmbr['value']);
443
-                ?>
441
+				echo esc_html__('Apply a Refund to Transaction #', 'event_espresso');
442
+				echo esc_html($txn_nmbr['value']);
443
+				?>
444 444
             </h2>
445 445
 
446 446
             <form name="txn-admin-apply-payment-frm"
@@ -539,29 +539,29 @@  discard block
 block discarded – undo
539 539
                             >
540 540
                                 <?php foreach ($payment_methods as $method) : ?>
541 541
                                     <?php
542
-                                    $selected = $method->slug() == 'cash'
543
-                                        ? ' selected'
544
-                                        : '';
545
-                                    ?>
542
+									$selected = $method->slug() == 'cash'
543
+										? ' selected'
544
+										: '';
545
+									?>
546 546
                                     <option id="payment-method-opt-<?php echo esc_attr($method->slug()); ?>"
547 547
                                             value="<?php echo esc_attr($method->ID()); ?>"
548 548
                                         <?php echo esc_attr($selected); ?>
549 549
                                     >
550 550
                                         <?php
551
-                                        echo esc_html(
552
-                                            sanitize_key($method->admin_desc())
553
-                                                ? substr($method->admin_desc(), 0, 128)
554
-                                                : $method->admin_name()
555
-                                        );
556
-                                        ?>&nbsp;&nbsp;
551
+										echo esc_html(
552
+											sanitize_key($method->admin_desc())
553
+												? substr($method->admin_desc(), 0, 128)
554
+												: $method->admin_name()
555
+										);
556
+										?>&nbsp;&nbsp;
557 557
                                     </option>
558 558
                                 <?php endforeach; ?>
559 559
                             </select>
560 560
                             <p class="description">
561 561
                                 <?php esc_html_e(
562
-                                    'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
563
-                                    'event_espresso'
564
-                                ); ?>
562
+									'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
563
+									'event_espresso'
564
+								); ?>
565 565
                             </p>
566 566
                         </div>
567 567
 
@@ -569,9 +569,9 @@  discard block
 block discarded – undo
569 569
                             <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row">
570 570
                                 <label for="txn-admin-payment-txn-id-chq-nmbr-inp" class="">
571 571
                                     <?php esc_html_e(
572
-                                        'TXN ID / CHQ #',
573
-                                        'event_espresso'
574
-                                    ); ?>
572
+										'TXN ID / CHQ #',
573
+										'event_espresso'
574
+									); ?>
575 575
                                 </label>
576 576
                                 <input name="txn_admin_payment[txn_id_chq_nmbr]"
577 577
                                        id="txn-admin-payment-txn-id-chq-nmbr-inp"
@@ -580,9 +580,9 @@  discard block
 block discarded – undo
580 580
                                 />
581 581
                                 <p class="description">
582 582
                                     <?php esc_html_e(
583
-                                        'The Transaction ID sent back from the payment gateway, or the Cheque #',
584
-                                        'event_espresso'
585
-                                    ); ?>
583
+										'The Transaction ID sent back from the payment gateway, or the Cheque #',
584
+										'event_espresso'
585
+									); ?>
586 586
                                 </p>
587 587
                             </div>
588 588
                         </div>
@@ -599,9 +599,9 @@  discard block
 block discarded – undo
599 599
                                 />
600 600
                                 <p class="description">
601 601
                                     <?php esc_html_e(
602
-                                        'The gateway response string (optional)',
603
-                                        'event_espresso'
604
-                                    ); ?>
602
+										'The gateway response string (optional)',
603
+										'event_espresso'
604
+									); ?>
605 605
                                 </p>
606 606
                             </div>
607 607
                         </div>
@@ -610,9 +610,9 @@  discard block
 block discarded – undo
610 610
                             <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row">
611 611
                                 <label for="txn-admin-payment-status-slct" class="">
612 612
                                     <?php esc_html_e(
613
-                                        'Payment Status',
614
-                                        'event_espresso'
615
-                                    ); ?>
613
+										'Payment Status',
614
+										'event_espresso'
615
+									); ?>
616 616
                                 </label>
617 617
                                 <select name="txn_admin_payment[status]"
618 618
                                         id="txn-admin-payment-status-slct"
@@ -621,10 +621,10 @@  discard block
 block discarded – undo
621 621
                                 >
622 622
                                     <?php foreach ($payment_status as $STS_ID => $STS_code) : ?>
623 623
                                         <?php
624
-                                        $selected = $STS_ID == 'PAP'
625
-                                            ? 'selected'
626
-                                            : '';
627
-                                        ?>
624
+										$selected = $STS_ID == 'PAP'
625
+											? 'selected'
626
+											: '';
627
+										?>
628 628
                                         <option id="payment-status-opt-<?php echo esc_attr($STS_ID); ?>"
629 629
                                                 value="<?php echo esc_attr($STS_ID); ?>"
630 630
                                             <?php echo esc_attr($selected); ?>
@@ -635,10 +635,10 @@  discard block
 block discarded – undo
635 635
                                 </select>
636 636
                                 <p class="description">
637 637
                                     <?php
638
-                                    esc_html_e(
639
-                                        'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
640
-                                        'event_espresso'
641
-                                    ); ?>
638
+									esc_html_e(
639
+										'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
640
+										'event_espresso'
641
+									); ?>
642 642
                                 </p>
643 643
                             </div>
644 644
                         </div>
@@ -655,9 +655,9 @@  discard block
 block discarded – undo
655 655
                             />
656 656
                             <p class="description">
657 657
                                 <?php esc_html_e(
658
-                                    'The Purchase or Sales Order Number if any (optional)',
659
-                                    'event_espresso'
660
-                                ); ?>
658
+									'The Purchase or Sales Order Number if any (optional)',
659
+									'event_espresso'
660
+								); ?>
661 661
                             </p>
662 662
                         </div>
663 663
 
@@ -678,9 +678,9 @@  discard block
 block discarded – undo
678 678
                             />
679 679
                             <p class="description">
680 680
                                 <?php esc_html_e(
681
-                                    'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
682
-                                    'event_espresso'
683
-                                ); ?>
681
+									'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
682
+									'event_espresso'
683
+								); ?>
684 684
                             </p>
685 685
                         </div>
686 686
 
@@ -715,9 +715,9 @@  discard block
 block discarded – undo
715 715
                             <?php echo wp_kses($status_change_select, AllowedTags::getWithFormTags()); ?>
716 716
                             <p class="description">
717 717
                                 <?php esc_html_e(
718
-                                    'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
719
-                                    'event_espresso'
720
-                                ); ?>
718
+									'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
719
+									'event_espresso'
720
+								); ?>
721 721
                             </p>
722 722
                             <br />
723 723
                         </div>
@@ -748,14 +748,14 @@  discard block
 block discarded – undo
748 748
                             <br class="clear-float" />
749 749
                             <p class="description">
750 750
                                 <?php printf(
751
-                                    esc_html__(
752
-                                        'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.',
753
-                                        'event_espresso'
754
-                                    ),
755
-                                    '<strong>',
756
-                                    '</strong>',
757
-                                    '<br />'
758
-                                ); ?>
751
+									esc_html__(
752
+										'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.',
753
+										'event_espresso'
754
+									),
755
+									'<strong>',
756
+									'</strong>',
757
+									'<br />'
758
+								); ?>
759 759
                             </p>
760 760
                         </div>
761 761
                         <div class="clear"></div>
@@ -820,10 +820,10 @@  discard block
 block discarded – undo
820 820
             >
821 821
                 <span class="ee-icon ee-icon-cash-add"></span>
822 822
                 <?php printf(
823
-                    esc_html__('Delete Payment/Refund for Transaction #', 'event_espresso'),
824
-                    $txn_nmbr['value']
825
-                );
826
-                ?>
823
+					esc_html__('Delete Payment/Refund for Transaction #', 'event_espresso'),
824
+					$txn_nmbr['value']
825
+				);
826
+				?>
827 827
             </h2>
828 828
 
829 829
             <form name="txn-admin-delete-payment-frm"
@@ -859,13 +859,13 @@  discard block
 block discarded – undo
859 859
                             <?php echo wp_kses($delete_status_change_select, AllowedTags::getWithFormTags()); ?>
860 860
                             <p class="description">
861 861
                                 <?php printf(
862
-                                    esc_html__(
863
-                                        'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s',
864
-                                        'event_espresso'
865
-                                    ),
866
-                                    '<strong>',
867
-                                    '</strong>'
868
-                                ); ?>
862
+									esc_html__(
863
+										'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s',
864
+										'event_espresso'
865
+									),
866
+									'<strong>',
867
+									'</strong>'
868
+								); ?>
869 869
                             </p>
870 870
                         </div>
871 871
 
@@ -880,10 +880,10 @@  discard block
 block discarded – undo
880 880
                             />
881 881
                             <p class="description">
882 882
                                 <?php
883
-                                esc_html_e(
884
-                                    'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.',
885
-                                    'event_espresso'
886
-                                ); ?>
883
+								esc_html_e(
884
+									'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.',
885
+									'event_espresso'
886
+								); ?>
887 887
                             </p>
888 888
                         </div>
889 889
                         <div class="clear"></div>
@@ -916,8 +916,8 @@  discard block
 block discarded – undo
916 916
     <?php endif; // $grand_raw_total > 0?>
917 917
 
918 918
     <?php if (WP_DEBUG) {
919
-        $delivered_messages = get_option('EED_Messages__payment', []);
920
-        if (isset($delivered_messages[ $TXN_ID ])) { ?>
919
+		$delivered_messages = get_option('EED_Messages__payment', []);
920
+		if (isset($delivered_messages[ $TXN_ID ])) { ?>
921 921
             <h4 class="admin-primary-mbox-h4 hdr-has-icon">
922 922
                 <span class="dashicons dashicons-email-alt"></span>
923 923
                 <?php esc_html_e('Messages Sent to Primary Registrant', 'event_espresso'); ?>
@@ -929,39 +929,39 @@  discard block
 block discarded – undo
929 929
                             <th class="jst-left"><?php esc_html_e('Date & Time', 'event_espresso'); ?></th>
930 930
                             <th class="jst-left"><?php esc_html_e('Message Type', 'event_espresso'); ?></th>
931 931
                             <th class="jst-left"><?php esc_html_e(
932
-                                'Payment Status Upon Sending',
933
-                                'event_espresso'
934
-                            ); ?></th>
932
+								'Payment Status Upon Sending',
933
+								'event_espresso'
934
+							); ?></th>
935 935
                             <th class="jst-left"><?php esc_html_e('TXN Status Upon Sending', 'event_espresso'); ?></th>
936 936
                         </tr>
937 937
                     </thead>
938 938
                     <tbody>
939 939
                         <?php
940
-                        foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) :
941
-                            ?>
940
+						foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) :
941
+							?>
942 942
                             <tr>
943 943
                                 <td class="jst-left">
944 944
                                     <?php echo esc_html(
945
-                                        date(
946
-                                            get_option('date_format') . ' ' . get_option('time_format'),
947
-                                            ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
948
-                                        )
949
-                                    ); ?>
945
+										date(
946
+											get_option('date_format') . ' ' . get_option('time_format'),
947
+											($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
948
+										)
949
+									); ?>
950 950
                                 </td>
951 951
                                 <td class="jst-left"><?php
952
-                                    echo isset($delivered_message['message_type'])
953
-                                        ? esc_html($delivered_message['message_type'])
954
-                                        : ''; ?>
952
+									echo isset($delivered_message['message_type'])
953
+										? esc_html($delivered_message['message_type'])
954
+										: ''; ?>
955 955
                                 </td>
956 956
                                 <td class="jst-left"><?php
957
-                                    echo isset($delivered_message['pay_status'])
958
-                                        ? esc_html($delivered_message['pay_status'])
959
-                                        : ''; ?>
957
+									echo isset($delivered_message['pay_status'])
958
+										? esc_html($delivered_message['pay_status'])
959
+										: ''; ?>
960 960
                                 </td>
961 961
                                 <td class="jst-left"><?php
962
-                                    echo isset($delivered_message['txn_status'])
963
-                                        ? esc_html($delivered_message['txn_status'])
964
-                                        : ''; ?>
962
+									echo isset($delivered_message['txn_status'])
963
+										? esc_html($delivered_message['txn_status'])
964
+										: ''; ?>
965 965
                                 </td>
966 966
                             </tr>
967 967
                         <?php endforeach; // $delivered_messages?>
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
                 </table>
970 970
             </div>
971 971
             <?php
972
-        }
973
-    }
974
-    ?>
972
+		}
973
+	}
974
+	?>
975 975
 </div>
Please login to merge, or discard this patch.
registrations/templates/attendee_registrations_main_meta_box.template.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -26,67 +26,67 @@
 block discarded – undo
26 26
                     <tr>
27 27
                         <td class="jst-left">
28 28
                             <?php
29
-                            $EVT_ID = absint($registration->event_ID());
30
-                            $event_url = add_query_arg(
31
-                                ['action' => 'edit', 'post' => $EVT_ID],
32
-                                admin_url('admin.php?page=espresso_events')
33
-                            );
34
-                            echo EE_Registry::instance()->CAP->current_user_can(
35
-                                'ee_edit_event',
36
-                                'espresso_events_edit',
37
-                                $EVT_ID
38
-                            )
39
-                                ? '<a href="' . esc_url_raw($event_url) . '"  aria-label="'
40
-                                  . esc_attr__('Edit Event', 'event_espresso') . '">'
41
-                                  . esc_html($registration->event_name()) . '</a>'
42
-                                : esc_html($registration->event_name());
43
-                            ?>
29
+							$EVT_ID = absint($registration->event_ID());
30
+							$event_url = add_query_arg(
31
+								['action' => 'edit', 'post' => $EVT_ID],
32
+								admin_url('admin.php?page=espresso_events')
33
+							);
34
+							echo EE_Registry::instance()->CAP->current_user_can(
35
+								'ee_edit_event',
36
+								'espresso_events_edit',
37
+								$EVT_ID
38
+							)
39
+								? '<a href="' . esc_url_raw($event_url) . '"  aria-label="'
40
+								  . esc_attr__('Edit Event', 'event_espresso') . '">'
41
+								  . esc_html($registration->event_name()) . '</a>'
42
+								: esc_html($registration->event_name());
43
+							?>
44 44
                         </td>
45 45
                         <td class="jst-left">
46 46
                             <?php
47
-                            $REG_ID = absint($registration->ID());
48
-                            $reg_url = EE_Admin_Page::add_query_args_and_nonce(
49
-                                ['action' => 'view_registration', '_REG_ID' => $REG_ID],
50
-                                REG_ADMIN_URL
51
-                            );
52
-                            echo EE_Registry::instance()->CAP->current_user_can(
53
-                                'ee_read_registration',
54
-                                'espresso_registrations_view_registration',
55
-                                $REG_ID
56
-                            )
57
-                                ? '<a href="' . esc_url_raw($reg_url) . '" aria-label="'
58
-                                  . esc_attr__('View Registration Details', 'event_espresso') . '">'
59
-                                  . esc_html__('View Registration', 'event_espresso') . '</a>'
60
-                                : $REG_ID;
61
-                            ?>
47
+							$REG_ID = absint($registration->ID());
48
+							$reg_url = EE_Admin_Page::add_query_args_and_nonce(
49
+								['action' => 'view_registration', '_REG_ID' => $REG_ID],
50
+								REG_ADMIN_URL
51
+							);
52
+							echo EE_Registry::instance()->CAP->current_user_can(
53
+								'ee_read_registration',
54
+								'espresso_registrations_view_registration',
55
+								$REG_ID
56
+							)
57
+								? '<a href="' . esc_url_raw($reg_url) . '" aria-label="'
58
+								  . esc_attr__('View Registration Details', 'event_espresso') . '">'
59
+								  . esc_html__('View Registration', 'event_espresso') . '</a>'
60
+								: $REG_ID;
61
+							?>
62 62
                         </td>
63 63
                         <td class="jst-left">
64 64
                             <?php
65
-                            $TXN_ID = absint($registration->transaction_ID());
66
-                            $txn_url = EE_Admin_Page::add_query_args_and_nonce(
67
-                                ['action' => 'view_transaction', 'TXN_ID' => $TXN_ID],
68
-                                TXN_ADMIN_URL
69
-                            );
70
-                            echo EE_Registry::instance()->CAP->current_user_can(
71
-                                'ee_read_transaction',
72
-                                'espresso_transactions_view_transaction'
73
-                            )
74
-                                ? '<a href="' . esc_url_raw($txn_url) . '" aria-label="'
75
-                                  . esc_attr__('View Transaction Details', 'event_espresso') . '">'
76
-                                  . sprintf(
77
-                                      esc_html__('View Transaction %d', 'event_espresso'),
78
-                                      $TXN_ID
79
-                                  ) .
80
-                                  '</a>'
81
-                                : $TXN_ID;
82
-                            ?>
65
+							$TXN_ID = absint($registration->transaction_ID());
66
+							$txn_url = EE_Admin_Page::add_query_args_and_nonce(
67
+								['action' => 'view_transaction', 'TXN_ID' => $TXN_ID],
68
+								TXN_ADMIN_URL
69
+							);
70
+							echo EE_Registry::instance()->CAP->current_user_can(
71
+								'ee_read_transaction',
72
+								'espresso_transactions_view_transaction'
73
+							)
74
+								? '<a href="' . esc_url_raw($txn_url) . '" aria-label="'
75
+								  . esc_attr__('View Transaction Details', 'event_espresso') . '">'
76
+								  . sprintf(
77
+									  esc_html__('View Transaction %d', 'event_espresso'),
78
+									  $TXN_ID
79
+								  ) .
80
+								  '</a>'
81
+								: $TXN_ID;
82
+							?>
83 83
                         </td>
84 84
                         <td class="jst-left"><?php echo esc_html($registration->reg_code()); ?></td>
85 85
                         <td class="jst-rght">
86 86
                             <?php echo wp_kses(
87
-                                EEH_Template::format_currency($registration->final_price()),
88
-                                AllowedTags::getAllowedTags()
89
-                            ); ?>
87
+								EEH_Template::format_currency($registration->final_price()),
88
+								AllowedTags::getAllowedTags()
89
+							); ?>
90 90
                         </td>
91 91
                     </tr>
92 92
                 <?php endforeach; ?>
Please login to merge, or discard this patch.
ticket_selector_caff/templates/ticket_selector_price_details.template.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -10,39 +10,39 @@  discard block
 block discarded – undo
10 10
 if ($display_ticket_price) { ?>
11 11
     <section class="tckt-slctr-tkt-price-sctn">
12 12
         <h5><?php
13
-            echo apply_filters(
14
-                'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading',
15
-                esc_html__('Price', 'event_espresso')
16
-            ); ?></h5>
13
+			echo apply_filters(
14
+				'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading',
15
+				esc_html__('Price', 'event_espresso')
16
+			); ?></h5>
17 17
         <div class="tckt-slctr-tkt-details-tbl-wrap-dv">
18 18
             <table class="tckt-slctr-tkt-details-tbl">
19 19
                 <thead>
20 20
                 <tr>
21 21
                     <th class="ee-third-width"><span class="small-text">
22 22
                             <?php
23
-                            esc_html_e(
24
-                                'Name',
25
-                                'event_espresso'
26
-                            ); ?></span>
23
+							esc_html_e(
24
+								'Name',
25
+								'event_espresso'
26
+							); ?></span>
27 27
                     </th>
28 28
                     <th class="jst-cntr"><span class="small-text">
29 29
                             <?php
30
-                            esc_html_e(
31
-                                'Description',
32
-                                'event_espresso'
33
-                            ); ?></span>
30
+							esc_html_e(
31
+								'Description',
32
+								'event_espresso'
33
+							); ?></span>
34 34
                     </th>
35 35
                     <th class="ee-fourth-width jst-rght"><span class="small-text">
36 36
                             <?php
37
-                            esc_html_e(
38
-                                'Amount',
39
-                                'event_espresso'
40
-                            ); ?></span></th>
37
+							esc_html_e(
38
+								'Amount',
39
+								'event_espresso'
40
+							); ?></span></th>
41 41
                 </tr>
42 42
                 </thead>
43 43
                 <tbody>
44 44
                 <?php
45
-                if ($ticket->base_price() instanceof EE_Price) { ?>
45
+				if ($ticket->base_price() instanceof EE_Price) { ?>
46 46
                     <tr>
47 47
                         <td data-th="<?php esc_html_e('Name', 'event_espresso'); ?>" class="small-text" colspan="2">
48 48
                             <b><?php echo wp_kses($ticket->base_price()->name(), AllowedTags::getAllowedTags()); ?></b></td>
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
                             class="jst-rght small-text"><?php echo wp_kses($ticket->base_price()->pretty_price(), AllowedTags::getAllowedTags()); ?></td>
51 51
                     </tr>
52 52
                     <?php
53
-                    $running_total = $ticket->base_price()->amount();
54
-                } else {
55
-                    $running_total = 0;
56
-                }
57
-                // now add price modifiers
58
-                foreach ($ticket->price_modifiers() as $price_mod) { ?>
53
+					$running_total = $ticket->base_price()->amount();
54
+				} else {
55
+					$running_total = 0;
56
+				}
57
+				// now add price modifiers
58
+				foreach ($ticket->price_modifiers() as $price_mod) { ?>
59 59
                     <tr>
60 60
                         <td data-th="<?php esc_html_e('Name', 'event_espresso'); ?>"
61 61
                             class="jst-rght small-text"><?php echo wp_kses($price_mod->name(), AllowedTags::getAllowedTags()); ?></td>
@@ -65,26 +65,26 @@  discard block
 block discarded – undo
65 65
                                 %
66 66
                             </td>
67 67
                             <?php
68
-                            $new_sub_total = $running_total * ($price_mod->amount() / 100);
69
-                            $new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total;
70
-                            ?>
68
+							$new_sub_total = $running_total * ($price_mod->amount() / 100);
69
+							$new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total;
70
+							?>
71 71
                         <?php } else { ?>
72 72
                             <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1
73
-                                : $price_mod->amount(); ?>
73
+								: $price_mod->amount(); ?>
74 74
                             <td data-th="<?php esc_html_e('Description', 'event_espresso'); ?>"
75 75
                                 class="small-text"><?php echo wp_kses($price_mod->desc(), AllowedTags::getAllowedTags()); ?></td>
76 76
                             <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1
77
-                                : $price_mod->amount(); ?>
77
+								: $price_mod->amount(); ?>
78 78
                         <?php } ?>
79 79
                         <td data-th="<?php esc_html_e('Amount', 'event_espresso'); ?>"
80 80
                             class="jst-rght small-text">
81 81
                             <?php
82
-                            echo wp_kses(
83
-                                EEH_Template::format_currency(
84
-                                    $new_sub_total
85
-                                ),
86
-                                AllowedTags::getAllowedTags()
87
-                            ); ?></td>
82
+							echo wp_kses(
83
+								EEH_Template::format_currency(
84
+									$new_sub_total
85
+								),
86
+								AllowedTags::getAllowedTags()
87
+							); ?></td>
88 88
                         <?php $running_total += $new_sub_total; ?>
89 89
                     </tr>
90 90
                 <?php } ?>
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
                     <tr>
94 94
                         <td colspan="2" class="jst-rght small-text sbttl"><b>
95 95
                                 <?php
96
-                                esc_html_e(
97
-                                    'subtotal',
98
-                                    'event_espresso'
99
-                                ); ?></b></td>
96
+								esc_html_e(
97
+									'subtotal',
98
+									'event_espresso'
99
+								); ?></b></td>
100 100
                         <td data-th="<?php esc_html_e('subtotal', 'event_espresso'); ?>" class="jst-rght small-text">
101 101
                             <b><?php echo wp_kses(EEH_Template::format_currency($running_total), AllowedTags::getAllowedTags()); ?></b></td>
102 102
                     </tr>
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
                             <td data-th="<?php esc_html_e('Amount', 'event_espresso'); ?>"
113 113
                                 class="jst-rght small-text">
114 114
                                 <?php
115
-                                echo wp_kses(
116
-                                    EEH_Template::format_currency(
117
-                                        $tax_amount
118
-                                    ),
119
-                                    AllowedTags::getAllowedTags()
120
-                                ); ?></td>
115
+								echo wp_kses(
116
+									EEH_Template::format_currency(
117
+										$tax_amount
118
+									),
119
+									AllowedTags::getAllowedTags()
120
+								); ?></td>
121 121
                             <?php $running_total += $tax_amount; ?>
122 122
                         </tr>
123 123
                     <?php } ?>
@@ -125,15 +125,15 @@  discard block
 block discarded – undo
125 125
                 <tr>
126 126
                     <td colspan="2" class="jst-rght small-text ttl-lbl-td">
127 127
                         <b><?php
128
-                            echo apply_filters(
129
-                                'FHEE__ticket_selector_chart_template__ticket_details_total_price',
130
-                                esc_html__('Total', 'event_espresso')
131
-                            ); ?></b></td>
128
+							echo apply_filters(
129
+								'FHEE__ticket_selector_chart_template__ticket_details_total_price',
130
+								esc_html__('Total', 'event_espresso')
131
+							); ?></b></td>
132 132
                     <td data-th="<?php
133
-                                    echo apply_filters(
134
-                                        'FHEE__ticket_selector_chart_template__ticket_details_total_price',
135
-                                        esc_html__('Total', 'event_espresso')
136
-                                    ); ?>" class="jst-rght small-text">
133
+									echo apply_filters(
134
+										'FHEE__ticket_selector_chart_template__ticket_details_total_price',
135
+										esc_html__('Total', 'event_espresso')
136
+									); ?>" class="jst-rght small-text">
137 137
                         <b><?php echo wp_kses(EEH_Template::format_currency($running_total), AllowedTags::getAllowedTags()); ?></b></td>
138 138
                 </tr>
139 139
                 </tbody>
Please login to merge, or discard this patch.
templates/thank-you-page-transaction-details.template.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
                     <label><?php esc_html_e('Amount Owing: ', 'event_espresso'); ?></label>
31 31
                 </td>
32 32
                 <td class="<?php
33
-                echo ($transaction->paid() == $transaction->total())
34
-                    ? 'ee-transaction-paid'
35
-                    : 'ee-transaction-unpaid'
36
-                ?>"
33
+				echo ($transaction->paid() == $transaction->total())
34
+					? 'ee-transaction-paid'
35
+					: 'ee-transaction-unpaid'
36
+				?>"
37 37
                 >
38 38
                     <?php echo wp_kses(EEH_Template::format_currency($transaction->remaining()), AllowedTags::getAllowedTags()); ?>
39 39
                 </td>
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 </td>
45 45
                 <td>
46 46
                     <?php $transaction->e_pretty_status(true);
47
-                    if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
47
+					if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
48 48
                         <span class="small-text">
49 49
                         <a href='<?php echo esc_url_raw($SPCO_payment_options_url); ?>'>
50 50
                             <?php esc_html_e('View Payment Options', 'event_espresso'); ?>
@@ -62,16 +62,16 @@  discard block
 block discarded – undo
62 62
                 </td>
63 63
             </tr>
64 64
             <?php do_action(
65
-                'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row',
66
-                $transaction
67
-            ); ?>
65
+				'AHEE__thank_you_page_transaction_details_template__after_transaction_table_row',
66
+				$transaction
67
+			); ?>
68 68
         </tbody>
69 69
     </table>
70 70
 
71 71
     <?php if ($show_try_pay_again_link && ! $transaction->is_completed()) { ?>
72 72
         <p class="small-text jst-rght">
73 73
             <a href='<?php echo esc_url_raw($SPCO_payment_options_url); ?>'><?php
74
-                esc_html_e("Click here to view Payment Options", 'event_espresso'); ?></a>
74
+				esc_html_e("Click here to view Payment Options", 'event_espresso'); ?></a>
75 75
         </p>
76 76
         <br />
77 77
 
Please login to merge, or discard this patch.