1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

{FAQ_HIDE} added for manual collapse/expand management via template.

This commit is contained in:
Cameron
2019-08-22 10:27:27 -07:00
parent d02ede9750
commit c3b3b0077c

View File

@@ -58,6 +58,16 @@ class faqs_shortcodes extends e_shortcode
return $this->counter; return $this->counter;
} }
function sc_faq_hide($parm=null)
{
if(empty($parm))
{
$parm = 'collapse';
}
return ($this->item != $this->var['faq_id']) ? $parm : '';
}
function sc_faq_question($parm='') function sc_faq_question($parm='')
{ {