mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
{SOCIALSHARE} shortcode now allows specific providers to be rendered. eg. {SOCIALSHARE: type=twitter}
This commit is contained in:
@@ -266,6 +266,19 @@ class social_shortcodes extends e_shortcode
|
|||||||
unset($opt[$v]);
|
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']))
|
if(vartrue($parm['dropdown']))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user