<?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; ?>
<div class="harmony_landingpage_features container">
  <?php if ($allParams['title']) { ?>
    <h3 class="harmony_title"><?php echo $this->translate($allParams['title']); ?></h3>
  <?php } ?>
  <div class="row">
    <div class="col-md-5">
      <div class="harmony_landingpage_features_left">
				<?php if(!empty($allParams['leftphoto'])) { ?>
					<?php $path = Engine_Api::_()->core()->getFileUrl($allParams['leftphoto'], true); ?>
					<img src="<?php echo $path['image']; ?>" height="477" width="515" alt="<?php echo $path['alt_text'] ? $path['alt_text']: 'Features Image'; ?>" />
				<?php } else { ?>
					<img src="<?php echo 'application/modules/Harmony/externals/images/features/featuresleft.png'; ?>" height="477" width="515" alt="Features Image" />
				<?php } ?>
      </div>
    </div>
    <div class="col-md-7">
      <div class="row">
        <?php for ($i = 1; $i <= 4; $i++) { ?>
          <?php if (!empty($allParams['featuresheading' . $i]) || !empty($allParams['headinglink' . $i]) || !empty($allParams['description' . $i])) { ?>
            <div class="col-md-6 harmony_landingpage_features_inner">
              <a <?php if (!empty($allParams['link' . $i])) { ?> href="<?php echo $allParams['link' . $i]; ?>" <?php } else { ?> href="javascript:void(0);" <?php } ?>>
                  <figure>
										<?php if(!empty($allParams['photo' . $i])) { ?>
											<?php $path = Engine_Api::_()->core()->getFileUrl($allParams['photo' . $i], true); ?>
											<img src="<?php echo $path['image']; ?>" height="32" width="32" alt="<?php echo $path['alt_text'] ? $path['alt_text'] : 'Features Icon'; ?>" />
										<?php } else { ?>
											<img src="<?php echo 'application/modules/Harmony/externals/images/features/' . $i . '.png'; ?>" height="32" width="32" alt="Features Icon" />
										<?php } ?>
                  </figure>
                  <?php if (!empty($allParams['featuresheading' . $i])) { ?>
                    <h4>
                      <?php echo $this->translate($allParams['featuresheading' . $i]); ?>
                    </h4>
                  <?php } ?>
                  <?php if (!empty($allParams['description' . $i])) { ?>
                    <p>
                      <?php echo $this->translate($allParams['description' . $i]); ?>
                    </p>
                  <?php } ?>
              </a>
            </div>
          <?php } ?>
        <?php } ?>
      </div>
    </div>
  </div>
</div>