X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Finfocon.infodrom.org;a=blobdiff_plain;f=class%2Fteachings.class.php;h=9af9ce689fc29eafa0e467d5df5ee8ab30a0d93c;hp=faa9372cfa7abbbf260a3efdc37235825c8a351c;hb=fbd9a90cfec5d00c1c42bb02009c1df6124062db;hpb=c2c5dd739f9271062d04e7c7aacf8b368c55650a diff --git a/class/teachings.class.php b/class/teachings.class.php index faa9372..9af9ce6 100644 --- a/class/teachings.class.php +++ b/class/teachings.class.php @@ -1,6 +1,6 @@ /teachings.txt'); +define('TEACHINGS', $_SERVER['DOCUMENT_ROOT'] . '/teachings.txt'); class Teachings { private static $instance = false; @@ -43,7 +43,7 @@ class Teachings { { $html = ''; foreach ($this->list as $row) { - if ($row->location != 'Linuxhotel') continue; + if (strpos($row->location, 'Linuxhotel GmbH') === false) continue; $dstart = explode('-', $row->start); $dend = explode('-', $row->end); @@ -56,21 +56,25 @@ class Teachings { $link = strlen($row->url) ? sprintf('Details / Buchen', $row->url) : ''; $html .= sprintf('%s%s%s', $date, - $row->title, + str_replace('\\', '', $row->title), $link); } if (strlen($html)) { $html = '' + . '' . '' . '' . '' . '' . '' - . '' + . '' + . '' . $html + . '' . '
DatumBeschreibungLink
'; } + return $html; } }