[Fusionforge-commits] r16205 - trunk/src/common/widget

Franck VILLAUME nerville at fusionforge.org
Tue Sep 4 22:41:24 CEST 2012


Author: nerville
Date: 2012-09-04 22:41:23 +0200 (Tue, 04 Sep 2012)
New Revision: 16205

Modified:
   trunk/src/common/widget/Widget_Rss.class.php
Log:
use the proper helper

Modified: trunk/src/common/widget/Widget_Rss.class.php
===================================================================
--- trunk/src/common/widget/Widget_Rss.class.php	2012-09-04 20:32:10 UTC (rev 16204)
+++ trunk/src/common/widget/Widget_Rss.class.php	2012-09-04 20:41:23 UTC (rev 16205)
@@ -59,16 +59,9 @@
 			$content .= '<table class="fullwidth">';
 			$i = 0;
 			foreach($items as $item){
-				if ($i % 2 == 0) {
-					$class="bgcolor-white";
-				}
-				else {
-					$class="bgcolor-grey";
-				}
-
 				$i=$i+1;
 
-				$content .= '<tr class="'. $class .'"><td WIDTH="99%">';
+				$content .= '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle($i).'><td WIDTH="99%">';
 				if ($image = $item->get_link(0, 'image')) {
 					//hack to display twitter avatar
 					$content .= '<img src="'.  $hp->purify($image, CODENDI_PURIFIER_CONVERT_HTML)  .'" style="float:left; margin-right:1em;" />';




More information about the Fusionforge-commits mailing list