<?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 landing_sunshine_blogs">
  <p><?php echo $this->description; ?></p>
  <div class="row justify-content-center ">
    <?php foreach( $this->paginator as $item ): ?>
      <div class="landing_sunshine_blogs_item">
        <div class="blogs_lp_main">
          <div class='blogs_photo'>
            <?php echo $this->htmlLink($item->getHref(), $this->itemBackgroundPhoto($item, 'thumb.profile')) ?>
          </div>
          <div class="info">
            <div class="title">
              <?php echo $this->htmlLink($item->getHref(), $item->getTitle()) ?>
            </div>
            <div class="description">
            <?php echo $this->string()->truncate($this->string()->stripTags($item->body), 150) ?>
            </div>
            <div class="owner">
              <?php $owner = $item->getOwner(); ?>
              <?php echo $this->htmlLink($owner->getHref(), $this->itemPhoto($owner, 'thumb.icon', $owner->getTitle())) ?>
              <?php echo $this->htmlLink($owner->getHref(), $owner->getTitle());?>
              <?php echo $this->timestamp(strtotime($item->creation_date)); ?>
            </div>
          </div>
        </div>
      </div>
    <?php endforeach; ?>
  </div>
</div>
