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:
@@ -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>';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user