<?php
-define('TEACHINGS', '<root_prefix>/teachings.txt');
+define('TEACHINGS', $_SERVER['DOCUMENT_ROOT'] . '/teachings.txt');
class Teachings {
private static $instance = false;
{
$html = '';
foreach ($this->list as $row) {
- if ($row->location != 'Linuxhotel') continue;
+ error_log($row->location);
+ if ($row->location != 'Linuxhotel GmbH') continue;
$dstart = explode('-', $row->start);
$dend = explode('-', $row->end);
if (strlen($html)) {
$html = '<table class="teachings" width="100%">'
+ . '<thead>'
. '<tr>'
. '<th width="20%">Datum</th>'
. '<th width="60%" align="left">Beschreibung</th>'
. '<th width="20%">Link</th>'
. '</tr>'
- . '<tr>'
+ . '</thead>'
+ . '<tbody>'
. $html
+ . '</tbody>'
. '</table>';
}
return $html;