From 6fb8790fb4ced6b18a5c7a22d02e0cf15516231a Mon Sep 17 00:00:00 2001 From: Bart Lantz Date: Sat, 17 Dec 2011 15:45:40 -0700 Subject: [PATCH] Added span's for the modified/original date fields so they can be styled I added separate spans for the updated and original field's of the bookmarks, I also added some default CSS styling. --- scuttle.css | 8 ++++++++ templates/bookmarks.tpl.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/scuttle.css b/scuttle.css index fba6933..57b1ae0 100644 --- a/scuttle.css +++ b/scuttle.css @@ -181,6 +181,14 @@ div.meta { div.meta span { color: #F00; } +/* bookmark date fields: updated and created */ +div.meta span#date-updated { + color: #285; +} +div.meta span#date-original { + background: #eee; + color: #aaa; +} li.xfolkentry { border-bottom: 1px solid #DDD; margin-bottom: 0; diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index d068a9a..a535590 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -103,7 +103,7 @@ if (count($bookmarks) > 0) { if ($row['bDatetime'] == $row['bModified']) { echo '
'. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
\n"; } else { - echo '
updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . ", original: ". date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
\n"; + echo '
updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . ', original: '. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . "" . $cats . $copy . $edit ."
\n"; } echo "\n"; } -- 2.39.2