com web/php: Plus two lines, missed the date!: index.php styles/home.css
| From: | Hannes Magnusson | Date: | Thu, 21 Nov 2013 05:15:00 +0000 |
| Subject: | com web/php: Plus two lines, missed the date!: index.php styles/home.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17135@lists.php.net to get a copy of this message | ||
Commit: 56f6fe690eafaa2d82a8dced44c70f434d40a60e
Author: Hannes Magnusson <bjori@mongodb.com> Wed, 20 Nov 2013 21:15:00 -0800
Parents: ee8a5c18f5ef13859f1d500c797341aabcbfa0b1
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=56f6fe690eafaa2d82a8dced44c70f434d40a60e
Log:
Plus two lines, missed the date!
Changed paths:
M index.php
M styles/home.css
Diff:
diff --git a/index.php b/index.php
index d8e48da..b2ba3c4 100644
--- a/index.php
+++ b/index.php
@@ -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>';
diff --git a/styles/home.css b/styles/home.css
index 2833370..74f2ff7 100644
--- a/styles/home.css
+++ b/styles/home.css
@@ -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;