PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/cache/smarty/compile/bc/53/e0/bc53e06c98d44bbfe0c8b41787be5c205da148b6.file.blockwishlist.tpl.php

https://bitbucket.org/eljosze94/automasterstore
PHP | 137 lines | 132 code | 5 blank | 0 comment | 15 complexity | 296730e2be327a69a39c922acecc27a7 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, JSON, MIT, LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <?php /* Smarty version Smarty-3.1.19, created on 2018-04-02 11:12:21
  2. compiled from "/home/h3hued5u4248/public_html/themes/jms_deermarket/modules/blockwishlist/blockwishlist.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:12188871685ac23a452a8d70-22112628%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'bc53e06c98d44bbfe0c8b41787be5c205da148b6' =>
  8. array (
  9. 0 => '/home/h3hued5u4248/public_html/themes/jms_deermarket/modules/blockwishlist/blockwishlist.tpl',
  10. 1 => 1519076591,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '12188871685ac23a452a8d70-22112628',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'wishlist_products' => 0,
  22. 'product' => 0,
  23. 'token' => 0,
  24. 'wishlists' => 0,
  25. 'wishlist' => 0,
  26. 'id_wishlist' => 0,
  27. ),
  28. 'has_nocache_code' => false,
  29. 'version' => 'Smarty-3.1.19',
  30. 'unifunc' => 'content_5ac23a452cbcc9_88543272',
  31. ),false); /*/%%SmartyHeaderCode%%*/?>
  32. <?php if ($_valid && !is_callable('content_5ac23a452cbcc9_88543272')) {function content_5ac23a452cbcc9_88543272($_smarty_tpl) {?>
  33. <div id="wishlist_block" class="block account">
  34. <h4 class="title_block">
  35. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('blockwishlist','mywishlist',array(),true), ENT_QUOTES, 'UTF-8', true);?>
  36. " title="<?php echo smartyTranslate(array('s'=>'My wishlists','mod'=>'blockwishlist'),$_smarty_tpl);?>
  37. " rel="nofollow">
  38. <?php echo smartyTranslate(array('s'=>'Wishlist','mod'=>'blockwishlist'),$_smarty_tpl);?>
  39. </a>
  40. </h4>
  41. <div class="block_content">
  42. <div id="wishlist_block_list" class="expanded">
  43. <?php if ($_smarty_tpl->tpl_vars['wishlist_products']->value) {?>
  44. <dl class="products">
  45. <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
  46. $_from = $_smarty_tpl->tpl_vars['wishlist_products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  47. $_smarty_tpl->tpl_vars['product']->total= $_smarty_tpl->_count($_from);
  48. $_smarty_tpl->tpl_vars['product']->iteration=0;
  49. $_smarty_tpl->tpl_vars['product']->index=-1;
  50. foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
  51. $_smarty_tpl->tpl_vars['product']->_loop = true;
  52. $_smarty_tpl->tpl_vars['product']->iteration++;
  53. $_smarty_tpl->tpl_vars['product']->index++;
  54. $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0;
  55. $_smarty_tpl->tpl_vars['product']->last = $_smarty_tpl->tpl_vars['product']->iteration === $_smarty_tpl->tpl_vars['product']->total;
  56. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['first'] = $_smarty_tpl->tpl_vars['product']->first;
  57. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['last'] = $_smarty_tpl->tpl_vars['product']->last;
  58. ?>
  59. <dt class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['last']) {?>last_item<?php } else { ?>item<?php }?>">
  60. <span class="quantity-formated">
  61. <span class="quantity"><?php echo intval($_smarty_tpl->tpl_vars['product']->value['quantity']);?>
  62. </span>x
  63. </span>
  64. <a class="cart_block_product_name" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category_rewrite']), ENT_QUOTES, 'UTF-8', true);?>
  65. " title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  66. ">
  67. <?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['product']->value['name'],30,'...'), ENT_QUOTES, 'UTF-8', true);?>
  68. </a>
  69. <a class="ajax_cart_block_remove_link" href="javascript:;" rel="nofollow" title="<?php echo smartyTranslate(array('s'=>'remove this product from my wishlist','mod'=>'blockwishlist'),$_smarty_tpl);?>
  70. " onclick="javascript:WishlistCart('wishlist_block_list', 'delete', '<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  71. ', <?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  72. , '0', '<?php if (isset($_smarty_tpl->tpl_vars['token']->value)) {?><?php echo $_smarty_tpl->tpl_vars['token']->value;?>
  73. <?php }?>');">
  74. <i class="icon-remove-sign "></i>
  75. </a>
  76. </dt>
  77. <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes_small'])) {?>
  78. <dd class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['i']['last']) {?>last_item<?php } else { ?>item<?php }?>">
  79. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category_rewrite']), ENT_QUOTES, 'UTF-8', true);?>
  80. " title="<?php echo smartyTranslate(array('s'=>'Product detail'),$_smarty_tpl);?>
  81. ">
  82. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['attributes_small'], ENT_QUOTES, 'UTF-8', true);?>
  83. </a>
  84. </dd>
  85. <?php }?>
  86. <?php } ?>
  87. </dl>
  88. <?php } else { ?>
  89. <dl class="products no-products">
  90. <dt><?php echo smartyTranslate(array('s'=>'No products','mod'=>'blockwishlist'),$_smarty_tpl);?>
  91. </dt>
  92. <dd></dd>
  93. </dl>
  94. <?php }?>
  95. </div> <!-- #wishlist_block_list -->
  96. <div class="lnk">
  97. <?php if ($_smarty_tpl->tpl_vars['wishlists']->value) {?>
  98. <div class="form-group selector1">
  99. <select name="wishlists" id="wishlists" class="form-control">
  100. <?php $_smarty_tpl->tpl_vars['wishlist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['wishlist']->_loop = false;
  101. $_from = $_smarty_tpl->tpl_vars['wishlists']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  102. $_smarty_tpl->tpl_vars['wishlist']->total= $_smarty_tpl->_count($_from);
  103. $_smarty_tpl->tpl_vars['wishlist']->iteration=0;
  104. $_smarty_tpl->tpl_vars['wishlist']->index=-1;
  105. foreach ($_from as $_smarty_tpl->tpl_vars['wishlist']->key => $_smarty_tpl->tpl_vars['wishlist']->value) {
  106. $_smarty_tpl->tpl_vars['wishlist']->_loop = true;
  107. $_smarty_tpl->tpl_vars['wishlist']->iteration++;
  108. $_smarty_tpl->tpl_vars['wishlist']->index++;
  109. $_smarty_tpl->tpl_vars['wishlist']->first = $_smarty_tpl->tpl_vars['wishlist']->index === 0;
  110. $_smarty_tpl->tpl_vars['wishlist']->last = $_smarty_tpl->tpl_vars['wishlist']->iteration === $_smarty_tpl->tpl_vars['wishlist']->total;
  111. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['first'] = $_smarty_tpl->tpl_vars['wishlist']->first;
  112. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['i']['last'] = $_smarty_tpl->tpl_vars['wishlist']->last;
  113. ?>
  114. <option value="<?php echo $_smarty_tpl->tpl_vars['wishlist']->value['id_wishlist'];?>
  115. "<?php if ($_smarty_tpl->tpl_vars['id_wishlist']->value==$_smarty_tpl->tpl_vars['wishlist']->value['id_wishlist']||($_smarty_tpl->tpl_vars['id_wishlist']->value==false&&$_smarty_tpl->getVariable('smarty')->value['foreach']['i']['first'])) {?> selected="selected"<?php }?>>
  116. <?php echo htmlspecialchars($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['truncate'][0][0]->smarty_modifier_truncate($_smarty_tpl->tpl_vars['wishlist']->value['name'],22,'...'), ENT_QUOTES, 'UTF-8', true);?>
  117. </option>
  118. <?php } ?>
  119. </select>
  120. </div>
  121. <?php }?>
  122. <a class="btn btn-default button button-small" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('blockwishlist','mywishlist',array(),true), ENT_QUOTES, 'UTF-8', true);?>
  123. " title="<?php echo smartyTranslate(array('s'=>'My wishlists','mod'=>'blockwishlist'),$_smarty_tpl);?>
  124. ">
  125. <span>
  126. <?php echo smartyTranslate(array('s'=>'My wishlists','mod'=>'blockwishlist'),$_smarty_tpl);?>
  127. <i class="icon-chevron-right right"></i>
  128. </span>
  129. </a>
  130. </div> <!-- .lnk -->
  131. </div> <!-- .block_content -->
  132. </div> <!-- #wishlist_block --><?php }} ?>