AntonLV 7 년 전
부모
커밋
98e733bebc
1개의 변경된 파일과 5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      template/scripts/BxBasePageHome.php

+ 5 - 2
template/scripts/BxBasePageHome.php

@@ -55,8 +55,11 @@ class BxBasePageHome extends BxTemplPage
         if(strpos($aBlock['title'], 'splash') !== false) {
             $oPermalink = BxDolPermalinks::getInstance();
 
-            $sJoinForm = BxDolService::call('system', 'create_account_form', array(), 'TemplServiceAccount');
-            $sLoginForm = BxDolService::call('system', 'login_form', array(), 'TemplServiceLogin');
+            $sJoinForm = $sLoginForm = '';
+            if(!isLogged()) {
+                $sJoinForm = BxDolService::call('system', 'create_account_form', array(), 'TemplServiceAccount');
+                $sLoginForm = BxDolService::call('system', 'login_form', array(), 'TemplServiceLogin');
+            }
 
             $oTemplate = BxDolTemplate::getInstance();
             $oTemplate->addJs(array('lottie.min.js'));