From ab7e271f1d7884594402773ecea5a7fe15f1d0d3 Mon Sep 17 00:00:00 2001 From: BNoiZe Date: Wed, 4 Dec 2013 19:53:55 +0100 Subject: [PATCH] Moved date to top, changed date/time format --- lib/ajax.php | 4 ++-- templates/Sparkle/assets/css/main.css | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/ajax.php b/lib/ajax.php index 7e7a1823..e701b955 100644 --- a/lib/ajax.php +++ b/lib/ajax.php @@ -52,10 +52,10 @@ if ($action == "newsfeed") { $title = (string)$item->title; $link = (string)$item->link; - $date = date("D, j. F Y, G:i", strtotime($item->pubDate)); + $date = date("Y-m-d G:i", strtotime($item->pubDate)); $content = preg_replace("/[\r\n]+/", "", strip_tags($item->description)); - echo "
" . $title . "
" . $date . "
" . $content . "
"; + echo "
" . $date . "
" . $title . "
" . $content . "
"; } } else { echo ""; diff --git a/templates/Sparkle/assets/css/main.css b/templates/Sparkle/assets/css/main.css index 510f2f8b..a2f13fc3 100644 --- a/templates/Sparkle/assets/css/main.css +++ b/templates/Sparkle/assets/css/main.css @@ -953,8 +953,8 @@ label.nobr { .newsitem { border-bottom: 1px solid #f1f2f3; padding: 6px 5px 8px 5px; - height: 56px; - line-height: 20px; + height: 52px; + line-height: 18px; margin: 0 5px; overflow: hidden; text-overflow: ellipsis; @@ -962,6 +962,7 @@ label.nobr { } .newsitem a { color: #333; + line-height: 12px; } .newsitem a:hover { text-decoration: none; @@ -973,6 +974,6 @@ label.nobr { margin-right: 15px; } .newsitem small { - font-size: 10px; + font-size: 8px; color: gray; }