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

<?php // if (!empty($this->channel)) { ?>
  <div class="admin_home_news admin_home_dashboard_item">
    <div class="admin_home_news_wrapper">
        <?php foreach ($this->channel['items'] as $item) { ?>
        <div class="admin_home_news_main">
          <div class="admin_home_news_item">
              <div class="admin_home_news_info">
                <span class="_blog_date"> <?php echo $this->locale()->toDate(strtotime($item['pubDate']), array('size' => 'long')) ?></span>
                <a href="<?php echo @$item['link'] ? $item['link'] : $item['guid'] ?>" target="_blank">
                <?php echo $item['title'] ?>
                </a>
                <span class="admin_home_news_blurb">
                <?php echo $this->string()->truncate($this->string()->stripTags($item['description']), 100) ?>
                </span>
              </div>
          </div>
        </div>
        <?php } ?>

    </div>
  </div>
<?php //} else { ?>
<?php // } ?>
