<?php /* Smarty version 2.6.18, created on 2009-10-08 11:33:40
         compiled from /homez.47/arboreth/www/arborethic_boutique/modules/productscategory/productscategory.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'l', '/homez.47/arboreth/www/arborethic_boutique/modules/productscategory/productscategory.tpl', 9, false),array('function', 'math', '/homez.47/arboreth/www/arborethic_boutique/modules/productscategory/productscategory.tpl', 15, false),array('modifier', 'count', '/homez.47/arboreth/www/arborethic_boutique/modules/productscategory/productscategory.tpl', 15, false),array('modifier', 'htmlspecialchars', '/homez.47/arboreth/www/arborethic_boutique/modules/productscategory/productscategory.tpl', 18, false),array('modifier', 'truncate', '/homez.47/arboreth/www/arborethic_boutique/modules/productscategory/productscategory.tpl', 22, false),)), $this); ?>
<?php if (count ( $this->_tpl_vars['categoryProducts'] ) > 1): ?>

<!-- import JS and CSS of this module -->

<style type="text/css">@import url(<?php echo $this->_tpl_vars['base_dir']; ?>
modules/productscategory/css/module.css);</style>

<script type="text/javascript">var middle = <?php echo $this->_tpl_vars['middlePosition']; ?>
;</script>

<script type="text/javascript" src="<?php echo $this->_tpl_vars['base_dir']; ?>
modules/productscategory/js/productscategory.js"></script>

<!-- /import JS and CSS of this module -->



<ul class="idTabs">

	<li><a href="#idTab3"><?php echo smartyTranslate(array('s' => 'In the same category','mod' => 'productscategory'), $this);?>
</a></li>

</ul>



<div id="<?php if (count ( $this->_tpl_vars['categoryProducts'] ) > 5): ?>productscategory<?php else: ?>productscategory_noscroll<?php endif; ?>">

<?php if (count ( $this->_tpl_vars['categoryProducts'] ) > 5): ?><a id="productscategory_scroll_left" title="<?php echo smartyTranslate(array('s' => 'Previous','mod' => 'productscategory'), $this);?>
" href="javascript:{}"><?php echo smartyTranslate(array('s' => 'Previous','mod' => 'productscategory'), $this);?>
</a><?php endif; ?>

<div id="productscategory_list">

	<ul <?php if (count ( $this->_tpl_vars['categoryProducts'] ) > 5): ?>style="width: <?php echo smarty_function_math(array('equation' => "width * nbImages",'width' => 107,'nbImages' => count($this->_tpl_vars['categoryProducts'])), $this);?>
px"<?php endif; ?>>

		<?php $_from = $this->_tpl_vars['categoryProducts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['categoryProduct'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['categoryProduct']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['categoryProduct']):
        $this->_foreach['categoryProduct']['iteration']++;
?>

		<li <?php if (count ( $this->_tpl_vars['categoryProducts'] ) < 6): ?>style="width: <?php echo smarty_function_math(array('equation' => "width / nbImages",'width' => 94,'nbImages' => count($this->_tpl_vars['categoryProducts'])), $this);?>
%"<?php endif; ?>>

			<a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['categoryProduct']['id_product'],$this->_tpl_vars['categoryProduct']['link_rewrite']); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['categoryProduct']['name'])) ? $this->_run_mod_handler('htmlspecialchars', true, $_tmp) : htmlspecialchars($_tmp)); ?>
">

				<img src="<?php echo $this->_tpl_vars['img_prod_dir']; ?>
<?php echo $this->_tpl_vars['categoryProduct']['id_image']; ?>
-medium.jpg" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['categoryProduct']['name'])) ? $this->_run_mod_handler('htmlspecialchars', true, $_tmp) : htmlspecialchars($_tmp)); ?>
" />

			</a><br/>

			<a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['categoryProduct']['id_product'],$this->_tpl_vars['categoryProduct']['link_rewrite']); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['categoryProduct']['name'])) ? $this->_run_mod_handler('htmlspecialchars', true, $_tmp) : htmlspecialchars($_tmp)); ?>
">

			<?php echo ((is_array($_tmp=$this->_tpl_vars['categoryProduct']['name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 15) : smarty_modifier_truncate($_tmp, 15)); ?>


			</a>

		</li>

		<?php endforeach; endif; unset($_from); ?>

	</ul>

</div>

<?php if (count ( $this->_tpl_vars['categoryProducts'] ) > 5): ?><a id="productscategory_scroll_right" title="<?php echo smartyTranslate(array('s' => 'Next','mod' => 'productscategory'), $this);?>
" href="javascript:{}"><?php echo smartyTranslate(array('s' => 'Next','mod' => 'productscategory'), $this);?>
</a><?php endif; ?>

</div>

<?php endif; ?>
