1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Social fixes

This commit is contained in:
CaMer0n
2012-06-14 11:16:13 +00:00
parent f960364d7f
commit 1921e5ab93
3 changed files with 9 additions and 9 deletions

View File

@@ -42,21 +42,21 @@ class signup_shortcodes extends e_shortcode
function sc_signup_xup() // show it to those who were using xup
{
return $this->sc_single_login();
return $this->sc_social_login();
}
function sc_single_login()
function sc_social_login()
{
$pref['single_login_active'] = 1;
if(vartrue($pref['single_login_active']))
$pref = e107::getPref('social_login_active');
if(vartrue($pref))
{
$text = "";
$providers = array('facebook','twitter','google','yahoo','blogger');
foreach($providers as $p)
{
$text .= "<a href='".e_SELF."?provider={$p}'><img class='e-tip' title='Register using your {$p} account' src='".e_HANDLER."hybridauth/icons/{$p}.png' alt='' /></a>";
$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>";
}
$text .= "<hr />";