From ac3757bad047b334fb77aa6552b13c8a6931ea6c Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Fri, 23 Nov 2001 09:31:59 +0000 Subject: [PATCH] Added alternating row color/class for topicrow git-svn-id: file:///svn/phpbb/trunk@1425 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewforum.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 40d061b3ce..9568ba0957 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -562,6 +562,10 @@ if( $total_topics ) $last_post .= "\"""; $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, @@ -575,6 +579,8 @@ if( $total_topics ) "TOPIC_TYPE" => $topic_type, "VIEWS" => $views, "LAST_POST" => $last_post, + "ROW_COLOR" => $row_color, + "ROW_CLASS" => $row_class, "U_VIEW_TOPIC" => $view_topic_url) );