PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty_v2/compile/%%B8^B8E^B8E75A0A%%manufacturer-list.tpl.php

http://marocmall.googlecode.com/
PHP | 91 lines | 82 code | 9 blank | 0 comment | 25 complexity | 1444651915a8edd3851bfe980cb4ed6c MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version 2.6.20, created on 2011-12-03 00:31:29
  2. compiled from C:%5CD%5CMarocMall/themes/prestashop/manufacturer-list.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/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); ?>
  5. <?php ob_start(); ?><?php echo smartyTranslate(array('s' => 'Manufacturers'), $this);?>
  6. <?php $this->_smarty_vars['capture']['path'] = ob_get_contents(); ob_end_clean(); ?>
  7. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  8. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
  9. $this->_tpl_vars = $_smarty_tpl_vars;
  10. unset($_smarty_tpl_vars);
  11. ?>
  12. <h1><?php echo smartyTranslate(array('s' => 'Manufacturers'), $this);?>
  13. </h1>
  14. <?php if (isset ( $this->_tpl_vars['errors'] ) && $this->_tpl_vars['errors']): ?>
  15. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  16. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
  17. $this->_tpl_vars = $_smarty_tpl_vars;
  18. unset($_smarty_tpl_vars);
  19. ?>
  20. <?php else: ?>
  21. <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 '&#160;'; ?><?php echo $this->_tpl_vars['nbManufacturers']; ?><?php echo '&#160;'; ?><?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>'; ?>
  22. </p>
  23. <?php if ($this->_tpl_vars['nbManufacturers'] > 0): ?>
  24. <ul id="manufacturers_list">
  25. <?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);
  26. if ($this->_foreach['manufacturers']['total'] > 0):
  27. foreach ($_from as $this->_tpl_vars['manufacturer']):
  28. $this->_foreach['manufacturers']['iteration']++;
  29. ?>
  30. <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; ?>">
  31. <div class="left_side">
  32. <!-- logo -->
  33. <div class="logo">
  34. <?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')); ?>
  35. " 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')); ?>
  36. "><?php endif; ?>
  37. <img src="<?php echo $this->_tpl_vars['img_manu_dir']; ?>
  38. <?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')); ?>
  39. -medium.jpg" alt="" width="<?php echo $this->_tpl_vars['mediumSize']['width']; ?>
  40. " height="<?php echo $this->_tpl_vars['mediumSize']['height']; ?>
  41. " />
  42. <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
  43. </div>
  44. <!-- name -->
  45. <h3>
  46. <?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')); ?>
  47. "><?php endif; ?>
  48. <?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')); ?>
  49. <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
  50. </h3>
  51. <p class="description rte">
  52. <?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')); ?>
  53. "><?php endif; ?>
  54. <?php echo $this->_tpl_vars['manufacturer']['description']; ?>
  55. <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
  56. </p>
  57. </div>
  58. <div class="right_side">
  59. <?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')); ?>
  60. "><?php endif; ?>
  61. <span><?php echo ((is_array($_tmp=$this->_tpl_vars['manufacturer']['nb_products'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
  62. <?php if ($this->_tpl_vars['manufacturer']['nb_products'] == 1): ?><?php echo smartyTranslate(array('s' => 'product'), $this);?>
  63. <?php else: ?><?php echo smartyTranslate(array('s' => 'products'), $this);?>
  64. <?php endif; ?></span>
  65. <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?></a><?php endif; ?>
  66. <?php if ($this->_tpl_vars['manufacturer']['nb_products'] > 0): ?>
  67. <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')); ?>
  68. "><?php echo smartyTranslate(array('s' => 'view products'), $this);?>
  69. </a>
  70. <?php endif; ?>
  71. </div>
  72. <br class="clear"/>
  73. </li>
  74. <?php endforeach; endif; unset($_from); ?>
  75. </ul>
  76. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  77. $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./pagination.tpl", 'smarty_include_vars' => array()));
  78. $this->_tpl_vars = $_smarty_tpl_vars;
  79. unset($_smarty_tpl_vars);
  80. ?>
  81. <?php endif; ?>
  82. <?php endif; ?>