[Scummvm-cvs-logs] CVS: web/include menu.php,1.4,1.5 sidebar.php,1.19,1.20

Max Horn fingolfin at users.sourceforge.net
Mon Oct 13 10:38:09 CEST 2003


Update of /cvsroot/scummvm/web/include
In directory sc8-pr-cvs1:/tmp/cvs-serv25489/include

Modified Files:
	menu.php sidebar.php 
Log Message:
'Why CSS?' episode 412: 'Doing more with less'. Less code, less HTML output, but more flexibility in the layout. Seperating content from design, yay :-)

Index: menu.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/menu.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- menu.php	12 Oct 2003 23:24:25 -0000	1.4
+++ menu.php	13 Oct 2003 17:37:32 -0000	1.5
@@ -10,44 +10,25 @@
 
     function htmlmenu($name)
     {
-		global $file_root;
-	
-		echo "<table width=120 border=0 cellspacing=0 cellpadding=0>\n";
-		echo "<tr>\n";
-		echo "	<td class=topMenu><span class=menuTitle> $name</span></td>\n";
-		echo "	<td align=right valign=top class=topMenu><img src='".$file_root."/images/main_right_top.gif' alt='---'></td>\n";
-		echo " </tr>\n";
-		echo "</table>\n";
-		echo  "<table width=120 border=0 cellspacing=0 cellpadding=2>\n";
-		echo "<tr>\n";
-		echo "	<td class=sideMenu><img src='".$file_root."/images/blank.gif' height=5 width=1 alt='---'></td>\n";
-		echo "</tr>\n"; 
+		echo "<div class='sideMenu'>";
+		echo "<div class='header'><div class='headerRight'>".$name."</div></div>";
     }
 
     /* add a table row */
     function add($name, $url = null)
     {
-    	echo "<tr><td class=sideMenu><span class=menuItem> ";
+		echo '<div class="item">';
 		if($url) {
-			echo "<a href='$url' class=menuItem>$name</a>";
+			echo "<a href='$url'>$name</a>";
 		} else {
 			echo "$name";
 		}
-		echo "</span></td></tr>\n";
+		echo "</div>\n";
     }
 
     function done($extra = "")
     {
-		global $file_root;
-	
-		echo "</table>\n";
-		echo "<table width=120 border=0 cellspacing=0 cellpadding=0>\n";
-		echo "<tr>\n";
-		echo "	<td align=right class=sideMenu><img src='".$file_root."/images/main_right_bottom.gif' alt='---'></td>\n";
-		echo "</tr>\n";
-		echo "</table>";
-		echo $extra;
-		echo "<br>\n";
+    	echo "<div class='footer'><div class='footerRight'> </div></div></div><br>\n";
     }
 }
 ?>

Index: sidebar.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/sidebar.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- sidebar.php	13 Oct 2003 14:36:01 -0000	1.19
+++ sidebar.php	13 Oct 2003 17:37:32 -0000	1.20
@@ -44,7 +44,6 @@
 
 	$g->done();
 
-
 	$g = new htmlmenu("SourceForge Menu");
 
 	$g->add("Project Home", "http://sourceforge.net/projects/scummvm/");





More information about the Scummvm-git-logs mailing list