@@ -168,7 +168,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -79,8 +79,11 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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; ?>> |
@@ -58,7 +58,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 --> |
@@ -61,9 +61,12 @@ discard block |
||
| 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 |
||
| 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); ?>" |
@@ -14,7 +14,7 @@ |
||
| 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> |
@@ -38,103 +38,103 @@ |
||
| 38 | 38 | * @since 4.0 |
| 39 | 39 | */ |
| 40 | 40 | if (function_exists('espresso_version')) { |
| 41 | - if (! function_exists('espresso_duplicate_plugin_error')) { |
|
| 42 | - /** |
|
| 43 | - * espresso_duplicate_plugin_error |
|
| 44 | - * displays if more than one version of EE is activated at the same time |
|
| 45 | - */ |
|
| 46 | - function espresso_duplicate_plugin_error() |
|
| 47 | - { |
|
| 48 | - ?> |
|
| 41 | + if (! function_exists('espresso_duplicate_plugin_error')) { |
|
| 42 | + /** |
|
| 43 | + * espresso_duplicate_plugin_error |
|
| 44 | + * displays if more than one version of EE is activated at the same time |
|
| 45 | + */ |
|
| 46 | + function espresso_duplicate_plugin_error() |
|
| 47 | + { |
|
| 48 | + ?> |
|
| 49 | 49 | <div class="error"> |
| 50 | 50 | <p> |
| 51 | 51 | <?php |
| 52 | - echo esc_html__( |
|
| 53 | - 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
| 54 | - 'event_espresso' |
|
| 55 | - ); ?> |
|
| 52 | + echo esc_html__( |
|
| 53 | + 'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.', |
|
| 54 | + 'event_espresso' |
|
| 55 | + ); ?> |
|
| 56 | 56 | </p> |
| 57 | 57 | </div> |
| 58 | 58 | <?php |
| 59 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 60 | - } |
|
| 61 | - } |
|
| 62 | - add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
| 59 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 60 | + } |
|
| 61 | + } |
|
| 62 | + add_action('admin_notices', 'espresso_duplicate_plugin_error', 1); |
|
| 63 | 63 | } else { |
| 64 | - define('EE_MIN_PHP_VER_REQUIRED', '5.6.2'); |
|
| 65 | - if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
| 66 | - /** |
|
| 67 | - * espresso_minimum_php_version_error |
|
| 68 | - * |
|
| 69 | - * @return void |
|
| 70 | - */ |
|
| 71 | - function espresso_minimum_php_version_error() |
|
| 72 | - { |
|
| 73 | - ?> |
|
| 64 | + define('EE_MIN_PHP_VER_REQUIRED', '5.6.2'); |
|
| 65 | + if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) { |
|
| 66 | + /** |
|
| 67 | + * espresso_minimum_php_version_error |
|
| 68 | + * |
|
| 69 | + * @return void |
|
| 70 | + */ |
|
| 71 | + function espresso_minimum_php_version_error() |
|
| 72 | + { |
|
| 73 | + ?> |
|
| 74 | 74 | <div class="error"> |
| 75 | 75 | <p> |
| 76 | 76 | <?php |
| 77 | - printf( |
|
| 78 | - esc_html__( |
|
| 79 | - 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
| 80 | - 'event_espresso' |
|
| 81 | - ), |
|
| 82 | - EE_MIN_PHP_VER_REQUIRED, |
|
| 83 | - PHP_VERSION, |
|
| 84 | - '<br/>', |
|
| 85 | - '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
| 86 | - ); |
|
| 87 | - ?> |
|
| 77 | + printf( |
|
| 78 | + esc_html__( |
|
| 79 | + 'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.', |
|
| 80 | + 'event_espresso' |
|
| 81 | + ), |
|
| 82 | + EE_MIN_PHP_VER_REQUIRED, |
|
| 83 | + PHP_VERSION, |
|
| 84 | + '<br/>', |
|
| 85 | + '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>' |
|
| 86 | + ); |
|
| 87 | + ?> |
|
| 88 | 88 | </p> |
| 89 | 89 | </div> |
| 90 | 90 | <?php |
| 91 | - espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 92 | - } |
|
| 91 | + espresso_deactivate_plugin(plugin_basename(__FILE__)); |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | - add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
| 95 | - } else { |
|
| 96 | - define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
| 97 | - /** |
|
| 98 | - * espresso_version |
|
| 99 | - * Returns the plugin version |
|
| 100 | - * |
|
| 101 | - * @return string |
|
| 102 | - */ |
|
| 103 | - function espresso_version() |
|
| 104 | - { |
|
| 105 | - return apply_filters('FHEE__espresso__espresso_version', '4.10.30.rc.004'); |
|
| 106 | - } |
|
| 94 | + add_action('admin_notices', 'espresso_minimum_php_version_error', 1); |
|
| 95 | + } else { |
|
| 96 | + define('EVENT_ESPRESSO_MAIN_FILE', __FILE__); |
|
| 97 | + /** |
|
| 98 | + * espresso_version |
|
| 99 | + * Returns the plugin version |
|
| 100 | + * |
|
| 101 | + * @return string |
|
| 102 | + */ |
|
| 103 | + function espresso_version() |
|
| 104 | + { |
|
| 105 | + return apply_filters('FHEE__espresso__espresso_version', '4.10.30.rc.004'); |
|
| 106 | + } |
|
| 107 | 107 | |
| 108 | - /** |
|
| 109 | - * espresso_plugin_activation |
|
| 110 | - * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
| 111 | - */ |
|
| 112 | - function espresso_plugin_activation() |
|
| 113 | - { |
|
| 114 | - update_option('ee_espresso_activation', true); |
|
| 115 | - } |
|
| 108 | + /** |
|
| 109 | + * espresso_plugin_activation |
|
| 110 | + * adds a wp-option to indicate that EE has been activated via the WP admin plugins page |
|
| 111 | + */ |
|
| 112 | + function espresso_plugin_activation() |
|
| 113 | + { |
|
| 114 | + update_option('ee_espresso_activation', true); |
|
| 115 | + } |
|
| 116 | 116 | |
| 117 | - register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
| 117 | + register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation'); |
|
| 118 | 118 | |
| 119 | - require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
| 120 | - bootstrap_espresso(); |
|
| 121 | - } |
|
| 119 | + require_once __DIR__ . '/core/bootstrap_espresso.php'; |
|
| 120 | + bootstrap_espresso(); |
|
| 121 | + } |
|
| 122 | 122 | } |
| 123 | 123 | if (! function_exists('espresso_deactivate_plugin')) { |
| 124 | - /** |
|
| 125 | - * deactivate_plugin |
|
| 126 | - * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
| 127 | - * |
|
| 128 | - * @access public |
|
| 129 | - * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
| 130 | - * @return void |
|
| 131 | - */ |
|
| 132 | - function espresso_deactivate_plugin($plugin_basename = '') |
|
| 133 | - { |
|
| 134 | - if (! function_exists('deactivate_plugins')) { |
|
| 135 | - require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
| 136 | - } |
|
| 137 | - unset($_GET['activate'], $_REQUEST['activate']); |
|
| 138 | - deactivate_plugins($plugin_basename); |
|
| 139 | - } |
|
| 124 | + /** |
|
| 125 | + * deactivate_plugin |
|
| 126 | + * usage: espresso_deactivate_plugin( plugin_basename( __FILE__ )); |
|
| 127 | + * |
|
| 128 | + * @access public |
|
| 129 | + * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file |
|
| 130 | + * @return void |
|
| 131 | + */ |
|
| 132 | + function espresso_deactivate_plugin($plugin_basename = '') |
|
| 133 | + { |
|
| 134 | + if (! function_exists('deactivate_plugins')) { |
|
| 135 | + require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
|
| 136 | + } |
|
| 137 | + unset($_GET['activate'], $_REQUEST['activate']); |
|
| 138 | + deactivate_plugins($plugin_basename); |
|
| 139 | + } |
|
| 140 | 140 | } |