Current path: home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/stomp/4c/9b/e5/
?? Go up: /home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/stomp/4c/9b
<?php
/* Smarty version 4.3.1, created on 2024-01-02 04:09:14
from '/home/webdevt/www/schtroumpf.fr/themes/stomp/modules/an_productattributes/views/templates/front/productattributes.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.1',
'unifunc' => 'content_65937e5a792fa7_92641158',
'has_nocache_code' => false,
'file_dependency' =>
array (
'4c9be53ca938d84ac159f41af315e24c5da8f473' =>
array (
0 => '/home/webdevt/www/schtroumpf.fr/themes/stomp/modules/an_productattributes/views/templates/front/productattributes.tpl',
1 => 1702566467,
2 => 'file',
),
),
'includes' =>
array (
'file:./product-variants.tpl' => 1,
'file:./product-select.tpl' => 1,
),
),false)) {
function content_65937e5a792fa7_92641158 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
<?php
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_79451640065937e5a78a324_71696010', "an_productattributes_content");
$_smarty_tpl->inheritance->endChild($_smarty_tpl, "module:an_productattributes/views/templates/front/productattributes-wrapper.tpl");
}
/* {block "an_productattributes_content"} */
class Block_79451640065937e5a78a324_71696010 extends Smarty_Internal_Block
{
public $subBlocks = array (
'an_productattributes_content' =>
array (
0 => 'Block_79451640065937e5a78a324_71696010',
),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>
<?php if ($_smarty_tpl->tpl_vars['config']->value['type_view'] == 'standart') {?>
<div class="js-an_productattributes-standart">
<?php $_smarty_tpl->_subTemplateRender('file:./product-variants.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['config']->value['type_view'] == 'select' && (isset($_smarty_tpl->tpl_vars['productData']->value)) && count($_smarty_tpl->tpl_vars['productData']->value) > 0) {?>
<div class="an_productattributes-select js-an_productattributes-select">
<?php $_smarty_tpl->_subTemplateRender('file:./product-select.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</div>
<?php }?>
<?php if ((isset($_smarty_tpl->tpl_vars['configuration']->value['is_catalog'])) && !$_smarty_tpl->tpl_vars['configuration']->value['is_catalog'] && $_smarty_tpl->tpl_vars['config']->value['display_add_to_cart'] == '1') {?>
<div class="an_productattributes-qty-add clearfix">
<?php if ($_smarty_tpl->tpl_vars['config']->value['display_quantity'] == '1') {?>
<div class="an_productattributes-qty-container">
<input type="number" name="qty" value="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['minimal_quantity']->value,'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
" class="input-group form-control an_productattributes-qty" min="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['minimal_quantity']->value,'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
" <?php if ($_smarty_tpl->tpl_vars['order_out_of_stock']->value) {?> data-max="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['quantity']->value,'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
" <?php }?> aria-label="Quantity" style="display: block;" >
</div>
<?php }?>
<div class="an_productattributes-add">
<button class="btn btn-primary js-an_productattributes-add-to-cart" data-button-action="add-to-cart" type="submit" <?php if ($_smarty_tpl->tpl_vars['availableForOrder']->value != '1') {?> disabled="disabled"<?php }?> data-status="<?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['availableForOrder']->value, ENT_QUOTES, 'UTF-8');?>
">
<?php if ($_smarty_tpl->tpl_vars['availableForOrder']->value != '1') {?>
<span><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['config']->value['text_out_of_stock'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
</span>
<?php } else { ?>
<span><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['l'][0], array( array('s'=>'Add to cart','d'=>'Shop.Theme.Actions'),$_smarty_tpl ) );?>
</span>
<?php }?>
</button>
</div>
</div>
<?php }
}
}
/* {/block "an_productattributes_content"} */
}