Completed
Branch fix/kses-1 (d0a1f9)
by
unknown
17:14 queued 14:41
created
admin/new/pricing/templates/event_tickets_datetime_ticket_row.template.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
             <!--<div class="total-price-container"><?php printf(
170 170
                 esc_html__('Total Final Price: %s', 'event_espresso'),
171
-                '<span class="ticket-price-amount">' . $TKT_price . '</span>'
171
+                '<span class="ticket-price-amount">'.$TKT_price.'</span>'
172 172
             ); ?> </div>-->
173 173
             <textarea name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_description]"
174 174
                       class="edit-ticket-TKT_description ee-full-textarea-inp"
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
                         ); ?></label>
268 268
                 </div>
269 269
                 <div class="ticket-is-taxable-container">
270
-                    <?php if (! empty($tax_rows)) { ?>
270
+                    <?php if ( ! empty($tax_rows)) { ?>
271 271
                         <?php if ($disabled) : ?>
272 272
                             <?php
273 273
                             $tax_value = ! empty($TKT_taxable) ? 1 : 0;
Please login to merge, or discard this patch.
Braces   +40 added lines, -16 removed lines patch added patch discarded remove patch
@@ -79,8 +79,11 @@  discard block
 block discarded – undo
79 79
                    class="edit-ticket-TKT_start_date ee-text-inp" value="<?php echo esc_attr($TKT_start_date); ?>">
80 80
             <input type="text" name="archived_ticket[TKT_start_date]" class="edit-ticket-TKT_start_date ee-text-inp"
81 81
                    value="<?php echo esc_attr($TKT_start_date); ?>" disabled>
82
-        <?php else : ?>
83
-            <input id="edit-ticket-TKT_start_date-<?php echo esc_attr($tkt_row); ?>" type="text"
82
+        <?php else {
83
+	: ?>
84
+            <input id="edit-ticket-TKT_start_date-<?php echo esc_attr($tkt_row);
85
+}
86
+?>" type="text"
84 87
                    name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_start_date]"
85 88
                    class="edit-ticket-TKT_start_date ee-text-inp ee-datepicker" value="<?php echo esc_attr($TKT_start_date); ?>"
86 89
                    data-context="start-ticket" data-date-field-context="#display-ticketrow-<?php echo esc_attr($tkt_row); ?>"
@@ -94,8 +97,11 @@  discard block
 block discarded – undo
94 97
                    class="edit-ticket-TKT_end_date ee-text-inp" value="<?php echo esc_attr($TKT_end_date); ?>">
95 98
             <input type="text" name="archived_ticket[TKT_end_date]" class="edit-ticket-TKT_end_date ee-text-inp"
96 99
                    value="<?php echo esc_attr($TKT_end_date); ?>" disabled>
97
-        <?php else : ?>
98
-            <input id="edit-ticket-TKT_end_date-<?php echo esc_attr($tkt_row); ?>" type="text"
100
+        <?php else {
101
+	: ?>
102
+            <input id="edit-ticket-TKT_end_date-<?php echo esc_attr($tkt_row);
103
+}
104
+?>" type="text"
99 105
                    name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_end_date]"
100 106
                    class="edit-ticket-TKT_end_date ee-text-inp ee-datepicker" value="<?php echo esc_attr($TKT_end_date); ?>"
101 107
                    data-context="end-ticket" data-date-field-context="#display-ticketrow-<?php echo esc_attr($tkt_row); ?>"
@@ -111,8 +117,11 @@  discard block
 block discarded – undo
111 117
             <input type="text" name="archived_ticket[<?php echo esc_attr($tkt_row); ?>][TKT_base_price]"
112 118
                    class="edit-ticket-TKT_base_price ee-small-text-inp edit-price-PRC_amount ee-numeric"
113 119
                    value="<?php echo esc_attr($TKT_base_price); ?>" disabled>
114
-        <?php else : ?>
115
-            <input id="edit-ticket-TKT_base_price-<?php echo esc_attr($tkt_row); ?>" type="text"
120
+        <?php else {
121
+	: ?>
122
+            <input id="edit-ticket-TKT_base_price-<?php echo esc_attr($tkt_row);
123
+}
124
+?>" type="text"
116 125
                    name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_base_price]"
117 126
                    class="edit-ticket-TKT_base_price ee-small-text-inp edit-price-PRC_amount ee-numeric"
118 127
                    value="<?php echo esc_attr($TKT_base_price); ?>">
@@ -129,8 +138,11 @@  discard block
 block discarded – undo
129 138
             <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-numeric"
130 139
                    name="archived_ticket[<?php echo esc_attr($tkt_row); ?>][TKT_qty]" value="<?php echo esc_attr($TKT_qty_for_input); ?>"
131 140
                    disabled>
132
-        <?php else : ?>
133
-            <input type="text" id="edit-ticket-TKT_qty-<?php echo esc_attr($tkt_row); ?>"
141
+        <?php else {
142
+	: ?>
143
+            <input type="text" id="edit-ticket-TKT_qty-<?php echo esc_attr($tkt_row);
144
+}
145
+?>"
134 146
                    class="edit-ticket-TKT_qty ee-small-text-inp ee-numeric"
135 147
                    name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_qty]"
136 148
                    value="<?php echo esc_attr($TKT_qty_for_input); ?>">
@@ -209,9 +221,12 @@  discard block
 block discarded – undo
209 221
                                 <input type="text" class="edit-ticket-TKT_uses ee-small-text-inp ee-numeric"
210 222
                                        name="archived_ticket[<?php echo esc_attr($tkt_row); ?>][TKT_uses]"
211 223
                                        value="<?php echo esc_attr($TKT_uses); ?>" disabled>
212
-                            <?php else : ?>
224
+                            <?php else {
225
+	: ?>
213 226
                                 <input type="text" class="edit-ticket-TKT_uses ee-small-text-inp ee-numeric"
214
-                                       name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_uses]"
227
+                                       name="<?php echo esc_attr($edit_tickets_name);
228
+}
229
+?>[<?php echo esc_attr($tkt_row); ?>][TKT_uses]"
215 230
                                        value="<?php echo esc_attr($TKT_uses); ?>">
216 231
                             <?php endif; ?>
217 232
                         </td>
@@ -223,9 +238,12 @@  discard block
 block discarded – undo
223 238
                                 <input type="text" class="edit-ticket-TKT_min ee-small-text-inp ee-numeric"
224 239
                                        name="archived_ticket[<?php echo esc_attr($tkt_row); ?>][TKT_min]"
225 240
                                        value="<?php echo esc_attr($TKT_min); ?>" disabled>
226
-                            <?php else : ?>
241
+                            <?php else {
242
+	: ?>
227 243
                                 <input type="text" class="edit-ticket-TKT_min ee-small-text-inp ee-numeric"
228
-                                       name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_min]"
244
+                                       name="<?php echo esc_attr($edit_tickets_name);
245
+}
246
+?>[<?php echo esc_attr($tkt_row); ?>][TKT_min]"
229 247
                                        value="<?php echo esc_attr($TKT_min); ?>">
230 248
                             <?php endif; ?>
231 249
                         </td>
@@ -237,9 +255,12 @@  discard block
 block discarded – undo
237 255
                                 <input type="text" class="edit-ticket-TKT_max ee-small-text-inp ee-numeric"
238 256
                                        name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_max]"
239 257
                                        value="<?php echo esc_attr($TKT_max); ?>" disabled>
240
-                            <?php else : ?>
258
+                            <?php else {
259
+	: ?>
241 260
                                 <input type="text" class="edit-ticket-TKT_max ee-small-text-inp ee-numeric"
242
-                                       name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_max]"
261
+                                       name="<?php echo esc_attr($edit_tickets_name);
262
+}
263
+?>[<?php echo esc_attr($tkt_row); ?>][TKT_max]"
243 264
                                        value="<?php echo esc_attr($TKT_max); ?>">
244 265
                             <?php endif; ?>
245 266
                         </td>
@@ -278,8 +299,11 @@  discard block
 block discarded – undo
278 299
                         <input class="TKT-taxable-checkbox" id="edit-ticket-TKT_taxable-<?php echo esc_attr($tkt_row); ?>"
279 300
                                type="checkbox" name="archived_ticket[<?php echo esc_attr($tkt_row); ?>][TKT_taxable]"
280 301
                                value="1"<?php echo $TKT_taxable; ?> disabled>
281
-                        <?php else : ?>
282
-                        <input class="TKT-taxable-checkbox" id="edit-ticket-TKT_taxable-<?php echo esc_attr($tkt_row); ?>"
302
+                        <?php else {
303
+	: ?>
304
+                        <input class="TKT-taxable-checkbox" id="edit-ticket-TKT_taxable-<?php echo esc_attr($tkt_row);
305
+}
306
+?>"
283 307
                                type="checkbox"
284 308
                                name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_taxable]"
285 309
                                value="1"<?php echo $TKT_taxable; ?>>
Please login to merge, or discard this patch.
Indentation   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 ?>
59 59
 <tr valign="top" class="ee-ticket-sortable ticket-row <?php echo sanitize_html_class($ticket_archive_class);
60 60
 if (WP_DEBUG) {
61
-    echo ' ee-wp-debug';
61
+	echo ' ee-wp-debug';
62 62
 } ?>" id="display-ticketrow-<?php echo esc_attr($tkt_row); ?>">
63 63
     <!--<td class="ee-tkt-order-field"><span class="dashicons dashicons-sort <?php echo sanitize_html_class($tkt_status_class); ?>">
64 64
     <input type="hidden" name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_order]" class="edit-ticket-TKT_order" value ="<?php echo absint($TKT_order); ?>" ></span></td>-->
@@ -167,9 +167,9 @@  discard block
 block discarded – undo
167 167
                    class="edit-ticket-TKT_row" value="<?php echo esc_attr($tkt_row); ?>">
168 168
 
169 169
             <!--<div class="total-price-container"><?php printf(
170
-                esc_html__('Total Final Price: %s', 'event_espresso'),
171
-                '<span class="ticket-price-amount">' . $TKT_price . '</span>'
172
-            ); ?> </div>-->
170
+				esc_html__('Total Final Price: %s', 'event_espresso'),
171
+				'<span class="ticket-price-amount">' . $TKT_price . '</span>'
172
+			); ?> </div>-->
173 173
             <textarea name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_description]"
174 174
                       class="edit-ticket-TKT_description ee-full-textarea-inp"
175 175
                       placeholder="Ticket Description"><?php echo esc_textarea($TKT_description); ?></textarea>
@@ -183,20 +183,20 @@  discard block
 block discarded – undo
183 183
                     <thead>
184 184
                     <tr valign="bottom">
185 185
                         <td><span class="TD_TKT_number_datetimes_label"><?php
186
-                                esc_html_e(
187
-                                    '# Datetimes',
188
-                                    'event_espresso'
189
-                                ); ?></span></td>
186
+								esc_html_e(
187
+									'# Datetimes',
188
+									'event_espresso'
189
+								); ?></span></td>
190 190
                         <td><span class="TD_TKT_min_qty_label"><?php
191
-                                esc_html_e(
192
-                                    'Minimum Quantity',
193
-                                    'event_espresso'
194
-                                ); ?></span></td>
191
+								esc_html_e(
192
+									'Minimum Quantity',
193
+									'event_espresso'
194
+								); ?></span></td>
195 195
                         <td><span class="TD_TKT_max_qty_label"><?php
196
-                                esc_html_e(
197
-                                    'Maximum Quantity',
198
-                                    'event_espresso'
199
-                                ); ?></span></td>
196
+								esc_html_e(
197
+									'Maximum Quantity',
198
+									'event_espresso'
199
+								); ?></span></td>
200 200
                     </tr>
201 201
                     </thead>
202 202
                     <tbody>
@@ -254,24 +254,24 @@  discard block
 block discarded – undo
254 254
                     <input type="checkbox"
255 255
                            name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_required]"
256 256
                            class="edit-ticket-TKT_required" value="1"<?php
257
-                            echo $TKT_required
258
-                                ? ' checked="checked"'
259
-                                : '';
260
-                            echo $disabled
261
-                                ? ' disabled'
262
-                                : ''; ?>>
257
+							echo $TKT_required
258
+								? ' checked="checked"'
259
+								: '';
260
+							echo $disabled
261
+								? ' disabled'
262
+								: ''; ?>>
263 263
                     <label for="edit-ticket-TKT_required"><?php
264
-                        esc_html_e(
265
-                            'This ticket is required (will appear first in frontend ticket lists).',
266
-                            'event_espresso'
267
-                        ); ?></label>
264
+						esc_html_e(
265
+							'This ticket is required (will appear first in frontend ticket lists).',
266
+							'event_espresso'
267
+						); ?></label>
268 268
                 </div>
269 269
                 <div class="ticket-is-taxable-container">
270 270
                     <?php if (! empty($tax_rows)) { ?>
271 271
                         <?php if ($disabled) : ?>
272 272
                             <?php
273
-                            $tax_value = ! empty($TKT_taxable) ? 1 : 0;
274
-                            ?>
273
+							$tax_value = ! empty($TKT_taxable) ? 1 : 0;
274
+							?>
275 275
                         <input class="TKT-taxable-checkbox" type="hidden"
276 276
                                name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_taxable]"
277 277
                                value="<?php echo esc_attr($tax_value); ?>">
@@ -285,16 +285,16 @@  discard block
 block discarded – undo
285 285
                                value="1"<?php echo $TKT_taxable; ?>>
286 286
                         <?php endif; ?>
287 287
                     <label for="edit-ticket-TKT_taxable-<?php echo esc_attr($tkt_row); ?>"> <?php
288
-                        esc_html_e('This ticket is taxable.', 'event_espresso'); ?>
288
+						esc_html_e('This ticket is taxable.', 'event_espresso'); ?>
289 289
                     <?php } //end tax_rows check ?>
290 290
                 </div>
291 291
             </div>
292 292
             <div class="price-table-container">
293 293
                 <h4 class="tickets-heading price-table-info"<?php echo $show_price_modifier; ?>><?php
294
-                    esc_html_e(
295
-                        'Price Modifiers',
296
-                        'event_espresso'
297
-                    ); ?></h4>
294
+					esc_html_e(
295
+						'Price Modifiers',
296
+						'event_espresso'
297
+					); ?></h4>
298 298
                 <table class="price-table">
299 299
                     <thead class="price-table-info"<?php echo $show_price_modifier; ?>>
300 300
                     <tr>
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
                     <tr class="price-subtotal-row TKT-taxes-display"<?php echo $display_subtotal; ?>>
315 315
                         <td colspan="4" class="ee-numeric">
316 316
                             <span class="TKT-taxable-subtotal-label"><strong><?php
317
-                                    esc_html_e(
318
-                                        'Subtotal',
319
-                                        'event_espresso'
320
-                                    ); ?></strong></span>
317
+									esc_html_e(
318
+										'Subtotal',
319
+										'event_espresso'
320
+									); ?></strong></span>
321 321
                         </td>
322 322
                         <td class="ee-numeric">
323 323
                             <span
@@ -350,51 +350,51 @@  discard block
 block discarded – undo
350 350
             <div style="clear:both"></div>
351 351
             <h4 class="tickets-heading"><?php esc_html_e('Event Datetimes', 'event_espresso'); ?></h4>
352 352
             <p><?php
353
-                esc_html_e(
354
-                    'This ticket will be usable (allow entrance) for the following selected event datetimes (click to select).  The "# Datetimes" amount (above) indicates how many of the assigned datetimes the ticket holder can gain access to:',
355
-                    'event_espresso'
356
-                ); ?></p>
353
+				esc_html_e(
354
+					'This ticket will be usable (allow entrance) for the following selected event datetimes (click to select).  The "# Datetimes" amount (above) indicates how many of the assigned datetimes the ticket holder can gain access to:',
355
+					'event_espresso'
356
+				); ?></p>
357 357
             <ul class="datetime-tickets-list">
358 358
                 <?php echo $ticket_datetimes_list; ?>
359 359
             </ul>
360 360
 
361 361
             <?php do_action(
362
-                'AHEE__event_tickets_datetime_ticket_row_template__advanced_details_end',
363
-                $tkt_row,
364
-                $TKT_ID
365
-            ); ?>
362
+				'AHEE__event_tickets_datetime_ticket_row_template__advanced_details_end',
363
+				$tkt_row,
364
+				$TKT_ID
365
+			); ?>
366 366
             <div class="ee-editor-footer-container">
367 367
                 <div class="ee-editor-id-container">
368 368
                     <span class="ee-item-id"><?php echo
369
-                        $TKT_ID
370
-                            ? sprintf(
371
-                                esc_html__('Ticket ID: %d', 'event_espresso'),
372
-                                $TKT_ID
373
-                            )
374
-                                             : ''; ?></span>
369
+						$TKT_ID
370
+							? sprintf(
371
+								esc_html__('Ticket ID: %d', 'event_espresso'),
372
+								$TKT_ID
373
+							)
374
+											 : ''; ?></span>
375 375
                 </div>
376 376
                 <div class="save-cancel-button-container">
377 377
                     <label for="edit-ticket-TKT_is_default_selector"><?php
378
-                        esc_html_e(
379
-                            'use this new ticket as a default ticket for any new events',
380
-                            'event_espresso'
381
-                        ); ?></label>
378
+						esc_html_e(
379
+							'use this new ticket as a default ticket for any new events',
380
+							'event_espresso'
381
+						); ?></label>
382 382
                     <input type="checkbox"
383 383
                            name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_is_default_selector]"
384 384
                            class="edit-ticket-TKT_is_default_selector" value="1"<?php
385
-                            echo $disabled
386
-                                ? ' disabled'
387
-                                : ''; ?>>
385
+							echo $disabled
386
+								? ' disabled'
387
+								: ''; ?>>
388 388
                     <input type="hidden"
389 389
                            name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_is_default]"
390 390
                            class="edit-ticket-TKT_is_default" value="<?php echo esc_attr($TKT_is_default); ?>">
391 391
                     <!--<button class="button-primary ee-save-button" data-context="ticket" data-ticket-row="<?php echo esc_attr($tkt_row); ?>"><?php esc_html_e(
392
-                        'Update Ticket',
393
-                        'event_espresso'
394
-                    ); ?></button>-->
392
+						'Update Ticket',
393
+						'event_espresso'
394
+					); ?></button>-->
395 395
                     <button class="button-secondary ee-cancel-button" data-context="ticket"
396 396
                             data-ticket-row="<?php echo esc_attr($tkt_row); ?>"><?php
397
-                                    esc_html_e('Close', 'event_espresso'); ?></button>
397
+									esc_html_e('Close', 'event_espresso'); ?></button>
398 398
                 </div>
399 399
             </div>
400 400
             <!-- these hidden inputs are for tracking changes in dtts attached to tickets during a js session -->
Please login to merge, or discard this patch.
new/pricing/templates/event_tickets_datetime_ticket_price_row.template.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,9 +61,12 @@  discard block
 block discarded – undo
61 61
             <input type="text" size="1" class="edit-price-PRC_amount ee-numeric"
62 62
                    name="prices_archive[<?php echo esc_attr($tkt_row); ?>][<?php echo absint($PRC_order); ?>][PRC_amount]"
63 63
                    value="<?php echo esc_attr($PRC_amount); ?>" disabled>
64
-        <?php else : ?>
64
+        <?php else {
65
+	: ?>
65 66
             <input type="text" size="1" class="edit-price-PRC_amount ee-numeric"
66
-                   name="<?php echo esc_attr($edit_prices_name); ?>[<?php echo esc_attr($tkt_row); ?>][<?php echo absint($PRC_order); ?>][PRC_amount]"
67
+                   name="<?php echo esc_attr($edit_prices_name);
68
+}
69
+?>[<?php echo esc_attr($tkt_row); ?>][<?php echo absint($PRC_order); ?>][PRC_amount]"
67 70
                    value="<?php echo esc_attr($PRC_amount); ?>">
68 71
         <?php endif; ?>
69 72
     </td>
@@ -74,8 +77,11 @@  discard block
 block discarded – undo
74 77
     <td>
75 78
         <?php if ($disabled) : ?>
76 79
             <span class="ee-lock-icon"></span>
77
-        <?php else : ?>
78
-            <!-- <span class="gear-icon dashicons dashicons-admin-generic clickable" data-ticket-row="<?php echo esc_attr($tkt_row); ?>" data-context="price" data-price-row="<?php echo absint($PRC_order); ?>"></span> -->
80
+        <?php else {
81
+	: ?>
82
+            <!-- <span class="gear-icon dashicons dashicons-admin-generic clickable" data-ticket-row="<?php echo esc_attr($tkt_row);
83
+}
84
+?>" data-context="price" data-price-row="<?php echo absint($PRC_order); ?>"></span> -->
79 85
             <span class="trash-icon dashicons dashicons-post-trash clickable" data-ticket-row="<?php echo esc_attr($tkt_row); ?>"
80 86
                   data-context="price" data-price-row="<?php echo absint($PRC_order); ?>"<?php echo $show_trash_icon; ?>></span>
81 87
             <button data-ticket-row="<?php echo esc_attr($tkt_row); ?>" data-price-row="<?php echo absint($PRC_order); ?>"
Please login to merge, or discard this patch.
new/pricing/templates/event_tickets_datetime_dtt_tickets_list.template.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 <li data-datetime-row="<?php echo absint($dtt_row); ?>" data-context="datetime-ticket" data-ticket-row="<?php echo esc_attr($tkt_row); ?>"
16 16
     class="datetime-ticket clickable<?php echo $ticket_selected;
17
-    echo $tkt_status_class; ?>">
17
+	echo $tkt_status_class; ?>">
18 18
     <input type="checkbox" name="datetime_ticket[<?php echo absint($dtt_row); ?>][<?php echo esc_attr($tkt_row); ?>]"
19 19
            class="datetime-ticket-checkbox" value="1"<?php echo $datetime_ticket_checked; ?>>
20 20
     <span class="ee-icon ee-icon-tickets ticket-list-ticket-name"><?php echo $TKT_name; ?></span>
Please login to merge, or discard this patch.