<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<div class="core_banner_<?php echo $this->banner->name ?>" <?php if( $this->banner->getPhotoUrl() ): ?> style="background-image: url(<?php echo $this->banner->getPhotoUrl()?>)" <?php endif;?>>
  <section>
    <div>
      <?php if( !empty($this->banner->params['partial']) ): ?>
        <?php echo $this->view->partial($this->banner->params['partial'], array(
          'banner' => $this->banner
        )); ?>
      <?php else: ?>
				<?php if(@$this->banner->caption): ?>
					<h1>
						<?php echo $this->translate($this->banner->caption) ?>
					</h1>
				<?php endif; ?>
        <?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; ?>
      <?php endif; ?>
    </div>
  </section>
</div>
