Moved date to top, changed date/time format
This commit is contained in:
@@ -52,10 +52,10 @@ if ($action == "newsfeed") {
|
|||||||
|
|
||||||
$title = (string)$item->title;
|
$title = (string)$item->title;
|
||||||
$link = (string)$item->link;
|
$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));
|
$content = preg_replace("/[\r\n]+/", "", strip_tags($item->description));
|
||||||
|
|
||||||
echo "<div class=\"newsitem\"><a href=\"" . $link . "\" target=\"_blank\"><b>" . $title . "</b><br /><small>" . $date . "</small><br />" . $content . "</a></div>";
|
echo "<div class=\"newsitem\"><small>" . $date . "</small><br /><a href=\"" . $link . "\" target=\"_blank\"><b>" . $title . "</b><br />" . $content . "</a></div>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "";
|
echo "";
|
||||||
|
|||||||
7
templates/Sparkle/assets/css/main.css
vendored
7
templates/Sparkle/assets/css/main.css
vendored
@@ -953,8 +953,8 @@ label.nobr {
|
|||||||
.newsitem {
|
.newsitem {
|
||||||
border-bottom: 1px solid #f1f2f3;
|
border-bottom: 1px solid #f1f2f3;
|
||||||
padding: 6px 5px 8px 5px;
|
padding: 6px 5px 8px 5px;
|
||||||
height: 56px;
|
height: 52px;
|
||||||
line-height: 20px;
|
line-height: 18px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -962,6 +962,7 @@ label.nobr {
|
|||||||
}
|
}
|
||||||
.newsitem a {
|
.newsitem a {
|
||||||
color: #333;
|
color: #333;
|
||||||
|
line-height: 12px;
|
||||||
}
|
}
|
||||||
.newsitem a:hover {
|
.newsitem a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -973,6 +974,6 @@ label.nobr {
|
|||||||
margin-right: 15px;
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
.newsitem small {
|
.newsitem small {
|
||||||
font-size: 10px;
|
font-size: 8px;
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user