<?php /* Smarty version 3.1.27, created on 2019-03-09 14:33:01
         compiled from "/home/hyipsour/public_html/tmpl/directory.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:2662502845c83ce9d830909_18605202%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fa60d2864d7954f8715574c51c290860c9405843' => 
    array (
      0 => '/home/hyipsour/public_html/tmpl/directory.tpl',
      1 => 1534608042,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2662502845c83ce9d830909_18605202',
  'variables' => 
  array (
    'frm' => 0,
    'cats' => 0,
    'path' => 0,
    'p' => 0,
    'cat' => 0,
    'links' => 0,
    'l' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_5c83ce9d95b941_60358512',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_5c83ce9d95b941_60358512')) {
function content_5c83ce9d95b941_60358512 ($_smarty_tpl) {
if (!is_callable('smarty_block_t')) require_once '/home/hyipsour/public_html/inc/libs/smarty3/plugins/block.t.php';
if (!is_callable('smarty_modifier_encurl')) require_once '/home/hyipsour/public_html/inc/libs/smarty3/plugins/modifier.encurl.php';

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

<div class="directory">

<h3><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Links Directory<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</h3>

<?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == 'added') {?>
<div class="ok"><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Thank you. Your link has been accepted and will be alive after admin approve it.<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</div>
<?php }?>

<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['c'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['c']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['name'] = 'c';
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['cats']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['c']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['c']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['c']['total']);
?>
<div class="subs"><a href="<?php echo smarty_modifier_encurl("?a=directory&cat=".((string)$_smarty_tpl->tpl_vars['cats']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['id']));?>
"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['cats']->value[$_smarty_tpl->getVariable('smarty')->value['section']['c']['index']]['name'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</a></div>
<?php if ($_smarty_tpl->getVariable('smarty')->value['section']['c']['index']%2 == 1) {?><div class="clearall"></div><?php }?>
<?php endfor; endif; ?>
<div class="clearall"></div>

<div class="list">
 <div class="header clearfix">
 <h1><a href="<?php echo smarty_modifier_encurl("?a=directory");?>
">Main</a> <?php
$_from = $_smarty_tpl->tpl_vars['path']->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'];
?> :: <a href="<?php echo smarty_modifier_encurl("?a=directory&cat=".((string)$_smarty_tpl->tpl_vars['p']->value['id']));?>
"><?php echo $_smarty_tpl->tpl_vars['p']->value['name'];?>
</a><?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?></h1>
 <a href="<?php echo smarty_modifier_encurl("?a=directory&action=add_form&cat=".((string)$_smarty_tpl->tpl_vars['cat']->value['id']));?>
" class="staff"><?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Add Link<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</a>
 </div>
</div>
<br>
<?php if ($_smarty_tpl->tpl_vars['links']->value) {?>
<?php
$_from = $_smarty_tpl->tpl_vars['links']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['l'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['l']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['l']->value) {
$_smarty_tpl->tpl_vars['l']->_loop = true;
$foreach_l_Sav = $_smarty_tpl->tpl_vars['l'];
?>
<div class="link clearfix">
   <div class="info">
   <a href="<?php echo smarty_modifier_encurl("?a=directory&out=".((string)$_smarty_tpl->tpl_vars['l']->value['id']));?>
"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['l']->value['title'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</a>
   <?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array('date'=>$_smarty_tpl->tpl_vars['l']->value['fdate'],'in'=>$_smarty_tpl->tpl_vars['l']->value['t_in'],'out'=>$_smarty_tpl->tpl_vars['l']->value['t_out'])); $_block_repeat=true; echo smarty_block_t(array('date'=>$_smarty_tpl->tpl_vars['l']->value['fdate'],'in'=>$_smarty_tpl->tpl_vars['l']->value['t_in'],'out'=>$_smarty_tpl->tpl_vars['l']->value['t_out']), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
(Added: %date - In/Out: %in/%out)<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array('date'=>$_smarty_tpl->tpl_vars['l']->value['fdate'],'in'=>$_smarty_tpl->tpl_vars['l']->value['t_in'],'out'=>$_smarty_tpl->tpl_vars['l']->value['t_out']), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<br>
   <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['l']->value['description'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
<br>
   <small><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['l']->value['url'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</small>
   </div>
   <div class="button"><a href="<?php echo smarty_modifier_encurl("?a=directory&out=".((string)$_smarty_tpl->tpl_vars['l']->value['id']));?>
"><img src="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['l']->value['button_url'], ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
" width=120 height=60></a></div>
</div>
<?php
$_smarty_tpl->tpl_vars['l'] = $foreach_l_Sav;
}
?>
<?php } elseif ($_smarty_tpl->tpl_vars['cat']->value) {?>
<br>
<?php $_smarty_tpl->smarty->_tag_stack[] = array('t', array()); $_block_repeat=true; echo smarty_block_t(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
No listings in this category.<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_t(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

<?php }?>

</div>

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

}
}
?>