[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/media/includes
From:       Christoph Cullmann <crossfire () babylon2k ! de>
Date:       2004-02-18 19:04:57
Message-ID: 20040218190457.603399962 () office ! kde ! org
[Download RAW message or body]

CVS commit by cullmann: 

general news look now more like the apps/dot news


  M +16 -4     functions.inc   1.62


--- www/media/includes/functions.inc  #1.61:1.62
@@ -380,5 +380,6 @@
   startTranslation($site_locale);
 
-  print "<h2><a name=\"news\">" . i18n_var("Latest News") . "</a></h2>\n";
+  if ($summaryonly)
+    print "<h2><a name=\"news\">" . i18n_var("Latest News") . "</a></h2>\n";
 
   $news = new RDF();
@@ -408,4 +409,7 @@
     $alternate = false;
     print "<table width=\"100%;\" cellpadding=\"6\">\n";
+    
+    if ($summaryonly)
+      print "<tr><th>" . i18n_var("Date") . "</th>\n<th>" . i18n_var("Headline") . \
"</th></tr>\n";  
     for($x=1;$x<=$rdf_items;$x++)
@@ -425,14 +429,22 @@
       print "<tr>\n";
 
+      $printDate = $date[1];
+      
+      if ($summaryonly)
+        print "<tr>\n<td valign=\"top\">".(($printDate == $prevDate) ? "&nbsp;" : \
"<b>$printDate</b>")."</td>\n"; +      
       if ($summaryonly)
       {
-        print "<td class=\"$color\">$date[1]  - " . " <a href=\"news.php#" . \
ereg_replace("[^a-zA-Z]", "", $title[1]) . "\">$title[1]</a></td>\n"; +        print \
"<td><a href=\"news.php#" . ereg_replace("[^a-zA-Z]", "", $title[1]) . \
"\">$title[1]</a></td>\n";  }
       else
       {
-        print "<td class=\"$color\"><p><a name=\"" . ereg_replace("[^a-zA-Z]", "", \
                $title[1]) . "\">" . "<b>$title[1]</b></a></p>\n";
-        print "$date[1] - $fullstory[1]</td>\n";
+        print "<td><a name=\"" . ereg_replace("[^a-zA-Z]", "", $title[1]) . \
"\"><h3>$printDate: $title[1]</h3></a></td>\n"; +        print \
"</tr><tr><td>$fullstory[1]</td>\n";  }
+      
       print "</tr>\n";
+      
+      $prevDate = $printDate;
     }
     print "</table>\n";


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic