57 lines
5.1 KiB
PHP
57 lines
5.1 KiB
PHP
<?php /* Smarty version 2.6.20, created on 2013-07-25 09:30:01
|
|
compiled from /var/www/kaktusy/modules/blocknewproducts/blocknewproducts.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('function', 'l', '/var/www/kaktusy/modules/blocknewproducts/blocknewproducts.tpl', 3, false),array('modifier', 'escape', '/var/www/kaktusy/modules/blocknewproducts/blocknewproducts.tpl', 9, false),array('modifier', 'strip_tags', '/var/www/kaktusy/modules/blocknewproducts/blocknewproducts.tpl', 15, false),array('modifier', 'truncate', '/var/www/kaktusy/modules/blocknewproducts/blocknewproducts.tpl', 16, false),)), $this); ?>
|
|
<!-- MODULE Block new products -->
|
|
<div id="new-products_block_right" class="block products_block">
|
|
<h4><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
|
|
new-products.php" title="<?php echo smartyTranslate(array('s' => 'New products','mod' => 'blocknewproducts'), $this);?>
|
|
"><?php echo smartyTranslate(array('s' => 'New products','mod' => 'blocknewproducts'), $this);?>
|
|
</a></h4>
|
|
<div class="block_content">
|
|
<?php if ($this->_tpl_vars['new_products'] !== false): ?>
|
|
<ul class="product_images clearfix">
|
|
<?php $_from = $this->_tpl_vars['new_products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['newProducts'] = array('total' => count($_from), 'iteration' => 0);
|
|
if ($this->_foreach['newProducts']['total'] > 0):
|
|
foreach ($_from as $this->_tpl_vars['product']):
|
|
$this->_foreach['newProducts']['iteration']++;
|
|
?>
|
|
<?php if (($this->_foreach['newProducts']['iteration']-1) < 2): ?>
|
|
<li<?php if (($this->_foreach['newProducts']['iteration'] <= 1)): ?> class="first"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['product']['link']; ?>
|
|
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')); ?>
|
|
"><img src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']['link_rewrite'],$this->_tpl_vars['product']['id_image'],'medium'); ?>
|
|
" height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
|
|
" width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
|
|
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')); ?>
|
|
" /></a></li>
|
|
<?php endif; ?>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
</ul>
|
|
<dl class="products">
|
|
<?php $_from = $this->_tpl_vars['new_products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['myLoop'] = array('total' => count($_from), 'iteration' => 0);
|
|
if ($this->_foreach['myLoop']['total'] > 0):
|
|
foreach ($_from as $this->_tpl_vars['newproduct']):
|
|
$this->_foreach['myLoop']['iteration']++;
|
|
?>
|
|
<dt class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>"><a href="<?php echo $this->_tpl_vars['newproduct']['link']; ?>
|
|
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['newproduct']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')); ?>
|
|
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['newproduct']['name'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')); ?>
|
|
</a></dt>
|
|
<?php if ($this->_tpl_vars['newproduct']['description_short']): ?><dd class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>"><a href="<?php echo $this->_tpl_vars['newproduct']['link']; ?>
|
|
"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['newproduct']['description_short'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, 'UTF-8') : smarty_modifier_strip_tags($_tmp, 'UTF-8')))) ? $this->_run_mod_handler('truncate', true, $_tmp, 50, '...') : smarty_modifier_truncate($_tmp, 50, '...')); ?>
|
|
</a> <a href="<?php echo $this->_tpl_vars['newproduct']['link']; ?>
|
|
"><img alt=">>" src="<?php echo $this->_tpl_vars['img_dir']; ?>
|
|
bullet.gif"/></a></dd><?php endif; ?>
|
|
<?php endforeach; endif; unset($_from); ?>
|
|
</dl>
|
|
<p><a href="<?php echo $this->_tpl_vars['base_dir']; ?>
|
|
new-products.php" title="<?php echo smartyTranslate(array('s' => 'All new products','mod' => 'blocknewproducts'), $this);?>
|
|
" class="button_large"><?php echo smartyTranslate(array('s' => 'All new products','mod' => 'blocknewproducts'), $this);?>
|
|
</a></p>
|
|
<?php else: ?>
|
|
<p><?php echo smartyTranslate(array('s' => 'No new products at this time','mod' => 'blocknewproducts'), $this);?>
|
|
</p>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<!-- /MODULE Block new products -->
|