<?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="fbclone_blog_main">
  <div class="container fbclone_blog_main_inner">
    <?php if($allParams['title']) { ?> 
      <h3><?php echo $this->translate($allParams['title']); ?></h3>
    <?php } ?>
    <div class="row justify-content-center ewide_main_blogs">
      <?php foreach($this->paginator as $item) { ?>
        <div class="col-lg-4 col-md-4 col-sm-12 col-12">
          <div class="ewide_blog_item">
            <article>
              <div class="_img">
              <?php echo $this->htmlLink($item->getHref(), $this->itemBackgroundPhoto($item, 'thumb.profile')) ?>
              </div>
              <div class="_cont">
                <div class="_head">
                  <a href="<?php echo $item->getHref(); ?>"><?php echo $this->translate($item->getTitle()); ?></a>
                </div>
                <div class="_des">
                  <?php echo $this->string()->truncate($this->string()->stripTags($item->body), 100) ?>
                </div>
                <div class="owner">
                  <?php
                    $owner = $item->getOwner();
                    echo $this->translate('By %1$s', $this->htmlLink($owner->getHref(), $owner->getTitle()));
                  ?>
                </div>
              </div>
            </article>
          </div>
        </div>
      <?php } ?> 
    </div>
  </div>
</div>
