1
0
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:
Cameron
2016-03-11 17:30:17 -08:00
parent f23a016111
commit b2fd2942da
4 changed files with 68 additions and 25 deletions

View File

@@ -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)