diff --git a/modules/faq/faq.php b/modules/faq/faq.php
index 9fffda50..8f9af58b 100755
--- a/modules/faq/faq.php
+++ b/modules/faq/faq.php
@@ -34,116 +34,34 @@ function exec_ogp_module()
echo '
\n";
+
foreach($entries as $category_name => $category_entries)
{
- $categories .= "
$category_name";
- $accordion_entries .= "
$category_name
";
- foreach($category_entries as $index => $item)
+ // Create category navigation link with clean ID
+ $category_id = preg_replace('/[^a-z0-9_]/', '_', strtolower($category_name));
+ $categories .= "
$category_name";
+
+ // Create category section
+ $accordion_entries .= "
$category_name
";
+
+ // Add items for this category
+ foreach($category_entries as $item)
{
- $accordion_entries .= "\t
".
- "$item[title]
\n".
- "\t
\n";
+ $accordion_entries .= "\t
".
+ htmlspecialchars($item['title']) . "
\n".
+ "\t
\n\t\t
" . $item['content'] . "
\n\t
\n";
}
}
$categories .= "";
$accordion_entries .= "
";
- echo $categories.$accordion_entries;
+ echo $categories . $accordion_entries;
echo "