mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Separate {FAQ_SHARE} shortcode added.
This commit is contained in:
@@ -114,6 +114,19 @@ class faqs_shortcodes extends e_shortcode
|
|||||||
return $text;
|
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='')
|
function sc_faq_question_link($parm='')
|
||||||
{
|
{
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
Reference in New Issue
Block a user