<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<?php $allParams = $this->allParams;
$settings = Engine_Api::_()->getApi('settings', 'core');
?>
<style>
  .layout_page_header{
    display:none;
  }
</style>
<div class="twitterclone_landingpage">
  <div class="twitterclone_landingpage_inner">
    <div class="twitterclone_landingpage_left">
      <div class="landing_page_logo">
        <?php echo $this->content()->renderWidget("core.menu-logo", array("logo" => $allParams['lightlogo'])); ?>
      </div>
      <?php if ($this->accessibility_option) { ?>
        <div class="contrast_landing_page_logo">
          <?php echo $this->content()->renderWidget("core.menu-logo", array("logo" => $allParams['darklogo'])); ?>
        </div>
      <?php } ?>
    </div>
    <div class="twitterclone_landingpage_right">
      <?php if ($allParams['title']) { ?>
        <div class="lp_title"><?php echo $this->translate($allParams['title']); ?></div>
      <?php } ?>
      <?php if ($allParams['subtitle']) { ?>
        <div class="lp_subtitle"><?php echo $this->translate($allParams['subtitle']); ?></div>
      <?php } ?>
      <?php if(($settings->core_facebook_enable == 'login' && $settings->core_facebook_appid && $settings->core_facebook_secret) || ($settings->core_twitter_enable == 'login' && $settings->core_twitter_key && $settings->core_twitter_secret)  || ($settings->core_google_enable == 'login' && $settings->core_google_clientid && $settings->core_google_clientsecret) || ($settings->core_linkedin_enable == 'login' && $settings->core_linkedin_access && $settings->core_linkedin_secret)) { ?>
        <div class="twitterclone_landingpage_social_login mt-3">
          <ul>
            <?php if ($settings->core_facebook_enable == 'login' && $settings->core_facebook_appid && $settings->core_facebook_secret) { ?>
              <li>
                <?php echo User_Model_DbTable_Facebook::loginButton(); ?>
              </li>
            <?php } ?>
            <?php if ($settings->core_twitter_enable == 'login' && $settings->core_twitter_key && $settings->core_twitter_secret) { ?>
              <li>
                <?php echo User_Model_DbTable_Twitter::loginButton(); ?>
              </li>
            <?php } ?>
            <?php if ($settings->core_google_enable == 'login' && $settings->core_google_clientid && $settings->core_google_clientsecret) { ?>
              <li>
                <?php echo User_Model_DbTable_Google::loginButton(); ?>
              </li>
            <?php } ?>
            <?php if ($settings->core_linkedin_enable == 'login' && $settings->core_linkedin_access && $settings->core_linkedin_secret) { ?>
              <li>
                <?php echo User_Model_DbTable_Linkedin::loginButton(); ?>
              </li>
            <?php } ?>
          </ul>
          <div class="landing_page-or mt-3">
            <span><?php echo $this->translate("or"); ?></span>
          </div>
        </div>
      <?php } ?>
      <a href="signup" class="lp_signup"><?php echo $this->translate("Create Account"); ?></a>
      <a href="login" class="lp_login"><?php echo $this->translate("Sign In"); ?></a>
    </div>
  </div>
</div>