From 49802bac9de747fa2a1224383929877bfe92e1c0 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Thu, 14 Jun 2012 11:21:34 +0000 Subject: [PATCH] Correct social options shown on signup page now. --- e107_core/shortcodes/batch/signup_shortcodes.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/signup_shortcodes.php b/e107_core/shortcodes/batch/signup_shortcodes.php index 98cdd13c7..969d80181 100755 --- a/e107_core/shortcodes/batch/signup_shortcodes.php +++ b/e107_core/shortcodes/batch/signup_shortcodes.php @@ -53,10 +53,16 @@ class signup_shortcodes extends e_shortcode if(vartrue($pref)) { $text = ""; - $providers = array('facebook','twitter','google','yahoo','blogger'); - foreach($providers as $p) + $providers = e107::getPref('social_login'); + // $providers = array('facebook','twitter','google','yahoo','blogger'); + foreach($providers as $p=>$v) { - $text .= ""; + $p = strtolower($p); + if($v['enabled'] == 1) + { + $text .= ""; + } + //TODO different icon options. see: http://zocial.smcllns.com/ } $text .= "
";