<?php
-define('TEACHINGS', '<root_prefix>/teachings.txt');
+define('TEACHINGS', $_SERVER['DOCUMENT_ROOT'] . '/teachings.txt');
class Teachings {
private static $instance = false;
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;
width: auto;
}
+table.teachings {
+ font-size: inherit;
+ border: 1px solid #aaa;
+}
+table.teachings tbody tr:nth-child(even) {
+ background: #d0d0d0;
+}
+table.teachings tbody tr:nth-child(odd) {
+ background: #eeeeee;
+}
+
/*
* Local variables:
* mode: indented-text