kaktusy/tools/smarty/compile/%%B3^B33^B331D759%%blockcar...

206 lines
16 KiB
PHP

<?php /* Smarty version 2.6.20, created on 2013-07-02 22:29:21
compiled from /subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'l', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 11, false),array('function', 'convertPrice', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 34, false),array('function', 't', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 46, false),array('function', 'displayWtPrice', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 48, false),array('modifier', 'escape', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 46, false),array('modifier', 'intval', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 61, false),array('modifier', 'count', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 79, false),array('modifier', 'cat', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 83, false),array('modifier', 'truncate', '/subdomains/kaktusy/httpdocs/modules/blockcart/blockcart.tpl', 83, false),)), $this); ?>
<?php if ($this->_tpl_vars['ajax_allowed']): ?>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['content_dir']; ?>
js/jquery/iutil.prestashop-modifications.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['content_dir']; ?>
js/jquery/ifxtransfer.js"></script>
<script type="text/javascript">
var CUSTOMIZE_TEXTFIELD = <?php echo $this->_tpl_vars['CUSTOMIZE_TEXTFIELD']; ?>
;
var customizationIdMessage = '<?php echo smartyTranslate(array('s' => 'Customization #','mod' => 'blockcart','js' => 1), $this);?>
';
var removingLinkText = '<?php echo smartyTranslate(array('s' => 'remove this product from my cart','mod' => 'blockcart','js' => 1), $this);?>
';
</script>
<?php if (! $this->_tpl_vars['order_page']): ?>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['content_dir']; ?>
modules/blockcart/ajax-cart.js"></script>
<?php endif; ?>
<?php endif; ?>
<!-- MODULE Block cart -->
<div id="cart_block" class="block exclusive">
<h4>
<a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php"><?php echo smartyTranslate(array('s' => 'Cart','mod' => 'blockcart'), $this);?>
</a>
<?php if ($this->_tpl_vars['ajax_allowed']): ?>
<span id="block_cart_expand" <?php if ($this->_tpl_vars['colapseExpandStatus'] == 'expanded'): ?>class="hidden"<?php endif; ?>>&nbsp;</span>
<span id="block_cart_collapse" <?php if ($this->_tpl_vars['colapseExpandStatus'] == 'collapsed' || ! isset ( $this->_tpl_vars['colapseExpandStatus'] )): ?>class="hidden"<?php endif; ?>>&nbsp;</span>
<?php endif; ?>
</h4>
<div class="block_content">
<!-- block summary -->
<div id="cart_block_summary" class="<?php if ($this->_tpl_vars['colapseExpandStatus'] == 'expanded' || ! $this->_tpl_vars['ajax_allowed']): ?>collapsed<?php else: ?>expanded<?php endif; ?>">
<?php if ($this->_tpl_vars['cart_qties'] > 0): ?><span class="ajax_cart_quantity"><?php echo $this->_tpl_vars['cart_qties']; ?>
</span><?php endif; ?>
<span class="ajax_cart_product_txt_s<?php if ($this->_tpl_vars['cart_qties'] < 2): ?> hidden<?php endif; ?>"><?php echo smartyTranslate(array('s' => 'products','mod' => 'blockcart'), $this);?>
</span>
<span class="ajax_cart_product_txt<?php if ($this->_tpl_vars['cart_qties'] != 1): ?> hidden<?php endif; ?>"><?php echo smartyTranslate(array('s' => 'product','mod' => 'blockcart'), $this);?>
</span>
<?php if ($this->_tpl_vars['cart_qties'] > 0): ?><span class="ajax_cart_total"><?php if ($this->_tpl_vars['priceDisplay'] == 1): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(false)), $this);?>
<?php else: ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(true)), $this);?>
<?php endif; ?></span><?php endif; ?>
<?php if ($this->_tpl_vars['cart_qties'] == 0): ?><span class="ajax_cart_no_product"><?php if ($this->_tpl_vars['cart_qties'] == 0): ?><?php echo smartyTranslate(array('s' => '(empty)','mod' => 'blockcart'), $this);?>
<?php endif; ?></span><?php endif; ?>
</div>
<!-- block list of products -->
<div id="cart_block_list" class="<?php if ($this->_tpl_vars['colapseExpandStatus'] == 'expanded' || ! $this->_tpl_vars['ajax_allowed']): ?>expanded<?php else: ?>collapsed<?php endif; ?>">
<?php if ($this->_tpl_vars['products']): ?>
<dl class="products">
<?php $_from = $this->_tpl_vars['products']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['myLoop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['myLoop']['total'] > 0):
foreach ($_from as $this->_tpl_vars['product']):
$this->_foreach['myLoop']['iteration']++;
?>
<?php $this->assign('productId', $this->_tpl_vars['product']['id_product']); ?>
<?php $this->assign('productAttributeId', $this->_tpl_vars['product']['id_product_attribute']); ?>
<dt id="cart_block_product_<?php echo $this->_tpl_vars['product']['id_product']; ?>
<?php if ($this->_tpl_vars['product']['id_product_attribute']): ?>_<?php echo $this->_tpl_vars['product']['id_product_attribute']; ?>
<?php endif; ?>" class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>">
<span class="quantity-formated"><span class="quantity"><?php echo $this->_tpl_vars['product']['cart_quantity']; ?>
</span>x</span>
<a class="cart_block_product_name" href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['product']['id_product'],$this->_tpl_vars['product']['link_rewrite'],$this->_tpl_vars['product']['category']); ?>
" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html', 'UTF-8') : smarty_modifier_escape($_tmp, 'html', 'UTF-8')); ?>
"><?php echo smartyTruncate(array('text' => $this->_tpl_vars['product']['name'],'length' => '10','encode' => 'true'), $this);?>
</a>
<span class="remove_link"><?php if (! isset ( $this->_tpl_vars['customizedDatas'][$this->_tpl_vars['productId']][$this->_tpl_vars['productAttributeId']] )): ?><a class="ajax_cart_block_remove_link" href="<?php echo $this->_tpl_vars['base_dir']; ?>
cart.php?delete&amp;id_product=<?php echo $this->_tpl_vars['product']['id_product']; ?>
&amp;ipa=<?php echo $this->_tpl_vars['product']['id_product_attribute']; ?>
&amp;token=<?php echo $this->_tpl_vars['static_token']; ?>
" title="<?php echo smartyTranslate(array('s' => 'remove this product from my cart','mod' => 'blockcart'), $this);?>
">&nbsp;</a><?php endif; ?></span>
<span class="price"><?php if ($this->_tpl_vars['priceDisplay'] == @PS_TAX_EXC): ?><?php echo Product::displayWtPrice(array('p' => ($this->_tpl_vars['product']['total'])), $this);?>
<?php else: ?><?php echo Product::displayWtPrice(array('p' => ($this->_tpl_vars['product']['total_wt'])), $this);?>
<?php endif; ?></span>
</dt>
<?php if (isset ( $this->_tpl_vars['product']['attributes_small'] )): ?>
<dd id="cart_block_combination_of_<?php echo $this->_tpl_vars['product']['id_product']; ?>
<?php if ($this->_tpl_vars['product']['id_product_attribute']): ?>_<?php echo $this->_tpl_vars['product']['id_product_attribute']; ?>
<?php endif; ?>" class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>">
<a href="<?php echo $this->_tpl_vars['link']->getProductLink($this->_tpl_vars['product']['id_product'],$this->_tpl_vars['product']['link_rewrite'],$this->_tpl_vars['product']['category']); ?>
" title="<?php echo smartyTranslate(array('s' => 'Product detail'), $this);?>
"><?php echo $this->_tpl_vars['product']['attributes_small']; ?>
</a>
<?php endif; ?>
<!-- Customizable datas -->
<?php if (isset ( $this->_tpl_vars['customizedDatas'][$this->_tpl_vars['productId']][$this->_tpl_vars['productAttributeId']] )): ?>
<?php if (! isset ( $this->_tpl_vars['product']['attributes_small'] )): ?><dd id="cart_block_combination_of_<?php echo $this->_tpl_vars['product']['id_product']; ?>
<?php if ($this->_tpl_vars['product']['id_product_attribute']): ?>_<?php echo $this->_tpl_vars['product']['id_product_attribute']; ?>
<?php endif; ?>" class="<?php if (($this->_foreach['myLoop']['iteration'] <= 1)): ?>first_item<?php elseif (($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total'])): ?>last_item<?php else: ?>item<?php endif; ?>"><?php endif; ?>
<ul class="cart_block_customizations" id="customization_<?php echo $this->_tpl_vars['productId']; ?>
_<?php echo $this->_tpl_vars['productAttributeId']; ?>
">
<?php $_from = $this->_tpl_vars['customizedDatas'][$this->_tpl_vars['productId']][$this->_tpl_vars['productAttributeId']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['customizations'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['customizations']['total'] > 0):
foreach ($_from as $this->_tpl_vars['id_customization'] => $this->_tpl_vars['customization']):
$this->_foreach['customizations']['iteration']++;
?>
<li name="customization">
<div class="deleteCustomizableProduct" id="deleteCustomizableProduct_<?php echo ((is_array($_tmp=$this->_tpl_vars['id_customization'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
_<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['id_product'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
_<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['id_product_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
"><a class="ajax_cart_block_remove_link" href="<?php echo $this->_tpl_vars['base_dir']; ?>
cart.php?delete&amp;id_product=<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['id_product'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
&amp;ipa=<?php echo ((is_array($_tmp=$this->_tpl_vars['product']['id_product_attribute'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
&amp;id_customization=<?php echo $this->_tpl_vars['id_customization']; ?>
&amp;token=<?php echo $this->_tpl_vars['static_token']; ?>
"> </a></div>
<span class="quantity-formated"><span class="quantity"><?php echo $this->_tpl_vars['customization']['quantity']; ?>
</span>x</span><?php if (isset ( $this->_tpl_vars['customization']['datas'][$this->_tpl_vars['CUSTOMIZE_TEXTFIELD']]['0'] )): ?><?php echo smartyTruncate(array('text' => $this->_tpl_vars['customization']['datas'][$this->_tpl_vars['CUSTOMIZE_TEXTFIELD']]['0']['value'],'length' => '28','encode' => 'true'), $this);?>
<?php else: ?>
<?php echo smartyTranslate(array('s' => 'Customization #','mod' => 'blockcart'), $this);?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['id_customization'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
<?php echo smartyTranslate(array('s' => ':','mod' => 'blockcart'), $this);?>
<?php endif; ?>
</li>
<?php endforeach; endif; unset($_from); ?>
</ul>
<?php if (! isset ( $this->_tpl_vars['product']['attributes_small'] )): ?></dd><?php endif; ?>
<?php endif; ?>
<?php if (isset ( $this->_tpl_vars['product']['attributes_small'] )): ?></dd><?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</dl>
<?php endif; ?>
<p <?php if ($this->_tpl_vars['products']): ?>class="hidden"<?php endif; ?> id="cart_block_no_products"><?php echo smartyTranslate(array('s' => 'No products','mod' => 'blockcart'), $this);?>
</p>
<?php if (count($this->_tpl_vars['discounts']) > 0): ?><table id="vouchers">
<tbody>
<?php $_from = $this->_tpl_vars['discounts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['discount']):
?>
<tr id="bloc_cart_voucher_<?php echo $this->_tpl_vars['discount']['id_discount']; ?>
">
<td class="name" title="<?php echo $this->_tpl_vars['discount']['description']; ?>
"><?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['discount']['name'])) ? $this->_run_mod_handler('cat', true, $_tmp, ' : ') : smarty_modifier_cat($_tmp, ' : ')))) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['discount']['description']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['discount']['description'])))) ? $this->_run_mod_handler('truncate', true, $_tmp, 18, '...') : smarty_modifier_truncate($_tmp, 18, '...')))) ? $this->_run_mod_handler('escape', true, $_tmp, 'htmlall', 'UTF-8') : smarty_modifier_escape($_tmp, 'htmlall', 'UTF-8')); ?>
</td>
<td class="price">-<?php if ($this->_tpl_vars['discount']['value_real'] != '!'): ?><?php if ($this->_tpl_vars['priceDisplay'] == 1): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_tax_exc']), $this);?>
<?php else: ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['discount']['value_real']), $this);?>
<?php endif; ?><?php endif; ?></td>
<td class="delete"><a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php?deleteDiscount=<?php echo $this->_tpl_vars['discount']['id_discount']; ?>
" title="<?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
"><img src="<?php echo $this->_tpl_vars['img_dir']; ?>
icon/delete.gif" alt="<?php echo smartyTranslate(array('s' => 'Delete'), $this);?>
" class="icon" /></a></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
<?php endif; ?>
<p id="cart-prices">
<span><?php echo smartyTranslate(array('s' => 'Shipping','mod' => 'blockcart'), $this);?>
</span>
<span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost"><?php echo $this->_tpl_vars['shipping_cost']; ?>
</span>
<br/>
<?php if ($this->_tpl_vars['show_wrapping']): ?>
<span><?php echo smartyTranslate(array('s' => 'Wrapping','mod' => 'blockcart'), $this);?>
</span>
<span id="cart_block_wrapping_cost" class="price cart_block_wrapping_cost"><?php if ($this->_tpl_vars['priceDisplay'] == 1): ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(false,6)), $this);?>
<?php else: ?><?php echo Product::convertPrice(array('price' => $this->_tpl_vars['cart']->getOrderTotal(true,6)), $this);?>
<?php endif; ?></span>
<br/>
<?php endif; ?>
<span><?php echo smartyTranslate(array('s' => 'Total','mod' => 'blockcart'), $this);?>
</span>
<span id="cart_block_total" class="price ajax_block_cart_total"><?php echo $this->_tpl_vars['total']; ?>
</span>
</p>
<?php if ($this->_tpl_vars['priceDisplay'] == 2): ?>
<p id="cart-price-precisions">
<?php echo smartyTranslate(array('s' => 'Prices are tax included','mod' => 'blockcart'), $this);?>
</p>
<?php endif; ?>
<?php if ($this->_tpl_vars['priceDisplay'] == 1): ?>
<p id="cart-price-precisions">
<?php echo smartyTranslate(array('s' => 'Prices are tax excluded','mod' => 'blockcart'), $this);?>
</p>
<?php endif; ?>
<p id="cart-buttons">
<a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php" class="button_small" title="<?php echo smartyTranslate(array('s' => 'Cart','mod' => 'blockcart'), $this);?>
"><?php echo smartyTranslate(array('s' => 'Cart','mod' => 'blockcart'), $this);?>
</a>
<a href="<?php echo $this->_tpl_vars['base_dir_ssl']; ?>
order.php?step=1" id="button_order_cart" class="exclusive" title="<?php echo smartyTranslate(array('s' => 'Check out','mod' => 'blockcart'), $this);?>
"><?php echo smartyTranslate(array('s' => 'Check out','mod' => 'blockcart'), $this);?>
</a>
</p>
</div>
</div>
</div>
<!-- /MODULE Block cart -->