<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<div class="user_login_page">
  <?php $settings = Engine_Api::_()->getApi('settings', 'core'); 
	$user_front = Zend_Registry::isRegistered('user_front') ? Zend_Registry::get('user_front') : null;
	?>
  <?php $image = Engine_Api::_()->getApi('settings', 'core')->getSetting('core.general.landingimage', ''); ?>
  <?php $image = $image ? Engine_Api::_()->core()->getFileUrl($image) : 'application/modules/User/externals/images/login-bg.jpg'; ?>
  <div class="user_login_bg" style="background-image:url(<?php echo $image; ?>);"></div>
  <div class="user_login_form">
    <h3>
      <?php echo $this->translate('Enter Details to Login'); ?>
    </h3>
    <?php echo !empty($user_front) ? $this->form->render($this) : ''; ?>
    <div class="signup_link text-center"><?php echo $this->htmlLink(array('route' => 'user_signup'), $this->translate('Not a Member? <b>Join</b>')) ?></div>
  
    <?php include APPLICATION_PATH .  '/application/modules/User/views/scripts/_recentLoginPage.tpl';?>
  </div>
</div>
<?php include APPLICATION_PATH .  '/application/modules/User/views/scripts/auth/_loginByOtp.tpl';?>
