1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 04:10:38 +02:00

Added separate classes for each of the social-share buttons. (allowing for different colors etc. if required)

This commit is contained in:
Cameron
2016-06-21 15:43:07 -07:00
parent d576522ea7
commit 6fc2969577

View File

@@ -259,6 +259,7 @@ class social_shortcodes extends e_shortcode
$twitterAccount = basename(XURL_TWITTER);
$btnClass = varset($parm['btnClass'], 'btn btn-default social-share');
// return print_a($hashtags,true);
@@ -270,6 +271,8 @@ class social_shortcodes extends e_shortcode
continue;
}
$pUrl = str_replace("&","&",$val['url']);
$shareUrl = $tp->lanVars($pUrl,$data);
@@ -290,7 +293,7 @@ class social_shortcodes extends e_shortcode
$opt[$k] = "<a class='".$btnClass." ".$tooltip." ".$butSize."' target='_blank' title='".$val["title"]."' href='".$shareUrl."'>".$tp->toIcon($val["icon"], array('fw'=>1))."</a>";
$opt[$k] = "<a class='".$btnClass." ".$tooltip." ".$butSize." social-share-".$k."' target='_blank' title='".$val["title"]."' href='".$shareUrl."'>".$tp->toIcon($val["icon"], array('fw'=>1))."</a>";
}
// Show only Email, Facebook, Twitter and Google.