PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/smarty_v2/compile/%%EE^EE6^EE6906A7%%product-list.tpl.php

http://marocmall.googlecode.com/
PHP | 81 lines | 80 code | 1 blank | 0 comment | 55 complexity | d212f664b34b37cd3c010f003593fcbc MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version 2.6.20, created on 2011-12-03 16:42:36
  2. compiled from C:%5CD%5CMarocMall/themes/prestashop/./product-list.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/./product-list.tpl', 33, false),array('modifier', 'truncate', 'C:\\D\\MarocMall/themes/prestashop/./product-list.tpl', 34, false),array('modifier', 'strip_tags', 'C:\\D\\MarocMall/themes/prestashop/./product-list.tpl', 35, false),array('modifier', 'intval', 'C:\\D\\MarocMall/themes/prestashop/./product-list.tpl', 49, false),array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/./product-list.tpl', 34, false),array('function', 'convertPrice', 'C:\\D\\MarocMall/themes/prestashop/./product-list.tpl', 43, false),)), $this); ?>
  5. <?php if (isset ( $this->_tpl_vars['products'] )): ?>
  6. <!-- Products list -->
  7. <ul id="product_list" class="clear">
  8. <?php $_from = $this->_tpl_vars['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['products'] = array('total' => count($_from), 'iteration' => 0);
  9. if ($this->_foreach['products']['total'] > 0):
  10. foreach ($_from as $this->_tpl_vars['product']):
  11. $this->_foreach['products']['iteration']++;
  12. ?>
  13. <li class="ajax_block_product <?php if (($this->_foreach['products']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['products']['iteration'] == $this->_foreach['products']['total'])): ?>last_item<?php endif; ?> <?php if (($this->_foreach['products']['iteration']-1) % 2): ?>alternate_item<?php else: ?>item<?php endif; ?> clearfix">
  14. <div class="center_block">
  15. <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['link'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  16. " class="product_img_link" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  17. "><img src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']['link_rewrite'],$this->_tpl_vars['product']['id_image'],'home'); ?>
  18. " alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['legend'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  19. " <?php if (isset ( $this->_tpl_vars['homeSize'] )): ?> width="<?php echo $this->_tpl_vars['homeSize']['width']; ?>
  20. " height="<?php echo $this->_tpl_vars['homeSize']['height']; ?>
  21. "<?php endif; ?> /></a>
  22. <h3><?php if (isset ( $this->_tpl_vars['product']['new'] ) && $this->_tpl_vars['product']['new'] == 1): ?><span class="new"><?php echo smartyTranslate(array('s' => 'New'), $this);?>
  23. </span><?php endif; ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['link'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  24. " title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  25. "><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 35, '...') : smarty_modifier_truncate($_tmp, 35, '...')))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  26. </a></h3>
  27. <p class="product_desc"><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['link'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  28. " title="<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['product']['description_short'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 360, '...') : smarty_modifier_truncate($_tmp, 360, '...')))) ? $this->_run_mod_handler('strip_tags', true, $_tmp, 'UTF-8') : smarty_modifier_strip_tags($_tmp, 'UTF-8')))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  29. "><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['product']['description_short'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 360, '...') : smarty_modifier_truncate($_tmp, 360, '...')))) ? $this->_run_mod_handler('strip_tags', true, $_tmp, 'UTF-8') : smarty_modifier_strip_tags($_tmp, 'UTF-8')); ?>
  30. </a></p>
  31. </div>
  32. <div class="right_block">
  33. <?php if (isset ( $this->_tpl_vars['product']['on_sale'] ) && $this->_tpl_vars['product']['on_sale'] && isset ( $this->_tpl_vars['product']['show_price'] ) && $this->_tpl_vars['product']['show_price'] && ! $this->_tpl_vars['PS_CATALOG_MODE']): ?><span class="on_sale"><?php echo smartyTranslate(array('s' => 'On sale!'), $this);?>
  34. </span>
  35. <?php elseif (isset ( $this->_tpl_vars['product']['reduction'] ) && $this->_tpl_vars['product']['reduction'] && isset ( $this->_tpl_vars['product']['show_price'] ) && $this->_tpl_vars['product']['show_price'] && ! $this->_tpl_vars['PS_CATALOG_MODE']): ?><span class="discount"><?php echo smartyTranslate(array('s' => 'Reduced price!'), $this);?>
  36. </span><?php endif; ?>
  37. <?php if (isset ( $this->_tpl_vars['product']['online_only'] ) && $this->_tpl_vars['product']['online_only']): ?><span class="online_only"><?php echo smartyTranslate(array('s' => 'Online only!'), $this);?>
  38. </span><?php endif; ?>
  39. <?php if (( ! $this->_tpl_vars['PS_CATALOG_MODE'] && ( ( isset ( $this->_tpl_vars['product']['show_price'] ) && $this->_tpl_vars['product']['show_price'] ) || ( isset ( $this->_tpl_vars['product']['available_for_order'] ) && $this->_tpl_vars['product']['available_for_order'] ) ) )): ?>
  40. <div>
  41. <?php if (isset ( $this->_tpl_vars['product']['show_price'] ) && $this->_tpl_vars['product']['show_price'] && ! isset ( $this->_tpl_vars['restricted_country_mode'] )): ?><span class="price" style="display: inline;"><?php if (! $this->_tpl_vars['priceDisplay']): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['price']), $this);?>
  42. <?php else: ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['price_tax_exc']), $this);?>
  43. <?php endif; ?></span><br /><?php endif; ?>
  44. <?php if (isset ( $this->_tpl_vars['product']['available_for_order'] ) && $this->_tpl_vars['product']['available_for_order'] && ! isset ( $this->_tpl_vars['restricted_country_mode'] )): ?><span class="availability"><?php if (( $this->_tpl_vars['product']['allow_oosp'] || $this->_tpl_vars['product']['quantity'] > 0 )): ?><?php echo smartyTranslate(array('s' => 'Available'), $this);?>
  45. <?php elseif (( isset ( $this->_tpl_vars['product']['quantity_all_versions'] ) && $this->_tpl_vars['product']['quantity_all_versions'] > 0 )): ?><?php echo smartyTranslate(array('s' => 'Product available with different options'), $this);?>
  46. <?php else: ?><?php echo smartyTranslate(array('s' => 'Out of stock'), $this);?>
  47. <?php endif; ?></span><?php endif; ?>
  48. </div>
  49. <?php endif; ?>
  50. <?php if (( $this->_tpl_vars['product']['id_product_attribute'] == 0 || ( isset ( $this->_tpl_vars['add_prod_display'] ) && ( $this->_tpl_vars['add_prod_display'] == 1 ) ) ) && $this->_tpl_vars['product']['available_for_order'] && ! isset ( $this->_tpl_vars['restricted_country_mode'] ) && $this->_tpl_vars['product']['minimal_quantity'] <= 1 && $this->_tpl_vars['product']['customizable'] != 2 && ! $this->_tpl_vars['PS_CATALOG_MODE']): ?>
  51. <?php if (( $this->_tpl_vars['product']['allow_oosp'] || $this->_tpl_vars['product']['quantity'] > 0 )): ?>
  52. <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['id_product'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  53. " href="<?php echo $this->_tpl_vars['link']->getPageLink('cart.php'); ?>
  54. ?add&amp;id_product=<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['id_product'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  55. <?php if (isset ( $this->_tpl_vars['static_token'] )): ?>&amp;token=<?php echo $this->_tpl_vars['static_token']; ?>
  56. <?php endif; ?>" title="<?php echo smartyTranslate(array('s' => 'Add to cart'), $this);?>
  57. "><?php echo smartyTranslate(array('s' => 'Add to cart'), $this);?>
  58. </a>
  59. <?php else: ?>
  60. <span class="exclusive"><?php echo smartyTranslate(array('s' => 'Add to cart'), $this);?>
  61. </span>
  62. <?php endif; ?>
  63. <?php endif; ?>
  64. <a class="button" href="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['link'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  65. " title="<?php echo smartyTranslate(array('s' => 'View'), $this);?>
  66. "><?php echo smartyTranslate(array('s' => 'View'), $this);?>
  67. </a>
  68. <?php if (isset ( $this->_tpl_vars['comparator_max_item'] ) && $this->_tpl_vars['comparator_max_item']): ?>
  69. <p class="compare"><input type="checkbox" class="comparator" id="comparator_item_<?php echo $this->_tpl_vars['product']['id_product']; ?>
  70. " value="comparator_item_<?php echo $this->_tpl_vars['product']['id_product']; ?>
  71. " <?php if (isset ( $this->_tpl_vars['compareProducts'] ) && in_array ( $this->_tpl_vars['product']['id_product'] , $this->_tpl_vars['compareProducts'] )): ?>checked<?php endif; ?>/> <label for="comparator_item_<?php echo $this->_tpl_vars['product']['id_product']; ?>
  72. "><?php echo smartyTranslate(array('s' => 'Select to compare'), $this);?>
  73. </label></p>
  74. <?php endif; ?>
  75. </div>
  76. </li>
  77. <?php endforeach; endif; unset($_from); ?>
  78. </ul>
  79. <!-- /Products list -->
  80. <?php endif; ?>