cvs: php-gtk-web /include layout.php
| From: | Scott Mattocks | Date: | Tue, 11 Jul 2006 12:55:16 +0000 |
| Subject: | cvs: php-gtk-web /include layout.php | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-3216@lists.php.net to get a copy of this message | ||
scottmattocks Tue Jul 11 12:55:16 2006 UTC
Modified files:
/php-gtk-web/include layout.php
Log:
Attempt at making the home page validate. For some reason, I cant reproduce the height and width
values that the validator complains about, but this should get rid of them.
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/layout.php?r1=1.58&r2=1.59&diff_format=u
Index: php-gtk-web/include/layout.php
diff -u php-gtk-web/include/layout.php:1.58 php-gtk-web/include/layout.php:1.59
--- php-gtk-web/include/layout.php:1.58 Sun Jul 9 19:07:55 2006
+++ php-gtk-web/include/layout.php Tue Jul 11 12:55:16 2006
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.php,v 1.58 2006/07/09 19:07:55 sfox Exp $ */
+/* $Id: layout.php,v 1.59 2006/07/11 12:55:16 scottmattocks Exp $ */
# spacer()
# print a IMG tag for a sized spacer GIF
@@ -19,7 +19,7 @@
function resize_image($img, $width = 1, $height = 1) {
$str = preg_replace('/width=\"([0-9]+?)\"/i', '', $img);
$str = preg_replace('/height=\"([0-9]+?)\"/i', '', $str);
- $str = substr($str, 0, -1) . sprintf(' height="%s"
width="%s">', $height, $width);
+ $str = substr($str, 0, -1) . sprintf(' style="height:%s; width:%s;">',
$height, $width);
return $str;
}