/app/cache/prod/smarty/compile/35/65/5e/35655e6409b6198f29dd6e732ef9598dec599880.module.ps_shoppingcart.tpl.php
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
- <?php /* Smarty version Smarty-3.1.19, created on 2018-04-11 22:07:54
- compiled from "module:ps_shoppingcart/ps_shoppingcart.tpl" */ ?>
- <?php /*%%SmartyHeaderCode:2494497625ace5d0aee80d8-09721893%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_valid = $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- '35655e6409b6198f29dd6e732ef9598dec599880' =>
- array (
- 0 => 'module:ps_shoppingcart/ps_shoppingcart.tpl',
- 1 => 1523458027,
- 2 => 'module',
- ),
- ),
- 'nocache_hash' => '2494497625ace5d0aee80d8-09721893',
- 'function' =>
- array (
- ),
- 'variables' =>
- array (
- 'refresh_url' => 0,
- 'cart_url' => 0,
- 'cart' => 0,
- 'product' => 0,
- 'subtotal' => 0,
- ),
- 'has_nocache_code' => false,
- 'version' => 'Smarty-3.1.19',
- 'unifunc' => 'content_5ace5d0af130a6_98657026',
- ),false); /*/%%SmartyHeaderCode%%*/?>
- <?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');?>
- ">
- <div class="header" data-target="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" role="button">
- <a rel="nofollow" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart_url']->value, ENT_QUOTES, 'UTF-8');?>
- ">
- <!-- <?php echo smartyTranslate(array('s'=>'Your bag: Total','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?>
- <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['totals']['total']['value'], ENT_QUOTES, 'UTF-8');?>
- -->
- <span class="item_total"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['products_count'], ENT_QUOTES, 'UTF-8');?>
- </span>
- </a>
- </div>
- <div class="body dropdown-menu">
- <ul>
- <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['cart']->value['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
- $_smarty_tpl->tpl_vars['product']->_loop = true;
- ?>
- <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);?>
- </li>
- <?php } ?>
- </ul>
- <div class="price_content">
- <div class="cart-subtotals">
- <?php $_smarty_tpl->tpl_vars["subtotal"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["subtotal"]->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['cart']->value['subtotals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars["subtotal"]->key => $_smarty_tpl->tpl_vars["subtotal"]->value) {
- $_smarty_tpl->tpl_vars["subtotal"]->_loop = true;
- ?>
- <div class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtotal']->value['type'], ENT_QUOTES, 'UTF-8');?>
- price_inline">
- <span class="label"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtotal']->value['label'], ENT_QUOTES, 'UTF-8');?>
- </span>
- <span class="value"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['subtotal']->value['value'], ENT_QUOTES, 'UTF-8');?>
- </span>
- </div>
- <?php } ?>
- </div>
- <div class="cart-total price_inline">
- <span class="label"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['totals']['total']['label'], ENT_QUOTES, 'UTF-8');?>
- </span>
- <span class="value"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart']->value['totals']['total']['value'], ENT_QUOTES, 'UTF-8');?>
- </span>
- </div>
- </div>
- <div class="checkout">
- <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['cart_url']->value, ENT_QUOTES, 'UTF-8');?>
- " class="btn btn-primary"><?php echo smartyTranslate(array('s'=>'checkout','d'=>'Shop.Theme.Actions'),$_smarty_tpl);?>
- </a>
- </div>
- </div>
- </div>
- <?php }} ?>