[Scummvm-cvs-logs] CVS: web/include html.php,1.24,1.25

Max Horn fingolfin at users.sourceforge.net
Sat Nov 26 11:53:09 CET 2005


Update of /cvsroot/scummvm/web/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11997/include

Modified Files:
	html.php 
Log Message:
Split CSS so that page specific stuff is confined to a CSS file for that page only

Index: html.php
===================================================================
RCS file: /cvsroot/scummvm/web/include/html.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- html.php	17 Nov 2005 22:59:31 -0000	1.24
+++ html.php	26 Nov 2005 19:52:45 -0000	1.25
@@ -1,6 +1,6 @@
 <?php
 
-function html_page_header($title, $extra = "") {
+function html_page_header($title, $extra_css = array()) {
   global $file_root;
 
 ?>
@@ -10,6 +10,10 @@
 		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 		<link rel="stylesheet" href="./style.css" type="text/css">
 <?php
+  foreach ($extra_css as $css_file) {
+    echo '<link rel="stylesheet" href="./' . $css_file . '" type="text/css">'."\n";
+  }
+
   echo "<title>$title</title>\n";
   echo "$extra\n";
 ?>





More information about the Scummvm-git-logs mailing list