<?php
/* Smarty version 3.1.40, created on 2022-07-08 15:42:24
  from '/home/mzpg3195/site.essentielweb/wp-content/plugins/paygreen-woocommerce/templates/fields/partials/select.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.40',
  'unifunc' => 'content_62c8506043a3f5_60997369',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'dbfcc85e24b93b4555b0a4e8bfc62034a8aa11a0' => 
    array (
      0 => '/home/mzpg3195/site.essentielweb/wp-content/plugins/paygreen-woocommerce/templates/fields/partials/select.tpl',
      1 => 1657293553,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_62c8506043a3f5_60997369 (Smarty_Internal_Template $_smarty_tpl) {
?><select<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['attr']->value, 'val', false, 'key');
$_smarty_tpl->tpl_vars['val']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->do_else = false;
?> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['key']->value, ENT_QUOTES, 'UTF-8', true);?>
="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['val']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>>
    <?php if (!empty($_smarty_tpl->tpl_vars['placeholder']->value)) {?>
        <option value="" disabled="disabled">
            <?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'pgtrans' ][ 0 ], array( $_smarty_tpl->tpl_vars['placeholder']->value ));?>

        </option>
    <?php }?>

    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['choices']->value, 'name', false, 'code');
$_smarty_tpl->tpl_vars['name']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['code']->value => $_smarty_tpl->tpl_vars['name']->value) {
$_smarty_tpl->tpl_vars['name']->do_else = false;
?>
        <?php if ($_smarty_tpl->tpl_vars['multiple']->value) {?>
            <?php $_smarty_tpl->_assignInScope('selected', in_array($_smarty_tpl->tpl_vars['code']->value,$_smarty_tpl->tpl_vars['value']->value));?>
        <?php } else { ?>
            <?php $_smarty_tpl->_assignInScope('selected', ($_smarty_tpl->tpl_vars['code']->value === $_smarty_tpl->tpl_vars['value']->value));?>
        <?php }?>

        <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8', true);?>
"<?php if ($_smarty_tpl->tpl_vars['selected']->value) {?> selected="selected"<?php }?>>
            <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['name']->value, ENT_QUOTES, 'UTF-8', true);?>

        </option>
    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
</select><?php }
}
