Lines Matching refs:event

232 // Displays an event. Used in event submission
233 // previews and event information displays
234 function display_event($event, $include_date = 1): void
258 if (!isset($event['start']) && isset($event['sday'])) {
259 $sday = mktime(12,0,0,$event['smonth'],$event['sday'],$event['syear']);
261 … $sday = (isset($event['start']) && !empty($event['start'])) ? strtotime($event['start']) : 0;
264 if (!isset($event['end']) && isset($event['eday'])) {
265 $eday = mktime(12,0,0,$event['emonth'],$event['eday'],$event['eyear']);
267 $eday = (isset($event['end']) && !empty($event['end'])) ? strtotime($event['end']) : 0;
275 if ($include_date && (isset($event['start']))) {
280 …if ($event['url']) { echo '<a href="', htmlentities($event['url'], ENT_QUOTES | ENT_IGNORE, 'UTF-8…
281 // Print event description
282 …echo "<b class='summary'>", stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'U…
284 if ($event['url']) { echo "</a>"; }
287 switch ($event['type']) {
295 $days = $re[$event['recur']] . " " . $days[$event['recur_day']];
307 if (isset($event['category']) && $event['category']) {
309 echo ' [' . $cat[$event['category']] . '] ';
313 echo ' (<span class="location">' , $COUNTRIES[$event['country']] , '</span>)';
320 …echo preg_replace("/\r?\n\r?\n/", "<br><br>", trim(htmlentities($event['ldesc'],ENT_QUOTES | ENT_I…
322 if ($event['url']) {
324 '<a href="', htmlentities($event['url'], ENT_QUOTES | ENT_IGNORE, 'UTF-8'), '">',
325 htmlentities($event['url'], ENT_QUOTES | ENT_IGNORE, 'UTF-8'), '</a>';