From 6173475cce25c86f8ba40093122a5414fc99b830 Mon Sep 17 00:00:00 2001 From: Repellent Date: Wed, 18 Mar 2026 18:18:38 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20Id=20=D1=80=D1=83=D0=B1=D1=80=D0=B8=D0=BA=20=D0=B2=20?= =?UTF-8?q?=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD=20=D0=BF=D1=83=D0=B1=D0=BB?= =?UTF-8?q?=D0=B8=D1=87=D0=BD=D0=BE=D0=B9=20=D1=87=D0=B0=D1=81=D1=82=D0=B8?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/faq.php | 1 + templates/show_faq.tpl | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/class/faq.php b/class/faq.php index 4993ae3..109e727 100644 --- a/class/faq.php +++ b/class/faq.php @@ -252,6 +252,7 @@ class Faq $AVE_Template->assign($faq); $AVE_Template->assign('questions', $questions); + $AVE_Template->assign('faq_id', (int)$id); } /** diff --git a/templates/show_faq.tpl b/templates/show_faq.tpl index e1328f8..1e3cf0e 100644 --- a/templates/show_faq.tpl +++ b/templates/show_faq.tpl @@ -1,15 +1,22 @@

{$faq_title}

{if $questions} -
+
{foreach from=$questions item=question name=faq}
-

-

-
+
{$question->faq_answer}
@@ -19,4 +26,4 @@
{else}
{#FAQ_NO_QUESTIONS#}
-{/if} +{/if} \ No newline at end of file