<?php /* Smarty version 3.1.27, created on 2025-12-31 20:30:41
         compiled from "/home/austintr/public_html/tmpl/news.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:635316059695587f1a102b8_15984273%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ee1501b793ac3948bb25db181fdded5ed5056e59' => 
    array (
      0 => '/home/austintr/public_html/tmpl/news.tpl',
      1 => 1599329152,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '635316059695587f1a102b8_15984273',
  'variables' => 
  array (
    'frm' => 0,
    'new' => 0,
    'news' => 0,
    'n' => 0,
    'pages' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_695587f1a42f12_93291333',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_695587f1a42f12_93291333')) {
function content_695587f1a42f12_93291333 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/austintr/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

$_smarty_tpl->properties['nocache_hash'] = '635316059695587f1a102b8_15984273';
echo $_smarty_tpl->getSubTemplate ("header2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>


       <!-- Blog -->
        <div id="blog" class="one-blog-area four-blog-area pt-100 pb-70">
            <div class="container">
                <div class="one-section-title three-section-title">
                    <span class="sub-title"># NEWS & BLOG</span>
                    <h2>Featured News And Insights</h2>
                </div>
                <div class="row">
                    
<?php if ($_smarty_tpl->tpl_vars['frm']->value['id']) {?>

<?php echo loaddata_smarty(array('name'=>"news_item",'id'=>$_smarty_tpl->tpl_vars['frm']->value['id'],'var'=>'new'),$_smarty_tpl);?>

<?php if ($_smarty_tpl->tpl_vars['new']->value) {?>
<h3><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['new']->value['title']);?>
</h3>
<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['new']->value['full_text']);?>

<?php } else { ?>
Not Found
<?php }?>

<?php } else { ?>


<?php echo loaddata_smarty(array('name'=>"news",'var'=>'news','page'=>$_smarty_tpl->tpl_vars['frm']->value['p'],'limit'=>20,'pages_var'=>'pages'),$_smarty_tpl);?>

<?php
$_from = $_smarty_tpl->tpl_vars['news']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['n'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['n']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['n']->value) {
$_smarty_tpl->tpl_vars['n']->_loop = true;
$foreach_n_Sav = $_smarty_tpl->tpl_vars['n'];
?>
<div class="col-sm-6 col-lg-4">
                        <div class="blog-item">
                            <div class="blog-top">
                                <a href="<?php echo smarty_modifier_myescape(encurl("?a=news#".((string)$_smarty_tpl->tpl_vars['n']->value['id'])));?>
" target="_blank">
                                    <img src="assets/img/news.jpg" alt="Latest News">
                                </a>
                                <span>News #<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['id']);?>
</span>
                            </div>
                            <div class="blog-bottom">
                                <ul>
                                    <li>
                                        <i class='bx bx-time-five'></i>
                                        <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['date']);?>

                                    </li>
                                </ul>
                                <h3>
                                    <a href="<?php echo smarty_modifier_myescape(encurl("?a=news#".((string)$_smarty_tpl->tpl_vars['n']->value['id'])));?>
" target="_blank"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['full_text']);?>
</a>
                                </h3>
                                <img src="assets/img/blog1.png" alt="Blog">
                                <p><a href="#" target="_blank">By</a> Author</p>
                            </div>
                        </div>
                    </div>
                    
<?php
$_smarty_tpl->tpl_vars['n'] = $foreach_n_Sav;
}
if (!$_smarty_tpl->tpl_vars['n']->_loop) {
?>
<tr>
 <td colspan=3 align=center>No news found</td>
</tr>
<?php
}
?>

</div>
<center>
<?php echo paginator(array('col'=>$_smarty_tpl->tpl_vars['pages']->value['col'],'cur'=>$_smarty_tpl->tpl_vars['pages']->value['cur'],'url'=>encurl("?a=news&p=%s")),$_smarty_tpl);?>

</center>

<?php }?>

</div></div>
<?php echo $_smarty_tpl->getSubTemplate ("footer2.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);

}
}
?>