From f57aa8ab932cde4b3535ba89d4e039bb3daa264c Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 22 Aug 2019 09:27:33 -0700 Subject: [PATCH] Separate {FAQ_SHARE} shortcode added. --- e107_plugins/faqs/faqs_shortcodes.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/e107_plugins/faqs/faqs_shortcodes.php b/e107_plugins/faqs/faqs_shortcodes.php index 1cf6dd0e1..6784de7fb 100644 --- a/e107_plugins/faqs/faqs_shortcodes.php +++ b/e107_plugins/faqs/faqs_shortcodes.php @@ -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='') {