1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Correct social options shown on signup page now.

This commit is contained in:
CaMer0n
2012-06-14 11:21:34 +00:00
parent 1921e5ab93
commit 49802bac9d

View File

@@ -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 .= "<a href='".e_BASE."index.php?provider={$p}'><img class='e-tip' title='Register using your {$p} account' src='".e_HANDLER."hybridauth/icons/{$p}.png' alt='' /></a>";
$p = strtolower($p);
if($v['enabled'] == 1)
{
$text .= "<a href='".e_BASE."index.php?provider={$p}'><img class='e-tip' title='Register using your {$p} account' src='".e_HANDLER."hybridauth/icons/{$p}.png' alt='' /></a>";
}
//TODO different icon options. see: http://zocial.smcllns.com/
}
$text .= "<hr />";