1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Separate {FAQ_SHARE} shortcode added.

This commit is contained in:
Cameron
2019-08-22 09:27:33 -07:00
parent a10e972f88
commit f57aa8ab93

View File

@@ -113,6 +113,19 @@ class faqs_shortcodes extends e_shortcode
}
return $text;
}
function sc_faq_share($parm=null)
{
$tp = e107::getParser();
$url = e107::url('faqs','item', $this->var, 'full');
$question = $tp->toHTML($this->var['faq_question'],true,'TITLE');
return $tp->parseTemplate("{SOCIALSHARE: size=xs&type=basic&url=".$url."&title=".$question."&tags=".$this->var['faq_tags']."}",true);
}
function sc_faq_question_link($parm='')
{