/tools/smarty_v2/compile/%%B8^B8E^B8E75A0A%%manufacturer-list.tpl.php
PHP | 91 lines | 82 code | 9 blank | 0 comment | 25 complexity | 1444651915a8edd3851bfe980cb4ed6c MD5 | raw file
Possible License(s): LGPL-2.1
- <?php /* Smarty version 2.6.20, created on 2011-12-03 00:31:29
- compiled from C:%5CD%5CMarocMall/themes/prestashop/manufacturer-list.tpl */ ?>
- <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
- smarty_core_load_plugins(array('plugins' => array(array('function', 'l', 'C:\\D\\MarocMall/themes/prestashop/manufacturer-list.tpl', 2, false),array('modifier', 'escape', 'C:\\D\\MarocMall/themes/prestashop/manufacturer-list.tpl', 28, false),array('modifier', 'truncate', 'C:\\D\\MarocMall/themes/prestashop/manufacturer-list.tpl', 35, false),array('modifier', 'intval', 'C:\\D\\MarocMall/themes/prestashop/manufacturer-list.tpl', 47, false),)), $this); ?>
- <?php ob_start(); ?><?php echo smartyTranslate(array('s' => 'Manufacturers'), $this);?>
- <?php $this->_smarty_vars['capture']['path'] = ob_get_contents(); ob_end_clean(); ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <h1><?php echo smartyTranslate(array('s' => 'Manufacturers'), $this);?>
- </h1>
- <?php if (isset ( $this->_tpl_vars['errors'] ) && $this->_tpl_vars['errors']): ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php else: ?>
- <p><?php echo '<span class="bold">'; ?><?php if ($this->_tpl_vars['nbManufacturers'] == 0): ?><?php echo ''; ?><?php echo smartyTranslate(array('s' => 'There are no manufacturers.'), $this);?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php if ($this->_tpl_vars['nbManufacturers'] == 1): ?><?php echo ''; ?><?php echo smartyTranslate(array('s' => 'There is'), $this);?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo smartyTranslate(array('s' => 'There are'), $this);?><?php echo ''; ?><?php endif; ?><?php echo ' '; ?><?php echo $this->_tpl_vars['nbManufacturers']; ?><?php echo ' '; ?><?php if ($this->_tpl_vars['nbManufacturers'] == 1): ?><?php echo ''; ?><?php echo smartyTranslate(array('s' => 'manufacturer.'), $this);?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo smartyTranslate(array('s' => 'manufacturers.'), $this);?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php endif; ?><?php echo '</span>'; ?>
- </p>
- <?php if ($this->_tpl_vars['nbManufacturers'] > 0): ?>
- <ul id="manufacturers_list">
- <?php $_from = $this->_tpl_vars['manufacturers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['manufacturers'] = array('total' => count($_from), 'iteration' => 0);
- if ($this->_foreach['manufacturers']['total'] > 0):
- foreach ($_from as $this->_tpl_vars['manufacturer']):
- $this->_foreach['manufacturers']['iteration']++;
- ?>
- <li class="clearfix <?php if (($this->_foreach['manufacturers']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['manufacturers']['iteration'] == $this->_foreach['manufacturers']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>">
- <div class="left_side">
- <!-- logo -->
- <div class="logo">
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']->getmanufacturerLink($this->_tpl_vars['manufacturer']['id_manufacturer'],$this->_tpl_vars['manufacturer']['link_rewrite']))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- " title="<?php echo ((is_array($_tmp=$this->_tpl_vars['manufacturer']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- "><?php endif; ?>
- <img src="<?php echo $this->_tpl_vars['img_manu_dir']; ?>
- <?php echo ((is_array($_tmp=$this->_tpl_vars['manufacturer']['image'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- -medium.jpg" alt="" width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
- " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
- " />
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
- </div>
- <!-- name -->
- <h3>
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']->getmanufacturerLink($this->_tpl_vars['manufacturer']['id_manufacturer'],$this->_tpl_vars['manufacturer']['link_rewrite']))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- "><?php endif; ?>
- <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['manufacturer']['name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 60, '...') : smarty_modifier_truncate($_tmp, 60, '...')))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
- </h3>
- <p class="description rte">
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']->getmanufacturerLink($this->_tpl_vars['manufacturer']['id_manufacturer'],$this->_tpl_vars['manufacturer']['link_rewrite']))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- "><?php endif; ?>
- <?php echo $this->_tpl_vars['manufacturer']['description']; ?>
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
- </p>
- </div>
- <div class="right_side">
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']->getmanufacturerLink($this->_tpl_vars['manufacturer']['id_manufacturer'],$this->_tpl_vars['manufacturer']['link_rewrite']))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- "><?php endif; ?>
- <span><?php echo ((is_array($_tmp=$this->_tpl_vars['manufacturer']['nb_products'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] == 1): ?><?php echo smartyTranslate(array('s' => 'product'), $this);?>
- <?php else: ?><?php echo smartyTranslate(array('s' => 'products'), $this);?>
- <?php endif; ?></span>
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
- <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?>
- <a class="button" href="<?php echo ((is_array($_tmp=$this->_tpl_vars['link']->getmanufacturerLink($this->_tpl_vars['manufacturer']['id_manufacturer'],$this->_tpl_vars['manufacturer']['link_rewrite']))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
- "><?php echo smartyTranslate(array('s' => 'view products'), $this);?>
- </a>
- <?php endif; ?>
- </div>
- <br class="clear"/>
- </li>
- <?php endforeach; endif; unset($_from); ?>
- </ul>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./pagination.tpl", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php endif; ?>
- <?php endif; ?>