<?php /* Smarty version 3.1.27, created on 2023-09-30 12:01:58
         compiled from "/home/u428460938/domains/brucksbanker.org/public_html/tmpl/news.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:93483887165180e363866f6_18676662%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b8c7b8203fe1b8c1556ca84302e63ac77ac9d00d' => 
    array (
      0 => '/home/u428460938/domains/brucksbanker.org/public_html/tmpl/news.tpl',
      1 => 1669618970,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '93483887165180e363866f6_18676662',
  'variables' => 
  array (
    'frm' => 0,
    'news' => 0,
    'n' => 0,
    'colpages' => 0,
    'prev_page' => 0,
    'pages' => 0,
    'p' => 0,
    'next_page' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_65180e363db8c4_48798426',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_65180e363db8c4_48798426')) {
function content_65180e363db8c4_48798426 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/u428460938/domains/brucksbanker.org/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

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



    <section class="news">
        <div class="container">
            <div class="row news-catalog">
<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><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['title']);?>
</b><br>
  <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['full_text']);?>
<br>
  <small><i><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['n']->value['d']);?>
</i></small>
 </td>
</tr>
<?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
}
?>
</table>

<?php if ($_smarty_tpl->tpl_vars['colpages']->value > 1) {?>
<center>
<?php if ($_smarty_tpl->tpl_vars['prev_page']->value > 0) {?>
 <a href="<?php echo smarty_modifier_myescape(encurl("?a=news&page=".((string)$_smarty_tpl->tpl_vars['prev_page']->value)));?>
">&lt;&lt;</a>
<?php }?>
<?php
$_from = $_smarty_tpl->tpl_vars['pages']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['p']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['p']->value) {
$_smarty_tpl->tpl_vars['p']->_loop = true;
$foreach_p_Sav = $_smarty_tpl->tpl_vars['p'];
?>
<?php if ($_smarty_tpl->tpl_vars['p']->value['current'] == 1) {?>
<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['page']);?>

<?php } else { ?>
 <a href="<?php echo smarty_modifier_myescape(encurl("?a=news&page=".((string)$_smarty_tpl->tpl_vars['p']->value['page'])));?>
"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['page']);?>
</a>
<?php }?>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
<?php if ($_smarty_tpl->tpl_vars['next_page']->value > 0) {?>
 <a href="<?php echo smarty_modifier_myescape(encurl("?a=news&page=".((string)$_smarty_tpl->tpl_vars['next_page']->value)));?>
">&gt;&gt;</a>
<?php }?>
</center>
<?php }?>

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

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

}
}
?>