/**
  * Child scope classes indicate what gets returned when the frontend_url is requested.
  * Frontend url usually points to the single page view for the given id.
  *
  * @since 1.0.0
  * @param  int | EE_Event[]   $EVT_ID   ID or array of ids for the EE_Event object being utilized
  * @return string
  */
 public function get_frontend_url($EVT_ID)
 {
     EE_Registry::instance()->load_helper('Event_View');
     if (empty($EVT_ID) || is_array($EVT_ID)) {
         return EEH_Event_View::event_archive_url();
     }
     return EEH_Event_View::event_link_url($EVT_ID);
 }
 /**
  *    ticket_selector_form_open
  *
  * @access 		public
  * @param 		int 	$ID
  * @param 		string $external_url
  * @return 		string
  */
 public static function ticket_selector_form_open($ID = 0, $external_url = '')
 {
     // if redirecting, we don't need any anything else
     if ($external_url) {
         $html = '<form method="GET" action="' . EEH_URL::refactor_url($external_url) . '">';
         $query_args = EEH_URL::get_query_string($external_url);
         foreach ($query_args as $query_arg => $value) {
             $html .= '<input type="hidden" name="' . $query_arg . '" value="' . $value . '">';
         }
         return $html;
     }
     $checkout_url = EEH_Event_View::event_link_url($ID);
     if (!$checkout_url) {
         EE_Error::add_error(__('The URL for the Event Details page could not be retrieved.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
     }
     $extra_params = self::$_in_iframe ? ' target="_blank"' : '';
     $html = '<form method="POST" action="' . $checkout_url . '"' . $extra_params . '>';
     $html .= wp_nonce_field('process_ticket_selections', 'process_ticket_selections_nonce', TRUE, FALSE);
     $html .= '<input type="hidden" name="ee" value="process_ticket_selections">';
     $html = apply_filters('FHEE__EE_Ticket_Selector__ticket_selector_form_open__html', $html, self::$_event);
     return $html;
 }
 /**
  * espresso_event_link_url
  *
  * @param int  $EVT_ID
  * @param bool $echo
  * @return string
  */
 function espresso_event_link_url($EVT_ID = 0, $echo = TRUE)
 {
     if ($echo) {
         echo EEH_Event_View::event_link_url($EVT_ID);
         return '';
     }
     return EEH_Event_View::event_link_url($EVT_ID);
 }
 /**
  * espresso_event_link_url
  *
  * @param int  $EVT_ID
  * @param bool $echo
  * @return string
  */
 function espresso_event_link_url($EVT_ID = 0, $echo = TRUE)
 {
     EE_Registry::instance()->load_helper('Event_View');
     if ($echo) {
         echo EEH_Event_View::event_link_url($EVT_ID);
         return '';
     }
     return EEH_Event_View::event_link_url($EVT_ID);
 }
 /**
  *    ticket_selector_form_open
  *
  * @access 		public
  * @param 		int 	$ID
  * @param 		string $external_url
  * @return 		string
  */
 public static function ticket_selector_form_open($ID = 0, $external_url = '')
 {
     // if redirecting, we don't need any anything else
     if ($external_url) {
         EE_Registry::instance()->load_helper('URL');
         $html = '<form id="" method="GET" action="' . EEH_URL::refactor_url($external_url) . '">';
         $query_args = EEH_URL::get_query_string($external_url);
         foreach ($query_args as $query_arg => $value) {
             $html .= '<input type="hidden" name="' . $query_arg . '" value="' . $value . '">';
         }
         return $html;
     }
     EE_Registry::instance()->load_helper('Event_View');
     $checkout_url = EEH_Event_View::event_link_url($ID);
     if (!$checkout_url) {
         $msg = __('The URL for the Event Details page could not be retrieved.', 'event_espresso');
         EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
     }
     $checkout_url = add_query_arg(array('ee' => 'process_ticket_selections'), $checkout_url);
     return '<form id="" method="POST" action="' . $checkout_url . '">' . wp_nonce_field('process_ticket_selections', 'process_ticket_selections_nonce', TRUE, FALSE);
 }