Current path: home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/stomp/2f/71/7a/
?? Go up: /home/webdevt/www/schtroumpf.fr/var/cache/dev/smarty/compile/stomp/2f/71
<?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/product-variants.tpl' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.1',
'unifunc' => 'content_65937e5a7cced6_81370486',
'has_nocache_code' => false,
'file_dependency' =>
array (
'2f717adae355f2f94b150135dac4776b8cfc8a0c' =>
array (
0 => '/home/webdevt/www/schtroumpf.fr/themes/stomp/modules/an_productattributes/views/templates/front/product-variants.tpl',
1 => 1702566467,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_65937e5a7cced6_81370486 (Smarty_Internal_Template $_smarty_tpl) {
if ((isset($_smarty_tpl->tpl_vars['groups']->value))) {?>
<div class="an_pa_product-variants">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['groups']->value, 'group', false, 'id_attribute_group');
$_smarty_tpl->tpl_vars['group']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['id_attribute_group']->value => $_smarty_tpl->tpl_vars['group']->value) {
$_smarty_tpl->tpl_vars['group']->do_else = false;
?>
<?php if (!empty($_smarty_tpl->tpl_vars['group']->value['attributes'])) {?>
<div class="clearfix product-variants-item <?php if ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'color') {?>product-variants-item-color<?php }?> <?php if ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'radio') {?>product-variants-item-radio<?php }?>">
<?php if ($_smarty_tpl->tpl_vars['config']->value['display_labels'] == '1') {?>
<span class="control-label"><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group']->value['name'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
</span>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'select') {?>
<select
class="form-control form-control-select"
data-product-attribute="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute_group']->value )), ENT_QUOTES, 'UTF-8');?>
"
name="group[<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute_group']->value )), ENT_QUOTES, 'UTF-8');?>
]">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['group']->value['attributes'], 'group_attribute', false, 'id_attribute');
$_smarty_tpl->tpl_vars['group_attribute']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['id_attribute']->value => $_smarty_tpl->tpl_vars['group_attribute']->value) {
$_smarty_tpl->tpl_vars['group_attribute']->do_else = false;
?>
<option value="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute']->value )), ENT_QUOTES, 'UTF-8');?>
" title="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['name'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
"<?php if ($_smarty_tpl->tpl_vars['group_attribute']->value['selected']) {?> selected="selected"<?php }?>><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['name'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
</option>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select>
<?php } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'color') {?>
<ul class="an_productattributes-group">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['group']->value['attributes'], 'group_attribute', false, 'id_attribute');
$_smarty_tpl->tpl_vars['group_attribute']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['id_attribute']->value => $_smarty_tpl->tpl_vars['group_attribute']->value) {
$_smarty_tpl->tpl_vars['group_attribute']->do_else = false;
?>
<li class="float-xs-left input-container <?php if ($_smarty_tpl->tpl_vars['group_attribute']->value['selected']) {?> an-input-container-checked<?php }?>">
<label <?php if (($_smarty_tpl->tpl_vars['config']->value['color_type_view'] == 'image' || $_smarty_tpl->tpl_vars['config']->value['color_type_view'] == 'only_image') && (isset($_smarty_tpl->tpl_vars['combinationImages']->value)) && $_smarty_tpl->tpl_vars['combinationImages']->value) {?>class="an_attr-color"<?php }?>>
<input class="input-color" type="radio" data-product-attribute="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute_group']->value )), ENT_QUOTES, 'UTF-8');?>
" name="group[<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute_group']->value )), ENT_QUOTES, 'UTF-8');?>
]" value="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute']->value )), ENT_QUOTES, 'UTF-8');?>
"<?php if ($_smarty_tpl->tpl_vars['group_attribute']->value['selected']) {?> checked="checked"<?php }?>>
<?php if (($_smarty_tpl->tpl_vars['config']->value['color_type_view'] == 'image' || $_smarty_tpl->tpl_vars['config']->value['color_type_view'] == 'only_image') && (isset($_smarty_tpl->tpl_vars['combinationImages']->value)) && $_smarty_tpl->tpl_vars['combinationImages']->value) {?>
<img
src="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['img_url'],'html','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
"
alt="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['legend'],'html','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
"
class="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['id_product_attribute'],'html','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
<?php echo htmlspecialchars((string) $_smarty_tpl->tpl_vars['product_link_rewrite']->value, ENT_QUOTES, 'UTF-8');?>
js-an_productattributes-img an_productattributes-img"
>
<span class="an_attr-effect"></span>
<?php } elseif (($_smarty_tpl->tpl_vars['config']->value['color_type_view'] <> 'only_image')) {?>
<span
<?php if ($_smarty_tpl->tpl_vars['group_attribute']->value['html_color_code']) {?>class="color" style="background-color: <?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['html_color_code'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
" <?php }?>
<?php if ($_smarty_tpl->tpl_vars['group_attribute']->value['texture']) {?>class="color texture" style="background-image: url(<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['texture'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
)" <?php }?>
><span class="sr-only"><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['name'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
</span></span>
<?php }?>
</label>
</li>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</ul>
<?php } elseif ($_smarty_tpl->tpl_vars['group']->value['group_type'] == 'radio') {?>
<ul class="an_productattributes-group">
<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['group']->value['attributes'], 'group_attribute', false, 'id_attribute');
$_smarty_tpl->tpl_vars['group_attribute']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['id_attribute']->value => $_smarty_tpl->tpl_vars['group_attribute']->value) {
$_smarty_tpl->tpl_vars['group_attribute']->do_else = false;
?>
<li class="input-container float-xs-left">
<label>
<input class="input-radio" type="radio" data-product-attribute="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute_group']->value )), ENT_QUOTES, 'UTF-8');?>
" name="group[<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute_group']->value )), ENT_QUOTES, 'UTF-8');?>
]" value="<?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'intval' ][ 0 ], array( $_smarty_tpl->tpl_vars['id_attribute']->value )), ENT_QUOTES, 'UTF-8');?>
"<?php if ($_smarty_tpl->tpl_vars['group_attribute']->value['selected']) {?> checked="checked"<?php }?>>
<span class="radio-label"><?php echo htmlspecialchars((string) call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'escape' ][ 0 ], array( $_smarty_tpl->tpl_vars['group_attribute']->value['name'],'htmlall','UTF-8' )), ENT_QUOTES, 'UTF-8');?>
</span>
</label>
</li>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</ul>
<?php }?>
</div>
<?php }?>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</div>
<?php }
}
}