add microformats2 markup to html table
authorChristian Weiske <cweiske@cweiske.de>
Thu, 20 Mar 2014 20:39:54 +0000 (21:39 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 20 Mar 2014 20:39:54 +0000 (21:39 +0100)
src/bdrem/Renderer/HtmlTable.php

index 892c50a74b5a5a6e095665393a282f93c3dcb0ae..00627e7e81e4f04539ecb61f8c5592f4a211f141 100644 (file)
@@ -66,19 +66,20 @@ HTM;
                 $class .= ' next';
             }
             $s .= sprintf(
-                '<tr class="' . trim($class) . '">'
+                '<tr class="h-event ' . trim($class) . '">'
                 . '<td class="icon"></td>'
                 . '<td class="r">%d</td>'
                 . '<td class="r">%s</td>'
-                . '<td>%s</td>'
-                . '<td>%s</td>'
-                . '<td>%s</td>'
+                . '<td class="p-name">%s</td>'
+                . '<td class="p-summary p-category">%s</td>'
+                . '<td class="dt-start"><time class="value" datetime="%s">%s</time></td>'
                 . '<td>%s</td>'
                 . "</tr>\n",
                 $event->days,
                 $event->age,
                 htmlspecialchars($event->title),
                 htmlspecialchars($event->type),
+                $event->date,
                 $this->getLocalDate($event->date),
                 strftime('%a', strtotime($event->localDate))
             );