/**
  * espresso_event_status
  * returns the event status if it is sold out, expired, or inactive
  *
  * @param int  $EVT_ID
  * @param bool $echo
  * @return string
  */
 function espresso_event_status($EVT_ID = 0, $echo = TRUE)
 {
     if ($echo) {
         echo EEH_Event_View::event_active_status($EVT_ID);
         return '';
     }
     return EEH_Event_View::event_active_status($EVT_ID);
 }
 /**
  * espresso_event_status
  * returns the event status if it is sold out, expired, or inactive
  *
  * @param int  $EVT_ID
  * @param bool $echo
  * @return string
  */
 function espresso_event_status($EVT_ID = 0, $echo = TRUE)
 {
     EE_Registry::instance()->load_helper('Event_View');
     if ($echo) {
         echo EEH_Event_View::event_active_status($EVT_ID);
         return '';
     }
     return EEH_Event_View::event_active_status($EVT_ID);
 }
 public function active()
 {
     return EEH_Event_View::event_active_status($this->ID);
 }