Модуль Вопрос/ответ v1.26.1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
465 B

<h3>{$faq_title}</h3>
{if $questions}
<dl>
{foreach from=$questions item=question}
<dt><p><a href="javascript:void(0);">{$question->faq_quest}</a></p></dt>
<dd>
<h2>{$question->faq_quest}</h2>
{$question->faq_answer}
</dd>
{/foreach}
</dl>
{literal}
<script>
$(document).ready(function() {
$("dd").hide();
$("dt").unbind('click');
$("dt").click(function() {
$(this).toggleClass("highligh").next("dd").slideToggle();
});
});
</script>
{/literal}
{/if}