mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Only display 'Sign in' link when user login is active.
This commit is contained in:
@@ -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 .= '
|
$text .= '
|
||||||
<li class="divider-vertical"></li>
|
<li class="divider-vertical"></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
@@ -107,8 +110,11 @@ class theme_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
{SOCIAL_LOGIN: size=2x}
|
{SOCIAL_LOGIN: size=2x}
|
||||||
';
|
';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(!empty($userReg)) // value of 1 or 2 = login okay.
|
if(!empty($userReg)) // value of 1 or 2 = login okay.
|
||||||
|
Reference in New Issue
Block a user