aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/faq.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/faq.php')
-rw-r--r--phpBB/faq.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/phpBB/faq.php b/phpBB/faq.php
index 5c8a649a7f..04778aa03a 100644
--- a/phpBB/faq.php
+++ b/phpBB/faq.php
@@ -96,31 +96,25 @@ for($i = 0; $i < count($faq_block); $i++)
$template->assign_block_vars('faq_block', array(
'BLOCK_TITLE' => $faq_block_titles[$i])
);
+
$template->assign_block_vars('faq_block_link', array(
'BLOCK_TITLE' => $faq_block_titles[$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_COUNT' => $j,
- 'ROW_COLOR' => '#' . $row_color,
- 'ROW_CLASS' => $row_class,
'FAQ_QUESTION' => $faq_block[$i][$j]['question'],
'FAQ_ANSWER' => $faq_block[$i][$j]['answer'],
+ 'S_ROW_COUNT' => $j,
'U_FAQ_ID' => $faq_block[$i][$j]['id'])
);
$template->assign_block_vars('faq_block_link.faq_row_link', array(
- 'ROW_COUNT' => $j,
- 'ROW_COLOR' => '#' . $row_color,
- 'ROW_CLASS' => $row_class,
'FAQ_LINK' => $faq_block[$i][$j]['question'],
+ 'S_ROW_COUNT' => $j,
'U_FAQ_LINK' => '#' . $faq_block[$i][$j]['id'])
);
}