From 01f0a5d16c4bf0092feb68a841bfa564757dd064 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 15 Sep 2001 23:51:41 +0000 Subject: Added theme row colour/class support git-svn-id: file:///svn/phpbb/trunk@1046 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_words.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'phpBB/admin/admin_words.php') diff --git a/phpBB/admin/admin_words.php b/phpBB/admin/admin_words.php index 5d660a78c0..2b53198b49 100644 --- a/phpBB/admin/admin_words.php +++ b/phpBB/admin/admin_words.php @@ -209,7 +209,12 @@ else $replacement = $word_rows[$i]['replacement']; $word_id = $word_rows[$i]['word_id']; + $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; + $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; + $template->assign_block_vars("words", array( + "ROW_COLOR" => "#" . $row_color, + "ROW_CLASS" => $row_class, "WORD" => $word, "REPLACEMENT" => $replacement, "U_WORD_EDIT" => append_sid("admin_words.$phpEx?mode=edit&id=$word_id"), -- cgit v1.2.1