Commit:    56f6fe690eafaa2d82a8dced44c70f434d40a60e
Author:    Hannes Magnusson <[email protected]>         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;


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to