<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_block_mylink.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'db:d3downloads_block_mylink.html', 20, false),)), $this); ?>
<?php if ($this->_tpl_vars['block']['type'] == 3): ?>
	<table cellspacing="1" class="outer">
		<tr>
			<th align="center"><?php echo $this->_tpl_vars['block']['lang_category']; ?>
</th>
			<th align="center"><?php echo $this->_tpl_vars['block']['lang_title']; ?>
</th>
			<th align="center"><?php echo $this->_tpl_vars['block']['lang_postname']; ?>
</th>
			<th align="center">
				<?php if ($this->_tpl_vars['block']['selected_order'] == 'd.hits' || $this->_tpl_vars['block']['selected_order'] == 'd.hits DESC'): ?>
					<?php echo $this->_tpl_vars['block']['lang_hits']; ?>

				<?php elseif ($this->_tpl_vars['block']['selected_order'] == 'd.rating' || $this->_tpl_vars['block']['selected_order'] == 'd.rating DESC'): ?>
					<?php echo $this->_tpl_vars['block']['lang_rating']; ?>

				<?php elseif ($this->_tpl_vars['block']['selected_order'] == 'd.votes' || $this->_tpl_vars['block']['selected_order'] == 'd.votes DESC'): ?>
					<?php echo $this->_tpl_vars['block']['lang_votes']; ?>

				<?php else: ?>
					<?php echo $this->_tpl_vars['block']['lang_hits']; ?>

				<?php endif; ?>
			</th>
			<th align="center"><?php echo $this->_tpl_vars['block']['lang_updated']; ?>
</th>
			<?php $_from = $this->_tpl_vars['block']['download']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['down']):
?>
				<tr class="<?php echo smarty_function_cycle(array('values' => "odd,even"), $this);?>
" valign="middle">
				<td>
					<a href="<?php echo $this->_tpl_vars['block']['mod_url']; ?>
/index.php?cid=<?php echo $this->_tpl_vars['down']['cid']; ?>
"><?php echo $this->_tpl_vars['down']['category']; ?>
</a>
				</td>
				<td>
					<a href="<?php echo $this->_tpl_vars['block']['mod_url']; ?>
/index.php?page=singlefile&amp;cid=<?php echo $this->_tpl_vars['down']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['down']['lid']; ?>
"><?php echo $this->_tpl_vars['down']['title']; ?>
</a>
				</td>
				<td>
					<?php echo $this->_tpl_vars['down']['postname']; ?>

				</td>
				<td align="center">
					<?php if ($this->_tpl_vars['block']['selected_order'] == 'd.hits' || $this->_tpl_vars['block']['selected_order'] == 'd.hits DESC'): ?>
						<?php echo $this->_tpl_vars['down']['hits']; ?>

					<?php elseif ($this->_tpl_vars['block']['selected_order'] == 'd.rating' || $this->_tpl_vars['block']['selected_order'] == 'd.rating DESC'): ?>
						<?php echo $this->_tpl_vars['down']['rating']; ?>

					<?php elseif ($this->_tpl_vars['block']['selected_order'] == 'd.votes' || $this->_tpl_vars['block']['selected_order'] == 'd.votes DESC'): ?>
						<?php echo $this->_tpl_vars['down']['votes']; ?>

					<?php else: ?>
						<?php echo $this->_tpl_vars['down']['hits']; ?>

					<?php endif; ?>
				</td>
				<td align="center">
					<?php echo $this->_tpl_vars['down']['updated']; ?>

				</td>
		</tr>
			<?php endforeach; endif; unset($_from); ?>
	</table>
<?php elseif ($this->_tpl_vars['block']['type'] == 2): ?>
	<ul class="d3downloads__block_ul">
		<?php $_from = $this->_tpl_vars['block']['download']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['down']):
?>
			<li><a href="<?php echo $this->_tpl_vars['block']['mod_url']; ?>
/index.php?page=singlefile&amp;cid=<?php echo $this->_tpl_vars['down']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['down']['lid']; ?>
"><?php echo $this->_tpl_vars['down']['title']; ?>
</a>(<?php echo $this->_tpl_vars['down']['hits']; ?>
) <?php echo $this->_tpl_vars['down']['postname']; ?>
 <?php echo $this->_tpl_vars['down']['updated']; ?>
</li>
		<?php endforeach; endif; unset($_from); ?>
	</ul>
<?php else: ?>
	<ul class="d3downloads__block_ul">
		<?php $_from = $this->_tpl_vars['block']['download']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['down']):
?>
			<li><a href="<?php echo $this->_tpl_vars['block']['mod_url']; ?>
/index.php?page=singlefile&amp;cid=<?php echo $this->_tpl_vars['down']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['down']['lid']; ?>
"><?php echo $this->_tpl_vars['down']['title']; ?>
</a>(<?php echo $this->_tpl_vars['down']['updated']; ?>
)</li>
		<?php endforeach; endif; unset($_from); ?>
	</ul>
<?php endif; ?>