r755 - webspace/include

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri May 5 20:26:28 EDT 2006


Author: floam
Date: 2006-05-05 20:26:28 -0400 (Fri, 05 May 2006)
New Revision: 755

Modified:
   webspace/include/news.php
Log:
hide nav when showing just one


Modified: webspace/include/news.php
===================================================================
--- webspace/include/news.php	2006-05-06 00:25:08 UTC (rev 754)
+++ webspace/include/news.php	2006-05-06 00:26:28 UTC (rev 755)
@@ -17,6 +17,7 @@
 else
 {
 	$news_item_max = 5;
+	$show_nav = true
 }
 
 
@@ -44,12 +45,15 @@
 				$lastid = $digestItem['id'];
 			}
 		}
-		echo "<p id=\"newsnav\">";
-		if ($news_item_count == $news_item_max)
-			echo "<a class=\"left\" href=\"?page=news&amp;news_index=$lastid\">&larr;Backpedal</a>";
-		if ($news_index != false)
-			echo "<a class=\"right\" href=\"?page=news\">To Newest&rarr;</a>";
-		echo "</p>";
+		if ($show_nav)
+		{
+			echo "<p id=\"newsnav\">";
+			if ($news_item_count == $news_item_max)
+				echo "<a class=\"left\" href=\"?page=news&amp;news_index=$lastid\">&larr;Backpedal</a>";
+			if ($news_index != false)
+				echo "<a class=\"right\" href=\"?page=news\">To Newest&rarr;</a>";
+			echo "</p>";
+		}
 }
 
 news_logout($sock);




More information about the quake3-commits mailing list