git.cweiske.de
/
bdrem.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7e8bdb9
)
add microformats2 markup to html table
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 20 Mar 2014 20:39:54 +0000
(21:39 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 20 Mar 2014 20:39:54 +0000
(21:39 +0100)
src/bdrem/Renderer/HtmlTable.php
patch
|
blob
|
history
diff --git
a/src/bdrem/Renderer/HtmlTable.php
b/src/bdrem/Renderer/HtmlTable.php
index 892c50a74b5a5a6e095665393a282f93c3dcb0ae..00627e7e81e4f04539ecb61f8c5592f4a211f141 100644
(file)
--- a/
src/bdrem/Renderer/HtmlTable.php
+++ b/
src/bdrem/Renderer/HtmlTable.php
@@
-66,19
+66,20
@@
HTM;
$class .= ' next';
}
$s .= sprintf(
$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 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),
. '<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))
);
$this->getLocalDate($event->date),
strftime('%a', strtotime($event->localDate))
);