1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

{SOCIALSHARE} shortcode now allows specific providers to be rendered. eg. {SOCIALSHARE: type=twitter}

This commit is contained in:
Cameron 2016-03-10 18:34:56 -08:00
parent d30135e026
commit aaba664983

View File

@ -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']))
{