1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Only display 'Sign in' link when user login is active.

This commit is contained in:
Cameron
2015-03-30 17:13:41 -07:00
parent cf720cb1ca
commit 83b3597401

View File

@@ -97,7 +97,10 @@ class theme_shortcodes extends e_shortcode
}
$socialActive = e107::pref('core', 'social_login_active');
if(!empty($userReg) || !empty($socialActive)) // e107 or social login is active.
{
$text .= '
<li class="divider-vertical"></li>
<li class="dropdown">
@@ -107,8 +110,11 @@ class theme_shortcodes extends e_shortcode
{SOCIAL_LOGIN: size=2x}
';
}
else
{
return '';
}
if(!empty($userReg)) // value of 1 or 2 = login okay.