[Fusionforge-commits] r10425 - in trunk/src/www: include snippet themes/gforge-classic/css themes/lite/css themes/osx/css

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Sep 8 20:22:18 CEST 2010


Author: aljeux
Date: 2010-09-08 20:22:18 +0200 (Wed, 08 Sep 2010)
New Revision: 10425

Modified:
   trunk/src/www/include/vote_function.php
   trunk/src/www/snippet/add_snippet_to_package.php
   trunk/src/www/snippet/detail.php
   trunk/src/www/themes/gforge-classic/css/theme.css
   trunk/src/www/themes/lite/css/theme.css
   trunk/src/www/themes/osx/css/theme.css
Log:
html_image() cleanup.

Modified: trunk/src/www/include/vote_function.php
===================================================================
--- trunk/src/www/include/vote_function.php	2010-09-08 18:22:10 UTC (rev 10424)
+++ trunk/src/www/include/vote_function.php	2010-09-08 18:22:18 UTC (rev 10425)
@@ -23,10 +23,10 @@
 	}
 	$count=intval($raw/2);
 	for ($i=0; $i<$count; $i++) {
-		$return .= html_image("ic/check.png","15","16",array());
+		$return .= html_image("ic/check.png","15","16");
 	}
 	if ($show_half==1) {
-		$return .= html_image("ic/halfcheck.png","15","16",array());
+		$return .= html_image("ic/halfcheck.png","15","16");
 	}
 	return $return;
 }
@@ -99,11 +99,11 @@
 	<input type="radio" name="redirect_to" value="<?php echo urlencode(getStringFromServer('REQUEST_URI')); ?>" />
 	<input type="radio" name="flag" value="<?php echo $flag; ?>" />
 	<div align="center">
-	<?php echo html_image("rateit.png","100","9",array()); ?>
+	<?php echo html_image("rateit.png","100","9"); ?>
 	<br />
 	<?php
 		echo html_blankimage(1,$rating);
-		echo html_image("ic/caret.png","9","6",array());
+		echo html_image("ic/caret.png","9","6");
 	?>
 	<br />
 	<input type="radio" name="response" value="1" />

Modified: trunk/src/www/snippet/add_snippet_to_package.php
===================================================================
--- trunk/src/www/snippet/add_snippet_to_package.php	2010-09-08 18:22:10 UTC (rev 10424)
+++ trunk/src/www/snippet/add_snippet_to_package.php	2010-09-08 18:22:18 UTC (rev 10425)
@@ -176,7 +176,7 @@
 			echo '
 			<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td style="text-align:center">
 				<a href="'.util_make_url ('/snippet/delete.php?type=frompackage&snippet_version_id='.db_result($result,$i,'snippet_version_id').'&snippet_package_version_id='.$snippet_package_version_id).
-				'">' . html_image("ic/trash.png","16","16",array("border"=>"0")) . '</a></td><td width="99%">'.
+				'">' . html_image("ic/trash.png","16","16") . '</a></td><td width="99%">'.
 				db_result($result,$i,'name').' '.db_result($result,$i,'version')."</td></tr>";
 
 			$last_group=db_result($result,$i,'group_id');

Modified: trunk/src/www/snippet/detail.php
===================================================================
--- trunk/src/www/snippet/detail.php	2010-09-08 18:22:10 UTC (rev 10424)
+++ trunk/src/www/snippet/detail.php	2010-09-08 18:22:18 UTC (rev 10425)
@@ -158,10 +158,10 @@
 				date(_('Y-m-d H:i'),db_result($result,$i,'post_date')).'</td><td>'.
 				util_make_link_u (db_result($result, $i, 'user_name'), db_result($result, $i, 'user_id'),db_result($result, $i, 'realname')).'</td>'.
 				'<td style="text-align:center"><a href="'.util_make_url ('/snippet/add_snippet_to_package.php?snippet_package_version_id='.db_result($result,$i,'snippet_package_version_id')).
-				'">' . html_image("ic/pencil.png","20","25",array("border"=>"0")) .
+				'">' . html_image("ic/pencil.png","20","25") .
 				'</a> &nbsp; &nbsp; &nbsp; <a href="'.
 				util_make_url ('/snippet/delete.php?type=package&snippet_package_version_id='.db_result($result,$i,'snippet_package_version_id')).
-				'">' . html_image("ic/trash.png","16","16",array("border"=>"0")) . '</a></td></tr>';
+				'">' . html_image("ic/trash.png","16","16") . '</a></td></tr>';
 		}
 
 		echo $GLOBALS['HTML']->listTableBottom();

Modified: trunk/src/www/themes/gforge-classic/css/theme.css
===================================================================
--- trunk/src/www/themes/gforge-classic/css/theme.css	2010-09-08 18:22:10 UTC (rev 10424)
+++ trunk/src/www/themes/gforge-classic/css/theme.css	2010-09-08 18:22:18 UTC (rev 10425)
@@ -19,6 +19,7 @@
 
 pre,tt { font-family: courier,sans-serif }
 
+img { border: 0; vertical-align: middle; }
 
 a:link { text-decoration:none; color: #0000be }
 a:visited { text-decoration:none; color: #0000be }

Modified: trunk/src/www/themes/lite/css/theme.css
===================================================================
--- trunk/src/www/themes/lite/css/theme.css	2010-09-08 18:22:10 UTC (rev 10424)
+++ trunk/src/www/themes/lite/css/theme.css	2010-09-08 18:22:18 UTC (rev 10425)
@@ -4,6 +4,8 @@
         background-color: #fcaf3c;
 }
 
+img { border: 0; vertical-align: middle; }
+
 div.header {
 
         background-color: #fcaf3c;

Modified: trunk/src/www/themes/osx/css/theme.css
===================================================================
--- trunk/src/www/themes/osx/css/theme.css	2010-09-08 18:22:10 UTC (rev 10424)
+++ trunk/src/www/themes/osx/css/theme.css	2010-09-08 18:22:18 UTC (rev 10425)
@@ -14,6 +14,8 @@
 		color: #202020;
 	}
 
+img { border: 0; vertical-align: middle; }
+
 /* give the rule a bit of extra space (above and below), since its being used to divide
    sections on some pages (project summary) */
 HR { margin: 5px 0px 5px 0px }




More information about the Fusionforge-commits mailing list