private static function get_ess_image($event_id = '') { return "<a href='" . ESS_IO::get_feed_url($event_id) . "' target='_blank' title='" . __('ESS Feed of all the events published in the website and available for syndication.', 'dbem') . "'>" . "<img src='" . EM_ESS_URL . "/assets/img/ESS_logo_16x16.png' title='" . __("Events content with ESS Feed format", 'dbem') . "' style='margin-right:6px;'/>" . "</a>"; }
public static function set_event_saved_filter($result = NULL, $event_id = NULL) { if ($result == TRUE) { if (empty($event_id)) { global $EM_Event; } else { $EM_Event = em_get_event($event_id); } if ($EM_Event instanceof EM_Event && intval($EM_Event->event_id) > 0) { $feed_url = ESS_IO::get_feed_url($EM_Event->event_id, FALSE, TRUE); return ESS_IO::get_curl_result(FeedWriter::$AGGREGATOR_WS, $feed_url) !== FALSE; } } return FALSE; }