/tools/smarty/compile/b2e9421082e79295cfb8b2e8135c199666e72da4.file.category.tpl.php
PHP | 118 lines | 113 code | 5 blank | 0 comment | 14 complexity | 8ad2684ee57656395d7ef4ad70605d06 MD5 | raw file
Possible License(s): LGPL-2.1
- <?php /* Smarty version Smarty-3.0.7, created on 2011-12-27 11:32:48
- compiled from "C:\D\prestashoplf\prestashop/themes/prestashop/category.tpl" */ ?>
- <?php /*%%SmartyHeaderCode:279424ef9ace0654610-01642901%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- 'b2e9421082e79295cfb8b2e8135c199666e72da4' =>
- array (
- 0 => 'C:\\D\\prestashoplf\\prestashop/themes/prestashop/category.tpl',
- 1 => 1306404156,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '279424ef9ace0654610-01642901',
- 'function' =>
- array (
- ),
- 'has_nocache_code' => false,
- )); /*/%%SmartyHeaderCode%%*/?>
- <?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php';
- ?>
- <?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);
- echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?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);
- echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?php if (isset($_smarty_tpl->getVariable('category',null,true,false)->value)){?>
- <?php if ($_smarty_tpl->getVariable('category')->value->id&&$_smarty_tpl->getVariable('category')->value->active){?>
- <h1><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
- <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);?>
- <?php }else{ ?><?php if ($_smarty_tpl->getVariable('nb_products')->value==1){?><?php echo smartyTranslate(array('s'=>'There is'),$_smarty_tpl);?>
- <?php }else{ ?><?php echo smartyTranslate(array('s'=>'There are'),$_smarty_tpl);?>
- <?php }?> <?php echo $_smarty_tpl->getVariable('nb_products')->value;?>
-  <?php if ($_smarty_tpl->getVariable('nb_products')->value==1){?><?php echo smartyTranslate(array('s'=>'product.'),$_smarty_tpl);?>
- <?php }else{ ?><?php echo smartyTranslate(array('s'=>'products.'),$_smarty_tpl);?>
- <?php }?><?php }?></span>
- </h1>
- <?php if ($_smarty_tpl->getVariable('scenes')->value){?>
- <!-- Scenes -->
- <?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);
- $_template->assign('scenes',$_smarty_tpl->getVariable('scenes')->value); echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?php }else{ ?>
- <!-- Category image -->
- <?php if ($_smarty_tpl->getVariable('category')->value->id_image){?>
- <div class="align_center">
- <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');?>
- " alt="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
- " title="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('category')->value->name,'htmlall','UTF-8');?>
- " id="categoryImage" width="<?php echo $_smarty_tpl->getVariable('categorySize')->value['width'];?>
- " height="<?php echo $_smarty_tpl->getVariable('categorySize')->value['height'];?>
- " />
- </div>
- <?php }?>
- <?php }?>
- <?php if ($_smarty_tpl->getVariable('category')->value->description){?>
- <div class="cat_desc"><?php echo $_smarty_tpl->getVariable('category')->value->description;?>
- </div>
- <?php }?>
- <?php if (isset($_smarty_tpl->getVariable('subcategories',null,true,false)->value)){?>
- <!-- Subcategories -->
- <div id="subcategories">
- <h3><?php echo smartyTranslate(array('s'=>'Subcategories'),$_smarty_tpl);?>
- </h3>
- <ul class="inline_list">
- <?php $_smarty_tpl->tpl_vars['subcategory'] = new Smarty_Variable;
- $_from = $_smarty_tpl->getVariable('subcategories')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- if ($_smarty_tpl->_count($_from) > 0){
- foreach ($_from as $_smarty_tpl->tpl_vars['subcategory']->key => $_smarty_tpl->tpl_vars['subcategory']->value){
- ?>
- <li>
- <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');?>
- " title="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['subcategory']->value['name'],'htmlall','UTF-8');?>
- ">
- <?php if ($_smarty_tpl->tpl_vars['subcategory']->value['id_image']){?>
- <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');?>
- " alt="" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
- " height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
- " />
- <?php }else{ ?>
- <img src="<?php echo $_smarty_tpl->getVariable('img_cat_dir')->value;?>
- default-medium.jpg" alt="" width="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['width'];?>
- " height="<?php echo $_smarty_tpl->getVariable('mediumSize')->value['height'];?>
- " />
- <?php }?>
- </a><br />
- <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');?>
- "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['subcategory']->value['name'],'htmlall','UTF-8');?>
- </a>
- </li>
- <?php }} ?>
- </ul>
- <br class="clear"/>
- </div>
- <?php }?>
- <?php if ($_smarty_tpl->getVariable('products')->value){?>
- <?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);
- echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?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);
- echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?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);
- $_template->assign('products',$_smarty_tpl->getVariable('products')->value); echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?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);
- echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?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);
- echo $_template->getRenderedTemplate();?><?php unset($_template);?>
- <?php }elseif(!isset($_smarty_tpl->getVariable('subcategories',null,true,false)->value)){?>
- <p class="warning"><?php echo smartyTranslate(array('s'=>'There are no products in this category.'),$_smarty_tpl);?>
- </p>
- <?php }?>
- <?php }elseif($_smarty_tpl->getVariable('category')->value->id){?>
- <p class="warning"><?php echo smartyTranslate(array('s'=>'This category is currently unavailable.'),$_smarty_tpl);?>
- </p>
- <?php }?>
- <?php }?>