<?php /* Smarty version 3.1.27, created on 2024-03-14 04:58:26
         compiled from "/home/aekwtmoq/public_html/wealthpond.net/tmpl/news.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:31670396965f283f2397ec2_09426690%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f6de4f1c788143a3e94ceb2ef1b151ab274e3c3d' => 
    array (
      0 => '/home/aekwtmoq/public_html/wealthpond.net/tmpl/news.tpl',
      1 => 1587300993,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '31670396965f283f2397ec2_09426690',
  'variables' => 
  array (
    'frm' => 0,
    'new' => 0,
    'news' => 0,
    'n' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_65f283f2442c37_37854858',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_65f283f2442c37_37854858')) {
function content_65f283f2442c37_37854858 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/aekwtmoq/public_html/wealthpond.net/inc/libs/smarty3/plugins/modifier.myescape.php';

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

<div class="col-lg-9">
    <div class="first-content">
        <div class="row">
            <div class="col-lg-12" data-aos="fade-left" data-aos-delay="0">
                <div class="main-title">News</div>
                <div class="main-subtitle">Articles</div>
            </div>
        </div>
        
<?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 { ?>


                    

<div class="row">
            <div class="col-md-12" data-aos="zoom-in" data-aos-delay="0">
                <div class="news-list">
<?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'];
?>

<a name="7">
   <!-- 
</a><a class="news-item"  href="https://centrade.biz/news/id/7"> -->
<div class="news-item__top">
<div class="news-item__date">
<svg>
<use xlink:href="assets/img/sprite.svg#time"></use>
</svg><span><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['date']);?>
</span></div>
                           
</div>
<div class="news-item__title"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['title']);?>
</div>
<div class="news-item__text">
<p><a name="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['id']);?>
"></a><a href="<?php echo smarty_modifier_myescape(encurl("?a=news&id=".((string)$_smarty_tpl->tpl_vars['n']->value['i'])));?>
"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['title']);?>
</a></p>
</div>
<div class="news-item__btn">
<div class="main-btn">Read more</div>
                            <svg>
<use xlink:href="assets/img/sprite.svg#left-arrow"></use>
                            </svg>
                        </div>
                    </a>
<?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>
</div>
</div>
<div class="row" data-aos="fade-left" data-aos-delay="0">
            <div class="col-md-12 d-flex justify-content-end">
                <div class="pagination"><ul class="pagination"><li><a class=" disabled">&lt;&lt;</a></li><li><a class="active">1</a></li><li class="page-item"><a class=" disabled">&gt;&gt;</a></li></ul></div>
            </div>
        </div>
		    </div>
</div>






         </div>
            </div>
        </section>	

<?php }?>

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

}
}
?>