diff --git a/e107_core/shortcodes/batch/signup_shortcodes.php b/e107_core/shortcodes/batch/signup_shortcodes.php
index fe393ef5a..3ffadb000 100755
--- a/e107_core/shortcodes/batch/signup_shortcodes.php
+++ b/e107_core/shortcodes/batch/signup_shortcodes.php
@@ -66,8 +66,10 @@ class signup_shortcodes extends e_shortcode
$pref = e107::getPref('social_login_active');
$tp = e107::getParser();
- $size = empty($parm['size']) ? '3x' : $parm['size'];
-
+ $size = empty($parm['size']) ? '3x' : $parm['size'];
+ $class = empty($parm['class']) ? 'btn btn-primary' : $parm['class'] ;
+
+
if(!empty($pref))
{
$text = "";
@@ -90,8 +92,8 @@ class signup_shortcodes extends e_shortcode
// 'signup' Creates a new XUP user if not found, otherwise it logs the person in.
- $button = (defset('FONTAWESOME') === 4) ? $tp->toGlyph('fa-'.$ic, array('size'=>$size)) : "";
- $text .= " ".$button." ";
+ $button = (defset('FONTAWESOME') === 4) ? $tp->toGlyph('fa-'.$ic, array('size'=>$size, 'fw'=>true)) : "";
+ $text .= " ".$button." ";
}
//TODO different icon options. see: http://zocial.smcllns.com/
}
@@ -106,6 +108,8 @@ class signup_shortcodes extends e_shortcode
{
$pref = e107::getPref('social_login_active');
$tp = e107::getParser();
+
+
if(!empty($pref))
{
@@ -120,8 +124,11 @@ class signup_shortcodes extends e_shortcode
$class .= ' btn-lg';
}
+
foreach($providers as $p=>$v)
{
+
+
$p = strtolower($p);
if($v['enabled'] == 1)
{
@@ -131,8 +138,8 @@ class signup_shortcodes extends e_shortcode
{
$ic = 'windows';
}
-
- $button = (defset('FONTAWESOME') === 4) ? "".$tp->toGlyph('fa-'.$ic, array('size'=>$size))."" : "";
+
+ $button = (defset('FONTAWESOME') === 4) ? "".$tp->toGlyph('fa-'.$ic, array('size'=>$size, 'fw'=>true))."" : "";
$text .= " ".$button." ";
}
diff --git a/e107_plugins/social/e_shortcode.php b/e107_plugins/social/e_shortcode.php
index d66e663df..6986fda97 100644
--- a/e107_plugins/social/e_shortcode.php
+++ b/e107_plugins/social/e_shortcode.php
@@ -164,10 +164,12 @@ class social_shortcodes extends e_shortcode
function sc_social_login($parm=null)
{
$pref = e107::pref('core', 'social_login_active');
-
+
+
+
if(empty($pref))
{
- return;
+ return null;
}
$sc = e107::getScBatch('signup');