diff --git a/phpBB/faq.php b/phpBB/faq.php index 574689ee2b..f78fbd0424 100644 --- a/phpBB/faq.php +++ b/phpBB/faq.php @@ -34,6 +34,20 @@ init_userprefs($userdata); // include($phpbb_root_path . 'includes/page_header.'.$phpEx); +include($phpbb_root_path . 'language/faq_' . $board_config['default_lang'] . '.' . $phpEx); + +$template->set_filenames(array( + "body" => "faq_body.tpl") +); + +$template->assign_vars(array("L_FAQ" => $lang['FAQ'])); + +for($i = 0; $i < count($faq); $i++) +{ + $template->assign_block_vars("faqrow", array("FAQ_QUESTION" => $faq[$i][0], "FAQ_ANSWER" => $faq[$i][1])); +} + +$template->pparse("body"); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); diff --git a/phpBB/language/faq_english.php b/phpBB/language/faq_english.php new file mode 100755 index 0000000000..144323e216 --- /dev/null +++ b/phpBB/language/faq_english.php @@ -0,0 +1,44 @@ + + \ No newline at end of file diff --git a/phpBB/templates/subSilver/faq_body.tpl b/phpBB/templates/subSilver/faq_body.tpl new file mode 100755 index 0000000000..cd68f3dce1 --- /dev/null +++ b/phpBB/templates/subSilver/faq_body.tpl @@ -0,0 +1,16 @@ +
{L_FAQ} | +|
---|---|
{faqrow.FAQ_QUESTION} + + {faqrow.FAQ_ANSWER} + |
+ |
![]() |
+