<?php /* Smarty version 2.6.25, created on 2015-11-07 10:48:03
         compiled from content.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'content.tpl', 7, false),array('modifier', 'trim', 'content.tpl', 7, false),)), $this); ?>
<?php if ($this->_tpl_vars['show_title'] == 1): ?>
<?php echo $this->_tpl_vars['TITLE']; ?>

<br/>
<?php endif; ?>
	<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['latest_art']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
	<div <?php if ($this->_sections['i']['last']): ?>class="boxSponsoredLast"<?php else: ?>class="boxSponsored"<?php endif; ?> <?php if ($this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['STATUS'] < 2 || $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['editArt'] == 1 || $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['delArt'] == 1): ?>style="clear: both;"<?php endif; ?>>
		<a class="boxSponsoredA" href="<?php echo @DOC_ROOT; ?>
/<?php if (@ENABLE_REWRITE): ?><?php echo $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['SEO_URL']; ?>
<?php else: ?>article.php?id=<?php echo $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['ID']; ?>
<?php endif; ?>" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
">
			<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['TITLE'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>

		</a>
		<br/>
		<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['DESCRIPTION'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>

        <br/><br/>
        <?php if ($this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['STATUS'] < 2 || $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['editArt'] == 1 || $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['delArt'] == 1): ?>
        <div class="frontend_actions" style="width: auto; height: auto;">
        	<?php if ($this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['editArt'] == 1): ?>
        	<a href="<?php echo @DOC_ROOT; ?>
/inplace_editart.php?ID=<?php echo $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['ID']; ?>
&TB_iframe=true&height=400&width=600" onclick="return showThickbox(this);" class="thickbox">
            	<img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/edit.gif" width="14" height="14" style="border: none;" alt="edit article"/>
            </a>
            <?php endif; ?>
            <?php if ($this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['delArt'] == 1): ?>  
            	<a href="<?php echo @DOC_ROOT; ?>
/inplace_editart.php?ID=<?php echo $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['ID']; ?>
&mode=del&TB_iframe=true&height=100&width=250"  class="thickbox" onclick="<?php echo 'question = confirm(\'Are you sure you want to delete this article?\');if (question !=\'0\'){return showThickbox(this);} else return false;'; ?>
" class="float_tiny">
                	<img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/delete.gif" width="14" height="14" style="border: none;" alt="delete article"/>
                </a>
            <?php endif; ?>
            <?php if ($this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['STATUS'] < 2 && $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['editArt'] == 1): ?>
            	<a href="<?php echo @DOC_ROOT; ?>
/inplace_editart.php?ID=<?php echo $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['ID']; ?>
&mode=active&TB_iframe=true&height=100&width=250"  class="thickbox" onclick="<?php echo 'question = confirm(\'Are you sure you want to make this article active?\');if (question !=\'0\'){return showThickbox(this);} else return false;'; ?>
" class="float_tiny">
                	<img src="<?php echo @DOC_ROOT; ?>
/templates/<?php echo @USE_TEMPLATE; ?>
/images/active.gif" width="14" height="14" style="border: none;" alt="article is inactive" class="float_tiny"/>
                </a>
            <?php endif; ?>
            <?php if ($this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['editArt'] == 1 || $this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['rights']['delArt'] == 1): ?>
				<?php if ($this->_tpl_vars['latest_art'][$this->_sections['i']['index']]['has_payment'] > 0): ?>
                <div class="float_tiny" style="color: green; font-weight: bold;">
                $
                </div>
                <?php endif; ?>
            <?php endif; ?>
		</div>
        <div style="clear: both;"></div>
        <?php endif; ?>
	</div>
	<?php endfor; endif; ?>