PageRenderTime 40ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/prestashop/_/cache/smarty/compile/e5/eb/1f/e5eb1f180a068abb225563452f2d671f2b496641.file.manufacturer-list.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 209 lines | 187 code | 22 blank | 0 comment | 34 complexity | 88bc627f8b68e21fc34388708ad7e6a8 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:36
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\manufacturer-list.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:1258457c495cc9f8084-63483148%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'e5eb1f180a068abb225563452f2d671f2b496641' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\manufacturer-list.tpl',
  10. 1 => 1472500914,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '1258457c495cc9f8084-63483148',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'nbManufacturers' => 0,
  21. 'errors' => 0,
  22. 'manufacturer' => 0,
  23. 'manufacturers' => 0,
  24. 'nbLi' => 0,
  25. 'nbItemsPerLine' => 0,
  26. 'nbItemsPerLineTablet' => 0,
  27. 'totModulo' => 0,
  28. 'totModuloTablet' => 0,
  29. 'link' => 0,
  30. 'img_manu_dir' => 0,
  31. ),
  32. 'has_nocache_code' => false,
  33. 'version' => 'Smarty-3.1.19',
  34. 'unifunc' => 'content_57c495cd02dc63_74728356',
  35. ),false); /*/%%SmartyHeaderCode%%*/?>
  36. <?php if ($_valid && !is_callable('content_57c495cd02dc63_74728356')) {function content_57c495cd02dc63_74728356($_smarty_tpl) {?><?php if (!is_callable('smarty_function_math')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\function.math.php';
  37. ?>
  38. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><?php echo smartyTranslate(array('s'=>'Manufacturers:'),$_smarty_tpl);?>
  39. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  40. if (!empty($_capture_buffer)) {
  41. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  42. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  43. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  44. } else $_smarty_tpl->capture_error();?>
  45. <h1 class="page-heading product-listing">
  46. <?php echo smartyTranslate(array('s'=>'Brands'),$_smarty_tpl);?>
  47. <span class="heading-counter"><?php if ($_smarty_tpl->tpl_vars['nbManufacturers']->value==0) {?><?php echo smartyTranslate(array('s'=>'There are no manufacturers.'),$_smarty_tpl);?>
  48. <?php } else { ?><?php if ($_smarty_tpl->tpl_vars['nbManufacturers']->value==1) {?><?php echo smartyTranslate(array('s'=>'There is 1 brand'),$_smarty_tpl);?>
  49. <?php } else { ?><?php echo smartyTranslate(array('s'=>'There are %d brands','sprintf'=>$_smarty_tpl->tpl_vars['nbManufacturers']->value),$_smarty_tpl);?>
  50. <?php }?><?php }?></span>
  51. </h1>
  52. <?php if (isset($_smarty_tpl->tpl_vars['errors']->value)&&$_smarty_tpl->tpl_vars['errors']->value) {?>
  53. <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
  54. <?php } else { ?>
  55. <?php if ($_smarty_tpl->tpl_vars['nbManufacturers']->value>0) {?>
  56. <div class="content_sortPagiBar">
  57. <div class="sortPagiBar clearfix">
  58. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value)&&isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  59. <ul class="display hidden-xs">
  60. <li class="display-title">
  61. <?php echo smartyTranslate(array('s'=>'View:'),$_smarty_tpl);?>
  62. </li>
  63. <li id="grid">
  64. <a rel="nofollow" href="#" title="<?php echo smartyTranslate(array('s'=>'Grid'),$_smarty_tpl);?>
  65. ">
  66. <i class="icon-th-large"></i><?php echo smartyTranslate(array('s'=>'Grid'),$_smarty_tpl);?>
  67. </a>
  68. </li>
  69. <li id="list">
  70. <a rel="nofollow" href="#" title="<?php echo smartyTranslate(array('s'=>'List'),$_smarty_tpl);?>
  71. ">
  72. <i class="icon-th-list"></i><?php echo smartyTranslate(array('s'=>'List'),$_smarty_tpl);?>
  73. </a>
  74. </li>
  75. </ul>
  76. <?php }?>
  77. <?php echo $_smarty_tpl->getSubTemplate ("./nbr-product-page.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
  78. </div>
  79. <div class="top-pagination-content clearfix bottom-line">
  80. <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_follow'=>1), 0);?>
  81. </div>
  82. </div> <!-- .content_sortPagiBar -->
  83. <?php $_smarty_tpl->tpl_vars['nbItemsPerLine'] = new Smarty_variable(3, null, 0);?>
  84. <?php $_smarty_tpl->tpl_vars['nbItemsPerLineTablet'] = new Smarty_variable(2, null, 0);?>
  85. <?php $_smarty_tpl->tpl_vars['nbLi'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['manufacturers']->value), null, 0);?>
  86. <?php echo smarty_function_math(array('equation'=>"nbLi/nbItemsPerLine",'nbLi'=>$_smarty_tpl->tpl_vars['nbLi']->value,'nbItemsPerLine'=>$_smarty_tpl->tpl_vars['nbItemsPerLine']->value,'assign'=>'nbLines'),$_smarty_tpl);?>
  87. <?php echo smarty_function_math(array('equation'=>"nbLi/nbItemsPerLineTablet",'nbLi'=>$_smarty_tpl->tpl_vars['nbLi']->value,'nbItemsPerLineTablet'=>$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value,'assign'=>'nbLinesTablet'),$_smarty_tpl);?>
  88. <ul id="manufacturers_list" class="list row">
  89. <?php $_smarty_tpl->tpl_vars['manufacturer'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['manufacturer']->_loop = false;
  90. $_from = $_smarty_tpl->tpl_vars['manufacturers']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  91. $_smarty_tpl->tpl_vars['manufacturer']->total= $_smarty_tpl->_count($_from);
  92. $_smarty_tpl->tpl_vars['manufacturer']->iteration=0;
  93. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['total'] = $_smarty_tpl->tpl_vars['manufacturer']->total;
  94. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['iteration']=0;
  95. foreach ($_from as $_smarty_tpl->tpl_vars['manufacturer']->key => $_smarty_tpl->tpl_vars['manufacturer']->value) {
  96. $_smarty_tpl->tpl_vars['manufacturer']->_loop = true;
  97. $_smarty_tpl->tpl_vars['manufacturer']->iteration++;
  98. $_smarty_tpl->tpl_vars['manufacturer']->last = $_smarty_tpl->tpl_vars['manufacturer']->iteration === $_smarty_tpl->tpl_vars['manufacturer']->total;
  99. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['iteration']++;
  100. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['manufacturers']['last'] = $_smarty_tpl->tpl_vars['manufacturer']->last;
  101. ?>
  102. <?php echo smarty_function_math(array('equation'=>"(total%perLine)",'total'=>$_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total'],'perLine'=>$_smarty_tpl->tpl_vars['nbItemsPerLine']->value,'assign'=>'totModulo'),$_smarty_tpl);?>
  103. <?php echo smarty_function_math(array('equation'=>"(total%perLineT)",'total'=>$_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total'],'perLineT'=>$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value,'assign'=>'totModuloTablet'),$_smarty_tpl);?>
  104. <?php if ($_smarty_tpl->tpl_vars['totModulo']->value==0) {?><?php $_smarty_tpl->tpl_vars['totModulo'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLine']->value, null, 0);?><?php }?>
  105. <?php if ($_smarty_tpl->tpl_vars['totModuloTablet']->value==0) {?><?php $_smarty_tpl->tpl_vars['totModuloTablet'] = new Smarty_variable($_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value, null, 0);?><?php }?>
  106. <li class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLine']->value==0) {?> last-in-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLine']->value==1) {?> first-in-line<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total']-$_smarty_tpl->tpl_vars['totModulo']->value)) {?>last-line<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value==0) {?>last-item-of-tablet-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value==1) {?>first-item-of-tablet-line<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['total']-$_smarty_tpl->tpl_vars['totModuloTablet']->value)) {?>last-tablet-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['manufacturers']['last']) {?> item-last<?php }?> col-xs-12">
  107. <div class="mansup-container">
  108. <div class="row">
  109. <div class="left-side col-xs-12 col-sm-3">
  110. <div class="logo">
  111. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  112. <a
  113. class="lnk_img"
  114. href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'],$_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);?>
  115. "
  116. title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['manufacturer']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  117. " >
  118. <?php }?>
  119. <img src="<?php echo $_smarty_tpl->tpl_vars['img_manu_dir']->value;?>
  120. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['manufacturer']->value['image'], ENT_QUOTES, 'UTF-8', true);?>
  121. -medium_default.jpg" alt="" />
  122. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  123. </a>
  124. <?php }?>
  125. </div> <!-- .logo -->
  126. </div> <!-- .left-side -->
  127. <div class="middle-side col-xs-12 col-sm-5">
  128. <h3>
  129. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  130. <a
  131. class="product-name"
  132. href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'],$_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);?>
  133. ">
  134. <?php }?>
  135. <?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['manufacturer']->value['name'],60,'...'), ENT_QUOTES, 'UTF-8', true);?>
  136. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  137. </a>
  138. <?php }?>
  139. </h3>
  140. <div class="description rte">
  141. <?php echo $_smarty_tpl->tpl_vars['manufacturer']->value['short_description'];?>
  142. </div>
  143. </div> <!-- .middle-side -->
  144. <div class="right-side col-xs-12 col-sm-4">
  145. <div class="right-side-content">
  146. <p class="product-counter">
  147. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  148. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'],$_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);?>
  149. ">
  150. <?php }?>
  151. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']==1) {?>
  152. <?php echo smartyTranslate(array('s'=>'%d product','sprintf'=>intval($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])),$_smarty_tpl);?>
  153. <?php } else { ?>
  154. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  155. <?php echo smartyTranslate(array('s'=>'%d products','sprintf'=>intval($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])),$_smarty_tpl);?>
  156. <?php }?>
  157. <?php }?>
  158. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  159. </a>
  160. <?php }?>
  161. </p>
  162. <?php if (isset($_smarty_tpl->tpl_vars['manufacturer']->value['nb_products'])&&$_smarty_tpl->tpl_vars['manufacturer']->value['nb_products']>0) {?>
  163. <a
  164. class="btn btn-default button exclusive-medium"
  165. href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getmanufacturerLink($_smarty_tpl->tpl_vars['manufacturer']->value['id_manufacturer'],$_smarty_tpl->tpl_vars['manufacturer']->value['link_rewrite']), ENT_QUOTES, 'UTF-8', true);?>
  166. ">
  167. <span>
  168. <?php echo smartyTranslate(array('s'=>'view products'),$_smarty_tpl);?>
  169. <i class="icon-chevron-right right"></i>
  170. </span>
  171. </a>
  172. <?php }?>
  173. </div>
  174. </div> <!-- .right-side -->
  175. </div>
  176. </div>
  177. </li>
  178. <?php } ?>
  179. </ul>
  180. <div class="content_sortPagiBar">
  181. <div class="bottom-pagination-content clearfix">
  182. <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_follow'=>1,'paginationId'=>'bottom'), 0);?>
  183. </div>
  184. </div>
  185. <?php }?>
  186. <?php }?>
  187. <?php }} ?>