summaryrefslogtreecommitdiff
path: root/utils/modules/events.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modules/events.php')
-rw-r--r--utils/modules/events.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/modules/events.php b/utils/modules/events.php
index f14622e..8be8f5e 100644
--- a/utils/modules/events.php
+++ b/utils/modules/events.php
@@ -2,6 +2,7 @@
/* -*- Mode: php; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
include_once($UTIL_DIR . "/convert.php");
+include_once($UTIL_DIR . "/markdown.php");
class Event {
public $title;
@@ -26,12 +27,13 @@ class Event {
$icons = new Icons($ICONS_DIR."/");
$icon = $icons->icons[$this->flyer];
+ $content = Markdown(htmlspecialchars_decode($this->description));
+
$str = "<div class=\"event\">\n";
$str .= " <div class=\"event_title\">" .
htmlspecialchars_decode($this->title, ENT_QUOTES) . "</div>\n";
$str .= " <div class=\"event_time\">" . date("D M jS Y", $this->time) . "</div>\n";
- $str .= " <div class=\"event_description\">" .
- htmlspecialchars_decode($this->description, ENT_QUOTES) . "</div>\n";
+ $str .= " <div class=\"event_description\">" . $content . "</div>\n";
if($this->flyer) {
$str .= " <img class=\"event_flyer\" alt=\"flyer\" src=\"".$icon->prefix.$icon->file."\"/>\n";
}