[Scummvm-cvs-logs] CVS: web/include sidebar.php,1.17,1.18

Max Horn fingolfin at users.sourceforge.net
Mon Oct 13 07:29:12 CEST 2003


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

Modified Files:
	sidebar.php 
Log Message:
get rid of docs/specs/sidebar_specs.php -> reduce code duplication

Index: sidebar.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/sidebar.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- sidebar.php	13 Oct 2003 00:08:56 -0000	1.17
+++ sidebar.php	13 Oct 2003 14:28:41 -0000	1.18
@@ -6,7 +6,7 @@
  *
  */
   
-function sidebar_start ()
+function sidebar_start ($specs_mode = false)
 {
   
     global $file_root;
@@ -18,6 +18,20 @@
 <td align=center valign=top>
 
 <?
+
+	if ($specs_mode) {
+		$g = new htmlmenu("Contents");
+		$g->add("Introduction", $file_root."/docs/specs/"."introduction.php");
+		$g->add("CHAR", $file_root."/docs/specs/"."char.php");
+		$g->add("AARY", $file_root."/docs/specs/"."aary.php");
+		$g->add("SCRP", $file_root."/docs/specs/"."scrp.php");
+		$g->add("V5 opcode list", $file_root."/docs/specs/"."scrp-v5.php");
+		$g->add("V6 opcode list", $file_root."/docs/specs/"."scrp-v6.php");
+		$g->add("Glossary", $file_root."/docs/specs/"."glossary.php");
+	
+		$g->done();
+	}
+
 
 	$g = new htmlmenu("Main Menu");
 





More information about the Scummvm-git-logs mailing list