PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/prod/smarty/compile/35/65/5e/35655e6409b6198f29dd6e732ef9598dec599880.module.ps_shoppingcart.tpl.php

https://bitbucket.org/tippycracker/autokraitis
PHP | 83 lines | 83 code | 0 blank | 0 comment | 6 complexity | 0695394dd6457dcd60b3bc626c978c3d MD5 | raw file
Possible License(s): BSD-2-Clause, GPL-2.0, GPL-3.0, BSD-3-Clause, Apache-2.0
  1. <?php /* Smarty version Smarty-3.1.19, created on 2018-04-11 22:07:54
  2. compiled from "module:ps_shoppingcart/ps_shoppingcart.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:2494497625ace5d0aee80d8-09721893%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '35655e6409b6198f29dd6e732ef9598dec599880' =>
  8. array (
  9. 0 => 'module:ps_shoppingcart/ps_shoppingcart.tpl',
  10. 1 => 1523458027,
  11. 2 => 'module',
  12. ),
  13. ),
  14. 'nocache_hash' => '2494497625ace5d0aee80d8-09721893',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'refresh_url' => 0,
  21. 'cart_url' => 0,
  22. 'cart' => 0,
  23. 'product' => 0,
  24. 'subtotal' => 0,
  25. ),
  26. 'has_nocache_code' => false,
  27. 'version' => 'Smarty-3.1.19',
  28. 'unifunc' => 'content_5ace5d0af130a6_98657026',
  29. ),false); /*/%%SmartyHeaderCode%%*/?>
  30. <?php if ($_valid && !is_callable('content_5ace5d0af130a6_98657026')) {function content_5ace5d0af130a6_98657026($_smarty_tpl) {?><div class="blockcart cart-preview dropdown js-dropdown" data-refresh-url="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['refresh_url']->value, ENT_QUOTES, 'UTF-8');?>
  31. ">
  32. <div class="header" data-target="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" role="button">
  33. <a rel="nofollow" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart_url']->value, ENT_QUOTES, 'UTF-8');?>
  34. ">
  35. <!-- <?php echo smartyTranslate(array('s'=>'Your bag: Total','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?>
  36. <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['totals']['total']['value'], ENT_QUOTES, 'UTF-8');?>
  37. -->
  38. <span class="item_total"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['products_count'], ENT_QUOTES, 'UTF-8');?>
  39. </span>
  40. </a>
  41. </div>
  42. <div class="body dropdown-menu">
  43. <ul>
  44. <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
  45. $_from = $_smarty_tpl->tpl_vars['cart']->value['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  46. foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
  47. $_smarty_tpl->tpl_vars['product']->_loop = true;
  48. ?>
  49. <li><?php echo $_smarty_tpl->getSubTemplate ('module:ps_shoppingcart/ps_shoppingcart-product-line.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('product'=>$_smarty_tpl->tpl_vars['product']->value), 0);?>
  50. </li>
  51. <?php } ?>
  52. </ul>
  53. <div class="price_content">
  54. <div class="cart-subtotals">
  55. <?php $_smarty_tpl->tpl_vars["subtotal"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["subtotal"]->_loop = false;
  56. $_from = $_smarty_tpl->tpl_vars['cart']->value['subtotals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  57. foreach ($_from as $_smarty_tpl->tpl_vars["subtotal"]->key => $_smarty_tpl->tpl_vars["subtotal"]->value) {
  58. $_smarty_tpl->tpl_vars["subtotal"]->_loop = true;
  59. ?>
  60. <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtotal']->value['type'], ENT_QUOTES, 'UTF-8');?>
  61. price_inline">
  62. <span class="label"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtotal']->value['label'], ENT_QUOTES, 'UTF-8');?>
  63. </span>
  64. <span class="value"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtotal']->value['value'], ENT_QUOTES, 'UTF-8');?>
  65. </span>
  66. </div>
  67. <?php } ?>
  68. </div>
  69. <div class="cart-total price_inline">
  70. <span class="label"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['totals']['total']['label'], ENT_QUOTES, 'UTF-8');?>
  71. </span>
  72. <span class="value"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['totals']['total']['value'], ENT_QUOTES, 'UTF-8');?>
  73. </span>
  74. </div>
  75. </div>
  76. <div class="checkout">
  77. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart_url']->value, ENT_QUOTES, 'UTF-8');?>
  78. " class="btn btn-primary"><?php echo smartyTranslate(array('s'=>'checkout','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?>
  79. </a>
  80. </div>
  81. </div>
  82. </div>
  83. <?php }} ?>