<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<style>
	#global_page_core-index-index .layout_middle > .layout_core_landing_page_banner{
		height:<?php echo $this->height; ?>px;
	}
</style>

<?php if(!empty($this->banner->getPhotoUrl())) { ?>
  <?php $bgPhoto = $this->banner->getPhotoUrl(); ?>
<?php } else { ?>
  <?php $bgPhoto = 'application/modules/Core/externals/images/banner-bg.jpg'; ?>
<?php } ?>

<div class="core_landingpage_banner" style="height:<?php echo $this->height; ?>px">
  <section style="height:<?php echo $this->height; ?>px; background-image: url(<?php echo $bgPhoto ?>)">
    <div>
      <h1>
        <?php echo $this->translate($this->banner->getTitle()) ?>
      </h1>
      <?php if( $this->banner->getDescription() ): ?>
        <article>
          <?php echo $this->translate($this->banner->getDescription()) ?>
        </article>
      <?php endif; ?>
      <?php if( $this->banner->getCTALabel() ): ?>
        <a href="<?php echo $this->banner->getCTAHref() ?>">
          <?php echo $this->translate($this->banner->getCTALabel()) ?>
        </a>
      <?php endif; ?>
    </div>
  </section>
</div>
