cvs: php-gtk-web /include layout.php

From: Date: Sat, 15 Jul 2006 04:20:44 +0000
Subject: cvs: php-gtk-web /include layout.php
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-3257@lists.php.net to get a copy of this message
sfox Sat Jul 15 04:20:44 2006 UTC Modified files: /php-gtk-web/include layout.php Log: nudge us a little closer to standards compliance http://cvs.php.net/viewvc.cgi/php-gtk-web/include/layout.php?r1=1.61&r2=1.62&diff_format=u Index: php-gtk-web/include/layout.php diff -u php-gtk-web/include/layout.php:1.61 php-gtk-web/include/layout.php:1.62 --- php-gtk-web/include/layout.php:1.61 Thu Jul 13 05:52:51 2006 +++ php-gtk-web/include/layout.php Sat Jul 15 04:20:44 2006 @@ -1,11 +1,11 @@ <?php -/* $Id: layout.php,v 1.61 2006/07/13 05:52:51 cweiske Exp $ */ +/* $Id: layout.php,v 1.62 2006/07/15 04:20:44 sfox Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF # function spacer($width = 1, $height = 1, $align = false, $extras = false) { - printf('<img src="/gifs/spacer.gif" width="%d" height="%d" border="0" alt="" %s%s />', + printf('<img src="/gifs/spacer.gif" style="width:%d; height:%d;" border="0" alt="" %s%s />', $width, $height, ($align ? 'align="'.$align.'" ' : ''), @@ -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(' style="height:%s; width:%s;">', $height, $width); + $str = substr($str, 0, -1) . sprintf(' style="height:%d; width:%d;">', $height, $width); return $str; } @@ -277,8 +277,8 @@ <td> <small> <?php print_link('http://www.php.net/', make_image('php-logo.gif', 'PHP', 'left')); ?> - <?php print_link('/copyright.php', 'Copyright &copy; 2001-' . date('Y') . ' The PHP Group'); ?><br /> - All rights reserved.<br /> + &nbsp;<?php print_link('/copyright.php', 'Copyright &copy; 2001-' . date('Y') . ' The PHP Group'); ?><br /> + &nbsp;All rights reserved.<br /> </small> </td> <td align="right">

« previous php.gtk.webmaster (#3257) next »