AntonLV 9 yıl önce
ebeveyn
işleme
ac36e6281e

+ 1 - 1
template/auth.html

@@ -1,6 +1,6 @@
 <bx_repeat:buttons>
 <div class="sys-auth __class__ bx-def-margin-sec-bottom bx-clearfix">
-	<a class="bx-btn" href="__href__"<bx_if:show_onclick> onclick="__onclick__"</bx_if:show_onclick>>
+	<a class="bx-btn" href="__href__"<bx_if:show_onclick> onclick="__onclick__"</bx_if:show_onclick> title="__title_alt__">
 		<bx_if:show_icon><i class="sys-icon __icon__"></i></bx_if:show_icon><bx_if:show_title><u>__title__</u></bx_if:show_title>
 	</a>
 </div>

+ 3 - 1
template/scripts/BxBaseServiceAccount.php

@@ -29,7 +29,9 @@ class BxBaseServiceAccount extends BxDol
         if (!isset($aParams['no_login_text']) || (int)$aParams['no_login_text'] == 1)
             $sLoginText = '<hr class="bx-def-hr bx-def-margin-sec-topbottom" /><div>' . _t('_sys_txt_join_description', BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=login')) . '</div>';
 
-        return $this->_oAccountForms->createAccountForm($aParams) . $sLoginText;
+        $sAuth = BxDolService::call('system', 'MemberAuthCode', array(), 'TemplServiceLogin');
+
+        return $sAuth . $this->_oAccountForms->createAccountForm($aParams) . $sLoginText;
     }
 
     public function serviceAccountSettingsEmail ($iAccountId = false)

+ 7 - 6
template/scripts/BxBaseServiceLogin.php

@@ -22,8 +22,11 @@ class BxBaseServiceLogin extends BxDol
         return $n*2;
     }
 
-    public function serviceMemberAuthCode($aAuthTypes)
+    public function serviceMemberAuthCode($aAuthTypes = array())
     {
+        if(empty($aAuthTypes) || !is_array($aAuthTypes))
+            $aAuthTypes = BxDolDb::getInstance()->fromCache('sys_objects_auths', 'getAll', 'SELECT * FROM `sys_objects_auths`');
+
         $bCompact = getParam('site_login_social_compact') == 'on';
 
         $aTmplButtons = array();
@@ -33,6 +36,7 @@ class BxBaseServiceLogin extends BxDol
             $aTmplButtons[] = array(
             	'class' => $bCompact ? 'sys-auth-compact bx-def-margin-sec-left-auto' : '',
                 'href' => !empty($aItems['Link']) ? BX_DOL_URL_ROOT . $aItems['Link'] : 'javascript:void(0)',
+                'title_alt' => bx_html_attribute($sTitle),
                 'bx_if:show_onclick' => array(
                     'condition' => !empty($aItems['OnClick']),
                     'content' => array(
@@ -71,11 +75,8 @@ class BxBaseServiceLogin extends BxDol
 
     public function serviceLoginForm ($sParams = '', $sForceRelocate = '')
     {
-        if (isLogged()) {
+        if(isLogged())
             return false;
-        }
-        // get all auth types
-        $aAuthTypes = BxDolDb::getInstance()->fromCache('sys_objects_auths', 'getAll', 'SELECT * FROM `sys_objects_auths`');
 
         $oForm = BxDolForm::getObjectInstance('sys_login', 'sys_login');
 
@@ -97,7 +98,7 @@ class BxBaseServiceLogin extends BxDol
 
         BxDolTemplate::getInstance()->addJs(array('jquery.form.min.js'));
 
-        $sAuth = $this->serviceMemberAuthCode($aAuthTypes);
+        $sAuth = $this->serviceMemberAuthCode();
 
         return $sCustomHtmlBefore . $sAuth . $sFormCode . $sCustomHtmlAfter . $sJoinText;