aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-11-23 09:31:59 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-11-23 09:31:59 +0000
commitac3757bad047b334fb77aa6552b13c8a6931ea6c (patch)
treea9d284acf3f3e55ee714d622f2e7c680cc85f8de
parent74d694afce6b2cb6ae97bf396c52804aa3bad79f (diff)
downloadforums-ac3757bad047b334fb77aa6552b13c8a6931ea6c.tar
forums-ac3757bad047b334fb77aa6552b13c8a6931ea6c.tar.gz
forums-ac3757bad047b334fb77aa6552b13c8a6931ea6c.tar.bz2
forums-ac3757bad047b334fb77aa6552b13c8a6931ea6c.tar.xz
forums-ac3757bad047b334fb77aa6552b13c8a6931ea6c.zip
Added alternating row color/class for topicrow
git-svn-id: file:///svn/phpbb/trunk@1425 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/viewforum.php6
1 files changed, 6 insertions, 0 deletions
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 .= "<a href=\"" . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $topic_rowset[$i]['topic_last_post_id']) . "#" . $topic_rowset[$i]['topic_last_post_id'] . "\"><img src=\"" . $images['icon_latest_reply'] . "\" border=\"0\" alt=\"" . $lang['View_latest_post'] . "\" /></a>";
$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)
);