mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 07:01:22 +02:00
Added alternating row color/class for topicrow
git-svn-id: file:///svn/phpbb/trunk@1425 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -563,6 +563,10 @@ if( $total_topics )
|
|||||||
|
|
||||||
$views = $topic_rowset[$i]['topic_views'];
|
$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(
|
$template->assign_block_vars("topicrow", array(
|
||||||
"FORUM_ID" => $forum_id,
|
"FORUM_ID" => $forum_id,
|
||||||
"TOPIC_ID" => $topic_id,
|
"TOPIC_ID" => $topic_id,
|
||||||
@@ -575,6 +579,8 @@ if( $total_topics )
|
|||||||
"TOPIC_TYPE" => $topic_type,
|
"TOPIC_TYPE" => $topic_type,
|
||||||
"VIEWS" => $views,
|
"VIEWS" => $views,
|
||||||
"LAST_POST" => $last_post,
|
"LAST_POST" => $last_post,
|
||||||
|
"ROW_COLOR" => $row_color,
|
||||||
|
"ROW_CLASS" => $row_class,
|
||||||
|
|
||||||
"U_VIEW_TOPIC" => $view_topic_url)
|
"U_VIEW_TOPIC" => $view_topic_url)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user