@@ -17,19 +17,19 @@ discard block |
||
| 17 | 17 | protected static $_event; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * array of datetimes and the spaces available for them |
|
| 21 | - * |
|
| 22 | - * @access private |
|
| 23 | - * @var array |
|
| 24 | - */ |
|
| 20 | + * array of datetimes and the spaces available for them |
|
| 21 | + * |
|
| 22 | + * @access private |
|
| 23 | + * @var array |
|
| 24 | + */ |
|
| 25 | 25 | private static $_available_spaces = array(); |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * max attendees that can register for event at one time |
|
| 29 | - * |
|
| 30 | - * @access private |
|
| 31 | - * @var int |
|
| 32 | - */ |
|
| 28 | + * max attendees that can register for event at one time |
|
| 29 | + * |
|
| 30 | + * @access private |
|
| 31 | + * @var int |
|
| 32 | + */ |
|
| 33 | 33 | private static $_max_atndz = EE_INF; |
| 34 | 34 | |
| 35 | 35 | |
@@ -197,8 +197,8 @@ discard block |
||
| 197 | 197 | return $permalink_string; |
| 198 | 198 | } |
| 199 | 199 | $permalink_string .= '<a id="js-ticket-selector-embed-trigger" class="button button-small" href="#" tabindex="-1">' |
| 200 | - . __( 'Embed', 'event_espresso' ) |
|
| 201 | - . '</a> '; |
|
| 200 | + . __( 'Embed', 'event_espresso' ) |
|
| 201 | + . '</a> '; |
|
| 202 | 202 | $ticket_selector_url = add_query_arg( array( 'ticket_selector' => 'iframe', 'event' => $id ), site_url() ); |
| 203 | 203 | $iframe_string = esc_html( |
| 204 | 204 | '<iframe src="' . $ticket_selector_url . '" width="100%" height="100%"></iframe>' |
@@ -419,7 +419,7 @@ discard block |
||
| 419 | 419 | * @throws \EE_Error |
| 420 | 420 | */ |
| 421 | 421 | public static function display_ticket_selector_submit() { |
| 422 | - $html = ''; |
|
| 422 | + $html = ''; |
|
| 423 | 423 | if ( ! is_admin() ) { |
| 424 | 424 | // standard TS displayed with submit button, ie: "Register Now" |
| 425 | 425 | if ( apply_filters( 'FHEE__EE_Ticket_Selector__display_ticket_selector_submit', false ) ) { |
@@ -439,8 +439,8 @@ discard block |
||
| 439 | 439 | EED_Ticket_Selector::$_event |
| 440 | 440 | ); |
| 441 | 441 | $html .= empty($external_url) ? |
| 442 | - \EED_Ticket_Selector::no_tkt_slctr_end_dv() |
|
| 443 | - : \EED_Ticket_Selector::clear_tkt_slctr(); |
|
| 442 | + \EED_Ticket_Selector::no_tkt_slctr_end_dv() |
|
| 443 | + : \EED_Ticket_Selector::clear_tkt_slctr(); |
|
| 444 | 444 | $html .= '<br/>' . \EED_Ticket_Selector::ticket_selector_form_close(); |
| 445 | 445 | } else if ( |
| 446 | 446 | // a "Dude Where's my Ticket Selector?" (DWMTS) type event (ie: $_max_atndz === 1) |
@@ -480,14 +480,14 @@ discard block |
||
| 480 | 480 | $html .= EED_Ticket_Selector::display_view_details_btn(); |
| 481 | 481 | } else { |
| 482 | 482 | // no submit or view details button, and no additional content |
| 483 | - $html .= \EED_Ticket_Selector::no_tkt_slctr_end_dv(); |
|
| 483 | + $html .= \EED_Ticket_Selector::no_tkt_slctr_end_dv(); |
|
| 484 | 484 | } |
| 485 | - if ( ! is_archive()) { |
|
| 486 | - $html .= \EEH_Template::powered_by_event_espresso('', '', array( 'utm_content' => 'ticket_selector' )); |
|
| 487 | - } |
|
| 488 | - } |
|
| 489 | - return $html; |
|
| 490 | - } |
|
| 485 | + if ( ! is_archive()) { |
|
| 486 | + $html .= \EEH_Template::powered_by_event_espresso('', '', array( 'utm_content' => 'ticket_selector' )); |
|
| 487 | + } |
|
| 488 | + } |
|
| 489 | + return $html; |
|
| 490 | + } |
|
| 491 | 491 | |
| 492 | 492 | |
| 493 | 493 | |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | * @return array|boolean |
| 585 | 585 | */ |
| 586 | 586 | public function process_ticket_selections() { |
| 587 | - do_action( 'EED_Ticket_Selector__process_ticket_selections__before' ); |
|
| 587 | + do_action( 'EED_Ticket_Selector__process_ticket_selections__before' ); |
|
| 588 | 588 | // do we have an event id? |
| 589 | 589 | if ( ! EE_Registry::instance()->REQ->is_set( 'tkt-slctr-event-id' ) ) { |
| 590 | 590 | // $_POST['tkt-slctr-event-id'] was not set ?!?!?!? |
@@ -1005,11 +1005,11 @@ discard block |
||
| 1005 | 1005 | |
| 1006 | 1006 | |
| 1007 | 1007 | /** |
| 1008 | - * load js |
|
| 1009 | - * |
|
| 1010 | - * @access public |
|
| 1011 | - * @return void |
|
| 1012 | - */ |
|
| 1008 | + * load js |
|
| 1009 | + * |
|
| 1010 | + * @access public |
|
| 1011 | + * @return void |
|
| 1012 | + */ |
|
| 1013 | 1013 | public static function load_tckt_slctr_assets() { |
| 1014 | 1014 | // add some style |
| 1015 | 1015 | if ( apply_filters( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', FALSE ) ) { |