mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
Sitedown shortcodes upgraded to v2.x spec. Bootstrap css added by default.
This commit is contained in:
@@ -53,6 +53,7 @@ class social_shortcodes extends e_shortcode
|
||||
public $var;
|
||||
/**
|
||||
* {XURL_ICONS: size=2x}
|
||||
* {XURL_ICONS: type=facebook,twitter,vimeo}
|
||||
*/
|
||||
function sc_xurl_icons($parm='')
|
||||
{
|
||||
@@ -76,6 +77,19 @@ class social_shortcodes extends e_shortcode
|
||||
$class = (vartrue($parm['size'])) ? 'fa-'.$parm['size'] : '';
|
||||
$tooltipPos = vartrue($parm['tip-pos'], 'top');
|
||||
|
||||
if(!empty($parm['type']))
|
||||
{
|
||||
$newList = array();
|
||||
$tmp = explode(",",$parm['type']);
|
||||
foreach($tmp as $v)
|
||||
{
|
||||
$newList[$v] = $social[$v];
|
||||
|
||||
}
|
||||
|
||||
$social = $newList;
|
||||
}
|
||||
|
||||
$text = '';
|
||||
|
||||
foreach($social as $id => $data)
|
||||
|
Reference in New Issue
Block a user