1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 21:21:54 +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

@ -57,6 +57,16 @@ class faqs_shortcodes extends e_shortcode
{
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='')