<?php
   /**
    * news
    *
    * @package Wojo Framework
    * @author wojoscripts.com
    * @copyright 2023
    * @version 5.50: news.tpl.php, v1.00 7/12/2023 10:30 AM Gewa Exp $
    *
    */
   if (!defined('_WOJO')) {
      die('Direct access to this location is not allowed.');
   }
?>
<h2 class="margin-big-bottom"><?php echo Language::$word->NW_LATEST; ?></h2>
<?php if ($this->data): ?>
   <div class="wojo celled very relaxed list">
      <?php foreach ($this->data as $row): ?>
         <div class="item">
            <i class="icon newspaper"></i>
            <div class="content">
               <div class="text-size-small">
                  <?php echo Date::doDate('long_date', $row->created); ?>
               </div>
               <div class="text-weight-700"><?php echo $row->title; ?></div>
               <?php echo Url::out_url($row->body); ?></div>
         </div>
      <?php endforeach; ?>
   </div>
<?php endif; ?>