PageRenderTime 48ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty_v2/compile/%%94^94D^94D1ADE1%%scenes.tpl.php

http://marocmall.googlecode.com/
PHP | 133 lines | 131 code | 1 blank | 1 comment | 20 complexity | e299d4586b341af8610bcf973ceef0b2 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/./scenes.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 32, false),array('function', 'math', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 45, false),array('function', 'convertPrice', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 51, false),array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 44, false),array('modifier', 'strip_tags', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 63, false),array('modifier', 'truncate', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 63, false),array('modifier', 'count', 'C:\\D\\MarocMall/themes/prestashop/./scenes.tpl', 76, false),)), $this); ?>
  5. <?php if (scenes): ?>
  6. <script type="text/javascript" src="<?php echo @_PS_JS_DIR_; ?>
  7. jquery/jquery.cluetip.js"></script>
  8. <script type="text/javascript" src="<?php echo @_PS_JS_DIR_; ?>
  9. jquery/jquery.scrollTo-1.4.2-min.js"></script>
  10. <script type="text/javascript" src="<?php echo @_PS_JS_DIR_; ?>
  11. jquery/jquery.serialScroll-1.2.2-min.js"></script>
  12. <script type="text/javascript">// <![CDATA[
  13. i18n_scene_close = '<?php echo smartyTranslate(array('s' => 'Close'), $this);?>
  14. ';
  15. $(function () {
  16. li_width = parseInt(<?php echo $this->_tpl_vars['thumbSceneImageType']['width']; ?>
  17. + 10);
  18. });
  19. //]]></script>
  20. <script type="text/javascript" src="<?php echo $this->_tpl_vars['js_dir']; ?>
  21. scenes.js"></script>
  22. <div id="scenes">
  23. <div>
  24. <?php $_from = $this->_tpl_vars['scenes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['scenes'] = array('total' => count($_from), 'iteration' => 0);
  25. if ($this->_foreach['scenes']['total'] > 0):
  26. foreach ($_from as $this->_tpl_vars['scene_key'] => $this->_tpl_vars['scene']):
  27. $this->_foreach['scenes']['iteration']++;
  28. ?>
  29. <div class="screen_scene" id="screen_scene_<?php echo $this->_tpl_vars['scene']->id; ?>
  30. " style="background:transparent url(<?php echo $this->_tpl_vars['base_dir']; ?>
  31. img/scenes/<?php echo $this->_tpl_vars['scene']->id; ?>
  32. -large_scene.jpg); height:<?php echo $this->_tpl_vars['largeSceneImageType']['height']; ?>
  33. px; width:<?php echo $this->_tpl_vars['largeSceneImageType']['width']; ?>
  34. px; <?php if (! ($this->_foreach['scenes']['iteration'] <= 1)): ?> display:none;<?php endif; ?>">
  35. <?php $_from = $this->_tpl_vars['scene']->products; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  36. foreach ($_from as $this->_tpl_vars['product_key'] => $this->_tpl_vars['product']):
  37. ?>
  38. <?php $this->assign('imageIds', ($this->_tpl_vars['product']['id_product'])."-".($this->_tpl_vars['product']['id_image'])); ?>
  39. <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')); ?>
  40. " accesskey="#scene_products_cluetip_<?php echo $this->_tpl_vars['scene_key']; ?>
  41. _<?php echo $this->_tpl_vars['product_key']; ?>
  42. _<?php echo $this->_tpl_vars['product']['id_product']; ?>
  43. " class="cluetip" style="width:<?php echo $this->_tpl_vars['product']['zone_width']; ?>
  44. px; height:<?php echo $this->_tpl_vars['product']['zone_height']; ?>
  45. px; margin-left:<?php echo $this->_tpl_vars['product']['x_axis']; ?>
  46. px ;margin-top:<?php echo $this->_tpl_vars['product']['y_axis']; ?>
  47. px;">
  48. <span style="margin-top:<?php echo smarty_function_math(array('equation' => 'a/2 -10','a' => $this->_tpl_vars['product']['zone_height']), $this);?>
  49. px; margin-left:<?php echo smarty_function_math(array('equation' => 'a/2 -10','a' => $this->_tpl_vars['product']['zone_width']), $this);?>
  50. px;">&nbsp;</span>
  51. </a>
  52. <div id="scene_products_cluetip_<?php echo $this->_tpl_vars['scene_key']; ?>
  53. _<?php echo $this->_tpl_vars['product_key']; ?>
  54. _<?php echo $this->_tpl_vars['product']['id_product']; ?>
  55. " style="display:none;">
  56. <h4><span class="product_name"><?php echo $this->_tpl_vars['product']['details']->name; ?>
  57. </span><?php if (isset ( $this->_tpl_vars['product']['details']->new ) && $this->_tpl_vars['product']['details']->new): ?><span class="new"><?php echo smartyTranslate(array('s' => 'New'), $this);?>
  58. </span><?php endif; ?></h4>
  59. <?php if (! $this->_tpl_vars['PS_CATALOG_MODE'] && $this->_tpl_vars['product']['details']->show_price): ?>
  60. <div class="prices">
  61. <p class="price"><?php if ($this->_tpl_vars['priceDisplay']): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['details']->getPrice(false,$this->_tpl_vars['product']['details']->getDefaultAttribute($this->_tpl_vars['product']['id_product']))), $this);?>
  62. <?php else: ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['product']['details']->getPrice(true,$this->_tpl_vars['product']['details']->getDefaultAttribute($this->_tpl_vars['product']['id_product']))), $this);?>
  63. <?php endif; ?></p>
  64. <?php if ($this->_tpl_vars['product']['details']->on_sale): ?>
  65. <span class="on_sale"><?php echo smartyTranslate(array('s' => 'On sale!'), $this);?>
  66. </span>
  67. <?php elseif (isset ( $this->_tpl_vars['product']['reduction'] ) && $this->_tpl_vars['product']['reduction']): ?>
  68. <span class="discount"><?php echo smartyTranslate(array('s' => 'Reduced price!'), $this);?>
  69. </span>
  70. <?php endif; ?>
  71. </div>
  72. <?php endif; ?>
  73. <div class="clear">
  74. <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')); ?>
  75. " title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['details']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  76. ">
  77. <img src="<?php echo $this->_tpl_vars['link']->getImageLink($this->_tpl_vars['product']['id_product'],$this->_tpl_vars['imageIds'],'medium'); ?>
  78. " alt="" width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
  79. " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
  80. " />
  81. </a>
  82. <p class="description"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['product']['details']->description_short)) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 170, '...') : smarty_modifier_truncate($_tmp, 170, '...')); ?>
  83. </p>
  84. </div>
  85. </div>
  86. <?php endforeach; endif; unset($_from); ?>
  87. </div>
  88. <?php endforeach; endif; unset($_from); ?>
  89. </div>
  90. <?php if (isset ( $this->_tpl_vars['scenes']['1'] )): ?>
  91. <div class="thumbs_banner" style="height:<?php echo $this->_tpl_vars['thumbSceneImageType']['height']; ?>
  92. px;">
  93. <span class="space-keeper">
  94. <a class="prev" href="#" style="height:<?php echo smarty_function_math(array('equation' => 'a+2','a' => $this->_tpl_vars['thumbSceneImageType']['height']), $this);?>
  95. px;" onclick="{next_scene_is_at_right = false; $(this).parent().next().trigger('stop').trigger('prev'); return false;}">&nbsp;</a>
  96. </span>
  97. <div id="scenes_list">
  98. <ul style="width:<?php echo smarty_function_math(array('equation' => '(a*b + (a-1)*10)','a' => count($this->_tpl_vars['scenes']),'b' => $this->_tpl_vars['thumbSceneImageType']['width']), $this);?>
  99. px; height:<?php echo $this->_tpl_vars['thumbSceneImageType']['height']; ?>
  100. px;">
  101. <?php $_from = $this->_tpl_vars['scenes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['scenes_list'] = array('total' => count($_from), 'iteration' => 0);
  102. if ($this->_foreach['scenes_list']['total'] > 0):
  103. foreach ($_from as $this->_tpl_vars['scene']):
  104. $this->_foreach['scenes_list']['iteration']++;
  105. ?>
  106. <li id="scene_thumb_<?php echo $this->_tpl_vars['scene']->id; ?>
  107. " style="<?php if (! ($this->_foreach['scenes_list']['iteration'] == $this->_foreach['scenes_list']['total'])): ?> padding-right:10px;<?php endif; ?>">
  108. <a style="width:<?php echo $this->_tpl_vars['thumbSceneImageType']['width']; ?>
  109. px; height:<?php echo $this->_tpl_vars['thumbSceneImageType']['height']; ?>
  110. px" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['scene']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  111. " href="#" rel="<?php echo $this->_tpl_vars['scene']->id; ?>
  112. " onclick="{loadScene(<?php echo $this->_tpl_vars['scene']->id; ?>
  113. );return false;}">
  114. <img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['scene']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  115. " src="<?php echo $this->_tpl_vars['content_dir']; ?>
  116. img/scenes/thumbs/<?php echo $this->_tpl_vars['scene']->id; ?>
  117. -thumb_scene.jpg" width="<?php echo $this->_tpl_vars['thumbSceneSize']['width']; ?>
  118. " height="<?php echo $this->_tpl_vars['thumbSceneSize']['height']; ?>
  119. " />
  120. </a>
  121. </li>
  122. <?php endforeach; endif; unset($_from); ?>
  123. </ul>
  124. </div>
  125. <span class="space-keeper">
  126. <a class="next" href="#" style="height:<?php echo smarty_function_math(array('equation' => 'a+2','a' => $this->_tpl_vars['thumbSceneImageType']['height']), $this);?>
  127. px;" onclick="{next_scene_is_at_right = true; $(this).parent().prev().trigger('stop').trigger('next'); return false;}">&nbsp;</a>
  128. </span>
  129. </div>
  130. <?php endif; ?>
  131. </div>
  132. <?php endif; ?>