Remove Google
[infodrom.org/infocon.infodrom.org] / class / teachings.class.php
index faa9372..f7d80cb 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define('TEACHINGS', '<root_prefix>/teachings.txt');
+define('TEACHINGS', $_SERVER['DOCUMENT_ROOT'] . '/teachings.txt');
 
 class Teachings {
   private static $instance = false;
@@ -43,7 +43,8 @@ class Teachings {
   {
     $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);
@@ -62,13 +63,16 @@ class Teachings {
 
     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;