From aaba6649833ae514683a26edd5d1ff2cf77659e3 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 10 Mar 2016 18:34:56 -0800 Subject: [PATCH] {SOCIALSHARE} shortcode now allows specific providers to be rendered. eg. {SOCIALSHARE: type=twitter} --- e107_plugins/social/e_shortcode.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/e107_plugins/social/e_shortcode.php b/e107_plugins/social/e_shortcode.php index 7f56b06fc..7c60dc2e0 100644 --- a/e107_plugins/social/e_shortcode.php +++ b/e107_plugins/social/e_shortcode.php @@ -266,6 +266,19 @@ class social_shortcodes extends e_shortcode unset($opt[$v]); } } + elseif(!empty($parm['type'])) + { + $newlist = array(); + $tmp = explode(",",$parm['type']); + foreach($tmp as $v) + { + $newlist[$v] = $opt[$v]; + } + + $opt = $newlist; + + // print_a($opt); + } if(vartrue($parm['dropdown'])) {