1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Various updates

git-svn-id: file:///svn/phpbb/trunk@1383 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-11-20 02:24:41 +00:00
parent 5389b2c8ae
commit 0bc6beada8
4 changed files with 51 additions and 5 deletions

View File

@@ -102,14 +102,23 @@ for($i = 0; $i < count($faq_block); $i++)
for($j = 0; $j < count($faq_block[$i]); $j++)
{
$row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
$template->assign_block_vars("faq_block.faq_row", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"FAQ_QUESTION" => $faq_block[$i][$j]['question'],
"FAQ_ANSWER" => $faq_block[$i][$j]['answer'],
"U_FAQ_ID" => $faq_block[$i][$j]['id'])
);
$template->assign_block_vars("faq_block_link.faq_row_link", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"FAQ_LINK" => $faq_block[$i][$j]['question'],
"U_FAQ_LINK" => "#" . $faq_block[$i][$j]['id'])
);
}