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

<div class="landing_page_container">
	<p><?php  echo $this->translate($this->description ? $this->description : ""); ?></p>
	<?php $imageArray = array('1' => 'feature-1.png', '2' => 'feature-2.png', '3' => 'feature-3.png', '4' => 'feature-4.png'); ?>
	<?php $allParams = $this->allParams; ?>
	<div class="sunshine_features">
   <div class="row justify-content-center">
      <?php for($i=1;$i<=4;$i++) { ?>
				<?php if(!empty($allParams['fe'.$i.'img']) || !empty($allParams['fe'.$i.'heading']) || !empty($allParams['fe'.$i.'description'])) { ?>
				<div class="sunshine_features_item">
					<article>
						<figure> 
							<?php if(!empty($allParams['fe'.$i.'img'])) { ?>
								<?php $image = Engine_Api::_()->core()->getFileUrl($allParams['fe'.$i.'img'], true) ?>
								<img src="<?php echo $image['image']; ?>" alt="<?php echo $image['alt_text'] ?? ''; ?>" /> 
							<?php } else { ?>
								<?php $image = 'application/themes/sunshine/images/'.$imageArray[$i]; ?>
								<img src="<?php echo $image; ?>" /> 
							<?php } ?>
						</figure>
						<?php if(!empty($allParams['fe'.$i.'heading'])) { ?>
						<h3><?php echo $this->translate($allParams['fe'.$i.'heading']); ?></h3>
						<?php } ?>
						<?php if(!empty($allParams['fe'.$i.'description'])) { ?>
						<p><?php echo $this->translate($allParams['fe'.$i.'description']); ?></p>
						<?php } ?>
					</article>
				</div>
				<?php } ?>
      <?php } ?>
   </div>
	</div>  
</div>

