PageRenderTime 49ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty/compile/b2e9421082e79295cfb8b2e8135c199666e72da4.file.category.tpl.php

http://marocmall.googlecode.com/
PHP | 118 lines | 113 code | 5 blank | 0 comment | 14 complexity | 8ad2684ee57656395d7ef4ad70605d06 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version Smarty-3.0.7, created on 2011-12-27 11:32:48
  2. compiled from "C:\D\prestashoplf\prestashop/themes/prestashop/category.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:279424ef9ace0654610-01642901%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'b2e9421082e79295cfb8b2e8135c199666e72da4' =>
  8. array (
  9. 0 => 'C:\\D\\prestashoplf\\prestashop/themes/prestashop/category.tpl',
  10. 1 => 1306404156,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '279424ef9ace0654610-01642901',
  15. 'function' =>
  16. array (
  17. ),
  18. 'has_nocache_code' => false,
  19. )); /*/%%SmartyHeaderCode%%*/?>
  20. <?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php';
  21. ?>
  22. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  23. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  24. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  25. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  26. <?php if (isset($_smarty_tpl->getVariable('category',null,true,false)->value)){?>
  27. <?php if ($_smarty_tpl->getVariable('category')->value->id&&$_smarty_tpl->getVariable('category')->value->active){?>
  28. <h1><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
  29. <span><?php if ($_smarty_tpl->getVariable('category')->value->id==1||$_smarty_tpl->getVariable('nb_products')->value==0){?><?php echo smartyTranslate(array('s'=>'There are no products.'),$_smarty_tpl);?>
  30. <?php }else{ ?><?php if ($_smarty_tpl->getVariable('nb_products')->value==1){?><?php echo smartyTranslate(array('s'=>'There is'),$_smarty_tpl);?>
  31. <?php }else{ ?><?php echo smartyTranslate(array('s'=>'There are'),$_smarty_tpl);?>
  32. <?php }?>&#160;<?php echo $_smarty_tpl->getVariable('nb_products')->value;?>
  33. &#160;<?php if ($_smarty_tpl->getVariable('nb_products')->value==1){?><?php echo smartyTranslate(array('s'=>'product.'),$_smarty_tpl);?>
  34. <?php }else{ ?><?php echo smartyTranslate(array('s'=>'products.'),$_smarty_tpl);?>
  35. <?php }?><?php }?></span>
  36. </h1>
  37. <?php if ($_smarty_tpl->getVariable('scenes')->value){?>
  38. <!-- Scenes -->
  39. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./scenes.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  40. $_template->assign('scenes',$_smarty_tpl->getVariable('scenes')->value); echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  41. <?php }else{ ?>
  42. <!-- Category image -->
  43. <?php if ($_smarty_tpl->getVariable('category')->value->id_image){?>
  44. <div class="align_center">
  45. <img src="<?php echo $_smarty_tpl->getVariable('link')->value->getCatImageLink($_smarty_tpl->getVariable('category')->value->link_rewrite,$_smarty_tpl->getVariable('category')->value->id_image,'category');?>
  46. " alt="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
  47. " title="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
  48. " id="categoryImage" width="<?php echo $_smarty_tpl->getVariable('categorySize')->value['width'];?>
  49. " height="<?php echo $_smarty_tpl->getVariable('categorySize')->value['height'];?>
  50. " />
  51. </div>
  52. <?php }?>
  53. <?php }?>
  54. <?php if ($_smarty_tpl->getVariable('category')->value->description){?>
  55. <div class="cat_desc"><?php echo $_smarty_tpl->getVariable('category')->value->description;?>
  56. </div>
  57. <?php }?>
  58. <?php if (isset($_smarty_tpl->getVariable('subcategories',null,true,false)->value)){?>
  59. <!-- Subcategories -->
  60. <div id="subcategories">
  61. <h3><?php echo smartyTranslate(array('s'=>'Subcategories'),$_smarty_tpl);?>
  62. </h3>
  63. <ul class="inline_list">
  64. <?php $_smarty_tpl->tpl_vars['subcategory'] = new Smarty_Variable;
  65. $_from = $_smarty_tpl->getVariable('subcategories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  66. if ($_smarty_tpl->_count($_from) > 0){
  67. foreach ($_from as $_smarty_tpl->tpl_vars['subcategory']->key => $_smarty_tpl->tpl_vars['subcategory']->value){
  68. ?>
  69. <li>
  70. <a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getCategoryLink($_smarty_tpl->tpl_vars['subcategory']->value['id_category'],$_smarty_tpl->tpl_vars['subcategory']->value['link_rewrite']),'htmlall','UTF-8');?>
  71. " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['subcategory']->value['name'],'htmlall','UTF-8');?>
  72. ">
  73. <?php if ($_smarty_tpl->tpl_vars['subcategory']->value['id_image']){?>
  74. <img src="<?php echo $_smarty_tpl->getVariable('link')->value->getCatImageLink($_smarty_tpl->tpl_vars['subcategory']->value['link_rewrite'],$_smarty_tpl->tpl_vars['subcategory']->value['id_image'],'medium');?>
  75. " alt="" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
  76. " height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
  77. " />
  78. <?php }else{ ?>
  79. <img src="<?php echo $_smarty_tpl->getVariable('img_cat_dir')->value;?>
  80. default-medium.jpg" alt="" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
  81. " height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
  82. " />
  83. <?php }?>
  84. </a><br />
  85. <a href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('link')->value->getCategoryLink($_smarty_tpl->tpl_vars['subcategory']->value['id_category'],$_smarty_tpl->tpl_vars['subcategory']->value['link_rewrite']),'htmlall','UTF-8');?>
  86. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['subcategory']->value['name'],'htmlall','UTF-8');?>
  87. </a>
  88. </li>
  89. <?php }} ?>
  90. </ul>
  91. <br class="clear"/>
  92. </div>
  93. <?php }?>
  94. <?php if ($_smarty_tpl->getVariable('products')->value){?>
  95. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./product-compare.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  96. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  97. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./product-sort.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  98. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  99. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./product-list.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  100. $_template->assign('products',$_smarty_tpl->getVariable('products')->value); echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  101. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./product-compare.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  102. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  103. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./pagination.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  104. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  105. <?php }elseif(!isset($_smarty_tpl->getVariable('subcategories',null,true,false)->value)){?>
  106. <p class="warning"><?php echo smartyTranslate(array('s'=>'There are no products in this category.'),$_smarty_tpl);?>
  107. </p>
  108. <?php }?>
  109. <?php }elseif($_smarty_tpl->getVariable('category')->value->id){?>
  110. <p class="warning"><?php echo smartyTranslate(array('s'=>'This category is currently unavailable.'),$_smarty_tpl);?>
  111. </p>
  112. <?php }?>
  113. <?php }?>