mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Reduced the number of default social share buttons.
This commit is contained in:
@@ -241,7 +241,8 @@ class social_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
if(empty($parm['providers'])) // No parms so use prefs instead.
|
if(empty($parm['providers'])) // No parms so use prefs instead.
|
||||||
{
|
{
|
||||||
$parm['providers'] = !empty($pref['sharing_providers']) ? array_keys($pref['sharing_providers']) : array_keys($providers);
|
$defaultProviders = array('email' ,'facebook-like', 'facebook-share', 'twitter', 'google-plus1', 'pinterest' , 'stumbleupon', 'reddit', 'digg' );
|
||||||
|
$parm['providers'] = !empty($pref['sharing_providers']) ? array_keys($pref['sharing_providers']) : $defaultProviders;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user