public function __construct(array $params, $content)
 {
     $this->fallback = EVENTROCKET_INC . '/templates/embedded-venues.php';
     parent::__construct($params, $content);
 }
 /**
  * We override the parent load_post_by_slug() method in order to better support recurring
  * events.
  *
  * It appears to an end user that a recurring event has a slug like "my-event", as they
  * have URLs in the form "example.com/events/my-event/(date)". However, the true slug/post
  * name is actually more like "my-event-yyyy-mm-dd".
  *
  * This causes a bit of a disconnect which this method tries to solve.
  *
  * @param  $slug
  * @param  $post_type
  * @return array
  */
 protected function load_post_by_slug($slug, $post_type)
 {
     $event = parent::load_post_by_slug($slug, $post_type);
     // If PRO is not activated/there are no recurrence facilities, let's do nothing more
     if (!function_exists('tribe_is_recurring_event')) {
         return $event;
     }
     // If this specific event is not in fact recurring in nature, let's do nothing more
     if (!tribe_is_recurring_event($event->ID)) {
         return $event;
     }
     // Add to list of recurring events before returning parent ID
     $rec_id = $event->post_parent ? $event->post_parent : $event->ID;
     $this->recurring_events[] = $rec_id;
     return $event;
 }