[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
- Previous message: [Scummvm-cvs-logs] CVS: web index.css,NONE,1.1 screenshots.css,NONE,1.1 faq.php,1.49,1.50 index.php,1.37,1.38 links.php,1.56,1.57 screenshots.php,1.21,1.22 style.css,1.9,1.10
- Next message: [Scummvm-cvs-logs] CVS: web faq.css,1.1,1.2 index.css,1.1,1.2 links.css,1.1,1.2 screenshots.css,1.1,1.2 style.css,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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";
?>
- Previous message: [Scummvm-cvs-logs] CVS: web index.css,NONE,1.1 screenshots.css,NONE,1.1 faq.php,1.49,1.50 index.php,1.37,1.38 links.php,1.56,1.57 screenshots.php,1.21,1.22 style.css,1.9,1.10
- Next message: [Scummvm-cvs-logs] CVS: web faq.css,1.1,1.2 index.css,1.1,1.2 links.css,1.1,1.2 screenshots.css,1.1,1.2 style.css,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list