<?php /* Smarty version 3.1.27, created on 2021-01-21 15:51:27
         compiled from "/home/admin/web/surextrade.co/public_html/tmpl/news.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:5076535296009a2ffc45136_94424998%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7183990905484e4880d479443d013bb7138f1d21' => 
    array (
      0 => '/home/admin/web/surextrade.co/public_html/tmpl/news.tpl',
      1 => 1589857456,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5076535296009a2ffc45136_94424998',
  'variables' => 
  array (
    'settings' => 0,
    'frm' => 0,
    'new' => 0,
    'news' => 0,
    'n' => 0,
    'pages' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_6009a2ffca6498_31842452',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_6009a2ffca6498_31842452')) {
function content_6009a2ffca6498_31842452 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/admin/web/surextrade.co/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

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

<header class="masthead text-white text-center"style="margin-bottom: 120px;">
<div id="particles-js"></div>
<div class="container my-auto">

<div class="module__top__content  column">
<span style="
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 600;
    margin-bottom: 24px;
">Newsroom
 </span><h2 class=" title text-white  text-center mb-3">Latest <co style="
    color: #46c4c4;
">Updates</co></h2>
<p>In newsroom you will get the all latest updates of <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['site_name']);?>
.</br>
Please keep visiting this section to stay updated.</br>
You can also follow us on different social media platforms to get updates.
</p>

<a class="btn" href="?a=login">Login</a>

</div>
</div>
</header>

    
<?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="my-5">
<div class="container">
<div class="row">
<div class="col-12 ">
<h3></h3><br><div class="card">
<table cellspacing=1 cellpadding=2 border=0 width=100<?php echo '%>';?>
<?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'];
?>
<tr>
 <td align=justify><a name="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['id']);?>
"></a><b><h2 class=" title text-white text-center mb-3" ><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></h2></b>
 <div class="card" style="border-style: double; border-style: solid;
  border-color: red; ">

<h5 style="margin-top: 20px;"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['date']);?>
</h5><br><br>

 <h4><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['full_text']);?>
</h4>

 </div>
</td>
</tr>
 
<?php
$_smarty_tpl->tpl_vars['n'] = $foreach_n_Sav;
}
if (!$_smarty_tpl->tpl_vars['n']->_loop) {
?>
 <br><br><br>
<tr>
 <td colspan=3 align=center>No news found</td>
</tr>
<?php
}
?>

</table>


<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>
</div>
</div>
</div>



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

}
}
?>