/prestashop/_/cache/smarty/compile/2c/1e/cb/2c1ecb8d00c58f3238e3376d08d8a7940de2b5de.file.discount.tpl.php
PHP | 176 lines | 165 code | 11 blank | 0 comment | 33 complexity | 5bd26ac7b70a9ea8cdff3b9b9838b281 MD5 | raw file
- <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:33
- compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\discount.tpl" */ ?>
- <?php /*%%SmartyHeaderCode:1818957c495c9ba3475-69633593%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_valid = $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- '2c1ecb8d00c58f3238e3376d08d8a7940de2b5de' =>
- array (
- 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\discount.tpl',
- 1 => 1472500916,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '1818957c495c9ba3475-69633593',
- 'function' =>
- array (
- ),
- 'variables' =>
- array (
- 'link' => 0,
- 'navigationPipe' => 0,
- 'cart_rules' => 0,
- 'nb_cart_rules' => 0,
- 'discountDetail' => 0,
- 'force_ssl' => 0,
- 'base_dir_ssl' => 0,
- 'base_dir' => 0,
- ),
- 'has_nocache_code' => false,
- 'version' => 'Smarty-3.1.19',
- 'unifunc' => 'content_57c495c9f01660_93661634',
- ),false); /*/%%SmartyHeaderCode%%*/?>
- <?php if ($_valid && !is_callable('content_57c495c9f01660_93661634')) {function content_57c495c9f01660_93661634($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_regex_replace')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\modifier.regex_replace.php';
- ?>
- <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('my-account',true), ENT_QUOTES, 'UTF-8', true);?>
- "><?php echo smartyTranslate(array('s'=>'My account'),$_smarty_tpl);?>
- </a><span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
- </span><span class="navigation_page"><?php echo smartyTranslate(array('s'=>'My vouchers'),$_smarty_tpl);?>
- </span><?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
- if (!empty($_capture_buffer)) {
- if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
- if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
- Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
- } else $_smarty_tpl->capture_error();?>
- <h1 class="page-heading">
- <?php echo smartyTranslate(array('s'=>'My vouchers'),$_smarty_tpl);?>
- </h1>
- <?php if (isset($_smarty_tpl->tpl_vars['cart_rules']->value)&&count($_smarty_tpl->tpl_vars['cart_rules']->value)&&$_smarty_tpl->tpl_vars['nb_cart_rules']->value) {?>
- <table class="discount table table-bordered footab">
- <thead>
- <tr>
- <th data-sort-ignore="true" class="discount_code first_item"><?php echo smartyTranslate(array('s'=>'Code'),$_smarty_tpl);?>
- </th>
- <th data-sort-ignore="true" class="discount_description item"><?php echo smartyTranslate(array('s'=>'Description'),$_smarty_tpl);?>
- </th>
- <th class="discount_quantity item"><?php echo smartyTranslate(array('s'=>'Quantity'),$_smarty_tpl);?>
- </th>
- <th data-sort-ignore="true" data-hide="phone,tablet" class="discount_value item"><?php echo smartyTranslate(array('s'=>'Value'),$_smarty_tpl);?>
- *</th>
- <th data-hide="phone,tablet" class="discount_minimum item"><?php echo smartyTranslate(array('s'=>'Minimum'),$_smarty_tpl);?>
- </th>
- <th data-sort-ignore="true" data-hide="phone,tablet" class="discount_cumulative item"><?php echo smartyTranslate(array('s'=>'Cumulative'),$_smarty_tpl);?>
- </th>
- <th data-hide="phone" class="discount_expiration_date last_item"><?php echo smartyTranslate(array('s'=>'Expiration date'),$_smarty_tpl);?>
- </th>
- </tr>
- </thead>
- <tbody>
- <?php $_smarty_tpl->tpl_vars['discountDetail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['discountDetail']->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['cart_rules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- $_smarty_tpl->tpl_vars['discountDetail']->total= $_smarty_tpl->_count($_from);
- $_smarty_tpl->tpl_vars['discountDetail']->iteration=0;
- $_smarty_tpl->tpl_vars['discountDetail']->index=-1;
- $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']=-1;
- foreach ($_from as $_smarty_tpl->tpl_vars['discountDetail']->key => $_smarty_tpl->tpl_vars['discountDetail']->value) {
- $_smarty_tpl->tpl_vars['discountDetail']->_loop = true;
- $_smarty_tpl->tpl_vars['discountDetail']->iteration++;
- $_smarty_tpl->tpl_vars['discountDetail']->index++;
- $_smarty_tpl->tpl_vars['discountDetail']->first = $_smarty_tpl->tpl_vars['discountDetail']->index === 0;
- $_smarty_tpl->tpl_vars['discountDetail']->last = $_smarty_tpl->tpl_vars['discountDetail']->iteration === $_smarty_tpl->tpl_vars['discountDetail']->total;
- $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['first'] = $_smarty_tpl->tpl_vars['discountDetail']->first;
- $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['index']++;
- $_smarty_tpl->tpl_vars['smarty']->value['foreach']['myLoop']['last'] = $_smarty_tpl->tpl_vars['discountDetail']->last;
- ?>
- <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['first']) {?>first_item<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['last']) {?>last_item<?php } else { ?>item<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index']%2) {?>alternate_item<?php }?>">
- <td class="discount_code"><?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['code'];?>
- </td>
- <td class="discount_description"><?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['name'];?>
- </td>
- <td data-value="<?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['quantity_for_user'];?>
- " class="discount_quantity"><?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['quantity_for_user'];?>
- </td>
- <td class="discount_value">
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_percent']>0) {?>
- <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_percent'], ENT_QUOTES, 'UTF-8', true);?>
- %
- <?php }?>
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_amount']>0) {?>
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_percent']>0) {?> + <?php }?>
- <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price'=>$_smarty_tpl->tpl_vars['discountDetail']->value['reduction_amount']),$_smarty_tpl);?>
- (<?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_tax']==1) {?><?php echo smartyTranslate(array('s'=>'Tax included'),$_smarty_tpl);?>
- <?php } else { ?><?php echo smartyTranslate(array('s'=>'Tax excluded'),$_smarty_tpl);?>
- <?php }?>)
- <?php }?>
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['free_shipping']) {?>
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_percent']>0||$_smarty_tpl->tpl_vars['discountDetail']->value['reduction_amount']>0) {?> + <?php }?>
- <?php echo smartyTranslate(array('s'=>'Free shipping'),$_smarty_tpl);?>
- <?php }?>
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['gift_product']>0) {?>
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['reduction_percent']>0||$_smarty_tpl->tpl_vars['discountDetail']->value['reduction_amount']>0||$_smarty_tpl->tpl_vars['discountDetail']->value['gift_product']) {?> + <?php }?>
- <?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['gift_product_name'];?>
- <?php echo smartyTranslate(array('s'=>'Free %s!','sprintf'=>$_smarty_tpl->tpl_vars['discountDetail']->value['gift_product_name']),$_smarty_tpl);?>
- !
- <?php }?>
- </td>
- <td class="discount_minimum" data-value="<?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['minimal']==0) {?>0<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['discountDetail']->value['minimal'];?>
- <?php }?>">
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['minimal']==0) {?>
- <?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
- <?php } else { ?>
- <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['convertPrice'][0][0]->convertPrice(array('price'=>$_smarty_tpl->tpl_vars['discountDetail']->value['minimal']),$_smarty_tpl);?>
- (<?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['minimum_amount_tax']==1) {?><?php echo smartyTranslate(array('s'=>'Tax included'),$_smarty_tpl);?>
- <?php } else { ?><?php echo smartyTranslate(array('s'=>'Tax excluded'),$_smarty_tpl);?>
- <?php }?>)
- <?php }?>
- </td>
- <td class="discount_cumulative">
- <?php if ($_smarty_tpl->tpl_vars['discountDetail']->value['cumulable']==1) {?>
- <i class="icon-ok icon"></i> <?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
- <?php } else { ?>
- <i class="icon-remove icon"></i> <?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
- <?php }?>
- </td>
- <td class="discount_expiration_date" data-value="<?php echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['discountDetail']->value['date_to'],"/[\-\:\ ]/",'');?>
- ">
- <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['discountDetail']->value['date_to']),$_smarty_tpl);?>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- <?php } else { ?>
- <p class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'You do not have any vouchers.'),$_smarty_tpl);?>
- </p>
- <?php }?>
- <ul class="footer_links clearfix">
- <li>
- <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);?>
- ">
- <span>
- <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Back to your account'),$_smarty_tpl);?>
- </span>
- </a>
- </li>
- <li>
- <a class="btn btn-default button button-small" href="<?php if (isset($_smarty_tpl->tpl_vars['force_ssl']->value)&&$_smarty_tpl->tpl_vars['force_ssl']->value) {?><?php echo $_smarty_tpl->tpl_vars['base_dir_ssl']->value;?>
- <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['base_dir']->value;?>
- <?php }?>">
- <span>
- <i class="icon-chevron-left"></i> <?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
- </span>
- </a>
- </li>
- </ul>
- <?php }} ?>