kaktusy/tools/smarty/compile/%%9E^9EB^9EBF636F%%blockvie...

40 lines
4.4 KiB
PHP

<?php /* Smarty version 2.6.20, created on 2015-10-02 01:07:10
compiled from /home/www/kaktusy/modules/blockviewed/blockviewed.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'l', '/home/www/kaktusy/modules/blockviewed/blockviewed.tpl', 3, false),array('function', 'm', '/home/www/kaktusy/modules/blockviewed/blockviewed.tpl', 10, false),array('modifier', 'escape', '/home/www/kaktusy/modules/blockviewed/blockviewed.tpl', 8, false),array('modifier', 'truncate', '/home/www/kaktusy/modules/blockviewed/blockviewed.tpl', 9, false),array('modifier', 'strip_tags', '/home/www/kaktusy/modules/blockviewed/blockviewed.tpl', 10, false),)), $this); ?>
<!-- Block Viewed products -->
<div id="viewed-products_block_left" class="block products_block">
<h4><?php echo smartyTranslate(array('s' => 'Viewed products','mod' => 'blockviewed'), $this);?>
</h4>
<div class="block_content">
<ul class="products clearfix">
<?php $_from = $this->_tpl_vars['productsViewedObj']; 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['viewedProduct']):
$this->_foreach['myLoop']['iteration']++;
?>
<li class="clearfix<?php if (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?> last_item<?php elseif (($this->_foreach['myLoop']['iteration'] <= 1)): ?> first_item<?php else: ?> item<?php endif; ?>">
<a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['viewedProduct']->id,$this->_tpl_vars['viewedProduct']->link_rewrite,$this->_tpl_vars['viewedProduct']->category_rewrite); ?>
" title="<?php echo smartyTranslate(array('s' => 'More about','mod' => 'blockviewed'), $this);?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['viewedProduct']->name)) ? $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['viewedProduct']->link_rewrite,$this->_tpl_vars['viewedProduct']->cover,'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['viewedProduct']->legend)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')); ?>
" /></a>
<h5><a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['viewedProduct']->id,$this->_tpl_vars['viewedProduct']->link_rewrite,$this->_tpl_vars['viewedProduct']->category_rewrite); ?>
" title="<?php echo smartyTranslate(array('s' => 'More about','mod' => 'blockviewed'), $this);?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['viewedProduct']->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['viewedProduct']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')))) ? $this->_run_mod_handler('truncate', true, $_tmp, 14, '...') : smarty_modifier_truncate($_tmp, 14, '...')); ?>
</a></h5>
<p><?php echo smartyMaxWords(array('s' => ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['viewedProduct']->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, 44) : smarty_modifier_truncate($_tmp, 44)),'n' => 12), $this);?>
<a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['viewedProduct']->id,$this->_tpl_vars['viewedProduct']->link_rewrite,$this->_tpl_vars['viewedProduct']->category_rewrite); ?>
" title="<?php echo smartyTranslate(array('s' => 'More about','mod' => 'blockviewed'), $this);?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['viewedProduct']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')); ?>
"><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
bullet.gif" alt="&gt;&gt;" /></a></p>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>
</div>
</div>