|
From: James A. <th...@us...> - 2001-11-23 09:32:03
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv7298
Modified Files:
viewforum.php
Log Message:
Added alternating row color/class for topicrow
Index: viewforum.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/viewforum.php,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -r1.103 -r1.104
*** viewforum.php 2001/11/18 14:00:30 1.103
--- viewforum.php 2001/11/23 09:31:59 1.104
***************
*** 563,567 ****
--- 563,571 ----
$views = $topic_rowset[$i]['topic_views'];
+
+ $row_color = ( !($i%2) ) ? $theme['td_color1'] : $theme['td_color2'];
+ $row_class = ( !($i%2) ) ? $theme['td_class1'] : $theme['td_class2'];
+
$template->assign_block_vars("topicrow", array(
"FORUM_ID" => $forum_id,
***************
*** 576,579 ****
--- 580,585 ----
"VIEWS" => $views,
"LAST_POST" => $last_post,
+ "ROW_COLOR" => $row_color,
+ "ROW_CLASS" => $row_class,
"U_VIEW_TOPIC" => $view_topic_url)
|