1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Plus two lines, missed the date!

This commit is contained in:
Hannes Magnusson
2013-11-20 21:15:00 -08:00
parent ee8a5c18f5
commit 56f6fe690e
2 changed files with 8 additions and 0 deletions

View File

@@ -71,8 +71,10 @@ foreach($NEWS_ENTRIES as $entry) {
}
foreach($frontpage as $entry) {
$link = substr($entry["id"], 15); // Strip http://php.net/
$date = date_format(date_create($entry["updated"]), 'Y-m-d');
$content .= '<div class="newsentry">';
$content .= '<div class="newstitle"><a href="'. $MYSITE.$link .'">' . $entry["title"] . '</a></div>';
$content .= '<div class="newstime">' . $date . '</div>';
$content .= '<div class="newscontent">';
$content .= $entry["content"];
$content .= '</div>';

View File

@@ -169,6 +169,12 @@ complimentary greens: 9FB553 7B8851 61761B C6DA82 CCDA99
content:"»";
color:#666;
}
.newsentry .newstime {
float: right;
border-bottom: 1px dotted #999;
margin: 3px;
}
.newsentry .newscontent {
padding: 5px;
margin-bottom: 20px;