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:
parent
d30135e026
commit
aaba664983
@ -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']))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user