PageRenderTime 42ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/smarty_v2/compile/%%9F^9FD^9FD46DAE%%category.tpl.php

http://marocmall.googlecode.com/
PHP | 123 lines | 116 code | 7 blank | 0 comment | 11 complexity | ba614de03c7999ca150b64f27a0c510b 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/category.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/category.tpl', 35, false),array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/category.tpl', 61, false),)), $this); ?>
  5. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  6. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
  7. $this->_tpl_vars = $_smarty_tpl_vars;
  8. unset($_smarty_tpl_vars);
  9. ?>
  10. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  11. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
  12. $this->_tpl_vars = $_smarty_tpl_vars;
  13. unset($_smarty_tpl_vars);
  14. ?>
  15. <?php if (isset ( $this->_tpl_vars['category'] )): ?>
  16. <?php if ($this->_tpl_vars['category']->id && $this->_tpl_vars['category']->active): ?>
  17. <h1>
  18. <?php echo ''; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['category']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?><?php echo ''; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['categoryNameComplement'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?><?php echo '<span class="category-product-count">'; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
  19. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./category-count.tpl", 'smarty_include_vars' => array()));
  20. $this->_tpl_vars = $_smarty_tpl_vars;
  21. unset($_smarty_tpl_vars);
  22. ?><?php echo '</span>'; ?>
  23. </h1>
  24. <?php if ($this->_tpl_vars['scenes']): ?>
  25. <!-- Scenes -->
  26. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  27. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./scenes.tpl", 'smarty_include_vars' => array('scenes' => $this->_tpl_vars['scenes'])));
  28. $this->_tpl_vars = $_smarty_tpl_vars;
  29. unset($_smarty_tpl_vars);
  30. ?>
  31. <?php else: ?>
  32. <!-- Category image -->
  33. <?php if ($this->_tpl_vars['category']->id_image): ?>
  34. <div class="align_center">
  35. <img src="<?php echo $this->_tpl_vars['link']->getCatImageLink($this->_tpl_vars['category']->link_rewrite,$this->_tpl_vars['category']->id_image,'category'); ?>
  36. " alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['category']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  37. " title="<?php echo ((is_array($_tmp=$this->_tpl_vars['category']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  38. " id="categoryImage" width="<?php echo $this->_tpl_vars['categorySize']['width']; ?>
  39. " height="<?php echo $this->_tpl_vars['categorySize']['height']; ?>
  40. " />
  41. </div>
  42. <?php endif; ?>
  43. <?php endif; ?>
  44. <?php if ($this->_tpl_vars['category']->description): ?>
  45. <div class="cat_desc"><?php echo $this->_tpl_vars['category']->description; ?>
  46. </div>
  47. <?php endif; ?>
  48. <?php if (isset ( $this->_tpl_vars['subcategories'] )): ?>
  49. <!-- Subcategories -->
  50. <div id="subcategories">
  51. <h3><?php echo smartyTranslate(array('s' => 'Subcategories'), $this);?>
  52. </h3>
  53. <ul class="inline_list">
  54. <?php $_from = $this->_tpl_vars['subcategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  55. foreach ($_from as $this->_tpl_vars['subcategory']):
  56. ?>
  57. <li>
  58. <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']->getCategoryLink($this->_tpl_vars['subcategory']['id_category'],$this->_tpl_vars['subcategory']['link_rewrite']))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  59. " title="<?php echo ((is_array($_tmp=$this->_tpl_vars['subcategory']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  60. ">
  61. <?php if ($this->_tpl_vars['subcategory']['id_image']): ?>
  62. <img src="<?php echo $this->_tpl_vars['link']->getCatImageLink($this->_tpl_vars['subcategory']['link_rewrite'],$this->_tpl_vars['subcategory']['id_image'],'medium'); ?>
  63. " alt="" width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
  64. " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
  65. " />
  66. <?php else: ?>
  67. <img src="<?php echo $this->_tpl_vars['img_cat_dir']; ?>
  68. default-medium.jpg" alt="" width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
  69. " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
  70. " />
  71. <?php endif; ?>
  72. </a><br />
  73. <a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']->getCategoryLink($this->_tpl_vars['subcategory']['id_category'],$this->_tpl_vars['subcategory']['link_rewrite']))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  74. "><?php echo ((is_array($_tmp=$this->_tpl_vars['subcategory']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
  75. </a>
  76. </li>
  77. <?php endforeach; endif; unset($_from); ?>
  78. </ul>
  79. <br class="clear"/>
  80. </div>
  81. <?php endif; ?>
  82. <?php if ($this->_tpl_vars['products']): ?>
  83. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  84. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./product-compare.tpl", 'smarty_include_vars' => array()));
  85. $this->_tpl_vars = $_smarty_tpl_vars;
  86. unset($_smarty_tpl_vars);
  87. ?>
  88. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  89. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./product-sort.tpl", 'smarty_include_vars' => array()));
  90. $this->_tpl_vars = $_smarty_tpl_vars;
  91. unset($_smarty_tpl_vars);
  92. ?>
  93. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  94. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./product-list.tpl", 'smarty_include_vars' => array('products' => $this->_tpl_vars['products'])));
  95. $this->_tpl_vars = $_smarty_tpl_vars;
  96. unset($_smarty_tpl_vars);
  97. ?>
  98. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  99. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./product-compare.tpl", 'smarty_include_vars' => array()));
  100. $this->_tpl_vars = $_smarty_tpl_vars;
  101. unset($_smarty_tpl_vars);
  102. ?>
  103. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  104. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./pagination.tpl", 'smarty_include_vars' => array()));
  105. $this->_tpl_vars = $_smarty_tpl_vars;
  106. unset($_smarty_tpl_vars);
  107. ?>
  108. <?php elseif (! isset ( $this->_tpl_vars['subcategories'] )): ?>
  109. <p class="warning"><?php echo smartyTranslate(array('s' => 'There are no products in this category.'), $this);?>
  110. </p>
  111. <?php endif; ?>
  112. <?php elseif ($this->_tpl_vars['category']->id): ?>
  113. <p class="warning"><?php echo smartyTranslate(array('s' => 'This category is currently unavailable.'), $this);?>
  114. </p>
  115. <?php endif; ?>
  116. <?php endif; ?>