<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>

<?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="landing_banner" style="background-image: url(<?php echo $bgPhoto; ?>)">
   <div class="container">
      <div class="landing_banner_content">
         <h1><?php echo $this->translate($this->banner->getTitle()) ; ?></h1>
         <?php if( $this->banner->getDescription() ): ?>
         <p><?php echo $this->translate($this->banner->getDescription()) ?></p>
         <?php endif; ?>
         <?php if( $this->banner->getCTALabel() ): ?>
          <a class="btn" href="<?php echo $this->banner->getCTAHref() ?>">
            <?php echo $this->translate($this->banner->getCTALabel()) ?>
          </a>
        <?php endif; ?>
      </div>
   </div>
</div>