PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/prestashop/_/cache/smarty/compile/53/ca/e5/53cae59f7da932e5ce8905ed1a48264eb0ab0bba.file.mywishlist.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 223 lines | 213 code | 10 blank | 0 comment | 18 complexity | 86d5cb47d146b31297d4851262d13e88 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:51
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\modules\blockwishlist\views\templates\front\mywishlist.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:367757c495db35a4e8-51639538%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '53cae59f7da932e5ce8905ed1a48264eb0ab0bba' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\modules\\blockwishlist\\views\\templates\\front\\mywishlist.tpl',
  10. 1 => 1472500928,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '367757c495db35a4e8-51639538',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'navigationPipe' => 0,
  22. 'id_customer' => 0,
  23. 'token' => 0,
  24. 'errors' => 0,
  25. 'wishlists' => 0,
  26. 'nbProducts' => 0,
  27. 'nb' => 0,
  28. 'n' => 0,
  29. 'base_dir' => 0,
  30. ),
  31. 'has_nocache_code' => false,
  32. 'version' => 'Smarty-3.1.19',
  33. 'unifunc' => 'content_57c495dbbb2891_86974144',
  34. ),false); /*/%%SmartyHeaderCode%%*/?>
  35. <?php if ($_valid && !is_callable('content_57c495dbbb2891_86974144')) {function content_57c495dbbb2891_86974144($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\modifier.date_format.php';
  36. ?>
  37. <div id="mywishlist">
  38. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?>
  39. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  40. ">
  41. <?php echo smartyTranslate(array('s'=>'My account','mod'=>'blockwishlist'),$_smarty_tpl);?>
  42. </a>
  43. <span class="navigation-pipe">
  44. <?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
  45. </span>
  46. <span class="navigation_page">
  47. <?php echo smartyTranslate(array('s'=>'My wishlists','mod'=>'blockwishlist'),$_smarty_tpl);?>
  48. </span>
  49. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  50. if (!empty($_capture_buffer)) {
  51. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  52. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  53. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  54. } else $_smarty_tpl->capture_error();?>
  55. <h1 class="page-heading"><?php echo smartyTranslate(array('s'=>'My wishlists','mod'=>'blockwishlist'),$_smarty_tpl);?>
  56. </h1>
  57. <?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);?>
  58. <?php if (intval($_smarty_tpl->tpl_vars['id_customer']->value)!=0) {?>
  59. <form method="post" class="std box" id="form_wishlist">
  60. <fieldset>
  61. <h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'New wishlist','mod'=>'blockwishlist'),$_smarty_tpl);?>
  62. </h3>
  63. <div class="form-group">
  64. <input type="hidden" name="token" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['token']->value, ENT_QUOTES, 'UTF-8', true);?>
  65. " />
  66. <label class="align_right" for="name">
  67. <?php echo smartyTranslate(array('s'=>'Name','mod'=>'blockwishlist'),$_smarty_tpl);?>
  68. </label>
  69. <input type="text" id="name" name="name" class="inputTxt form-control" value="<?php if (isset($_POST['name'])&&count($_smarty_tpl->tpl_vars['errors']->value)>0) {?><?php echo htmlspecialchars($_POST['name'], ENT_QUOTES, 'UTF-8', true);?>
  70. <?php }?>" />
  71. </div>
  72. <p class="submit">
  73. <button id="submitWishlist" class="btn btn-default button button-medium" type="submit" name="submitWishlist">
  74. <span><?php echo smartyTranslate(array('s'=>'Save','mod'=>'blockwishlist'),$_smarty_tpl);?>
  75. <i class="icon-chevron-right right"></i></span>
  76. </button>
  77. </p>
  78. </fieldset>
  79. </form>
  80. <?php if ($_smarty_tpl->tpl_vars['wishlists']->value) {?>
  81. <div id="block-history" class="block-center">
  82. <table class="table table-bordered">
  83. <thead>
  84. <tr>
  85. <th class="first_item"><?php echo smartyTranslate(array('s'=>'Name','mod'=>'blockwishlist'),$_smarty_tpl);?>
  86. </th>
  87. <th class="item mywishlist_first"><?php echo smartyTranslate(array('s'=>'Qty','mod'=>'blockwishlist'),$_smarty_tpl);?>
  88. </th>
  89. <th class="item mywishlist_first"><?php echo smartyTranslate(array('s'=>'Viewed','mod'=>'blockwishlist'),$_smarty_tpl);?>
  90. </th>
  91. <th class="item mywishlist_second"><?php echo smartyTranslate(array('s'=>'Created','mod'=>'blockwishlist'),$_smarty_tpl);?>
  92. </th>
  93. <th class="item mywishlist_second"><?php echo smartyTranslate(array('s'=>'Direct Link','mod'=>'blockwishlist'),$_smarty_tpl);?>
  94. </th>
  95. <th class="item mywishlist_second"><?php echo smartyTranslate(array('s'=>'Default','mod'=>'blockwishlist'),$_smarty_tpl);?>
  96. </th>
  97. <th class="last_item mywishlist_first"><?php echo smartyTranslate(array('s'=>'Delete','mod'=>'blockwishlist'),$_smarty_tpl);?>
  98. </th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
  103. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
  104. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['wishlists']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
  105. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
  106. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
  107. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
  108. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
  109. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
  110. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
  111. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
  112. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
  113. } else
  114. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
  115. if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):
  116. for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
  117. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
  118. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
  119. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
  120. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
  121. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
  122. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
  123. $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last'] = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
  124. ?>
  125. <tr id="wishlist_<?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']);?>
  126. ">
  127. <td style="width:200px;">
  128. <a href="#" onclick="javascript:event.preventDefault();WishlistManage('block-order-detail', '<?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']);?>
  129. ');">
  130. <?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['name'],30,'...'), ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
  131. </a>
  132. </td>
  133. <td class="bold align_center">
  134. <?php $_smarty_tpl->tpl_vars['n'] = new Smarty_variable(0, null, 0);?>
  135. <?php $_smarty_tpl->tpl_vars['nb'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nb']->_loop = false;
  136. $_from = $_smarty_tpl->tpl_vars['nbProducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  137. foreach ($_from as $_smarty_tpl->tpl_vars['nb']->key => $_smarty_tpl->tpl_vars['nb']->value) {
  138. $_smarty_tpl->tpl_vars['nb']->_loop = true;
  139. ?>
  140. <?php if ($_smarty_tpl->tpl_vars['nb']->value['id_wishlist']==$_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']) {?>
  141. <?php $_smarty_tpl->tpl_vars['n'] = new Smarty_variable(intval($_smarty_tpl->tpl_vars['nb']->value['nbProducts']), null, 0);?>
  142. <?php }?>
  143. <?php } ?>
  144. <?php if ($_smarty_tpl->tpl_vars['n']->value) {?>
  145. <?php echo intval($_smarty_tpl->tpl_vars['n']->value);?>
  146. <?php } else { ?>
  147. 0
  148. <?php }?>
  149. </td>
  150. <td><?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['counter']);?>
  151. </td>
  152. <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['date_add'],"%Y-%m-%d");?>
  153. </td>
  154. <td>
  155. <a href="#" onclick="javascript:event.preventDefault();WishlistManage('block-order-detail', '<?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']);?>
  156. ');">
  157. <?php echo smartyTranslate(array('s'=>'View','mod'=>'blockwishlist'),$_smarty_tpl);?>
  158. </a>
  159. </td>
  160. <td class="wishlist_default">
  161. <?php if (isset($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty',null,true,false)->value['section']['i']['index']]['default'])&&$_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['default']==1) {?>
  162. <p class="is_wish_list_default">
  163. <i class="icon icon-check-square"></i>
  164. </p>
  165. <?php } else { ?>
  166. <a href="#" onclick="javascript:event.preventDefault();(WishlistDefault('wishlist_<?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']);?>
  167. ', '<?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']);?>
  168. '));">
  169. <i class="icon icon-square"></i>
  170. </a>
  171. <?php }?>
  172. </td>
  173. <td class="wishlist_delete">
  174. <a class="icon" href="#" onclick="javascript:event.preventDefault();return (WishlistDelete('wishlist_<?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']);?>
  175. ', '<?php echo intval($_smarty_tpl->tpl_vars['wishlists']->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]['id_wishlist']);?>
  176. ', '<?php echo smartyTranslate(array('s'=>'Do you really want to delete this wishlist ?','mod'=>'blockwishlist','js'=>1),$_smarty_tpl);?>
  177. '));">
  178. <i class="icon-remove"></i>
  179. </a>
  180. </td>
  181. </tr>
  182. <?php endfor; endif; ?>
  183. </tbody>
  184. </table>
  185. </div>
  186. <div id="block-order-detail">&nbsp;</div>
  187. <?php }?>
  188. <?php }?>
  189. <ul class="footer_links clearfix">
  190. <li>
  191. <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
  192. ">
  193. <span>
  194. <i class="icon-chevron-left"></i><?php echo smartyTranslate(array('s'=>'Back to Your Account','mod'=>'blockwishlist'),$_smarty_tpl);?>
  195. </span>
  196. </a>
  197. </li>
  198. <li>
  199. <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_dir']->value, ENT_QUOTES, 'UTF-8', true);?>
  200. ">
  201. <span>
  202. <i class="icon-chevron-left"></i><?php echo smartyTranslate(array('s'=>'Home','mod'=>'blockwishlist'),$_smarty_tpl);?>
  203. </span>
  204. </a>
  205. </li>
  206. </ul>
  207. </div>
  208. <?php }} ?>