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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user