mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 18:32:44 +02:00
Correct social options shown on signup page now.
This commit is contained in:
@@ -53,10 +53,16 @@ class signup_shortcodes extends e_shortcode
|
|||||||
if(vartrue($pref))
|
if(vartrue($pref))
|
||||||
{
|
{
|
||||||
$text = "";
|
$text = "";
|
||||||
$providers = array('facebook','twitter','google','yahoo','blogger');
|
$providers = e107::getPref('social_login');
|
||||||
foreach($providers as $p)
|
// $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 />";
|
$text .= "<hr />";
|
||||||
|
Reference in New Issue
Block a user