<?php /* Smarty version Smarty-3.1.19, created on 2018-10-13 14:32:19
         compiled from "/home/tnsmborg/public_html/templates/_common/field-type-content-fieldset.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14031056195bc23a33089a19-91081640%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7b01dc865033ce1f3e8ffc6d773e6d1a78efb108' => 
    array (
      0 => '/home/tnsmborg/public_html/templates/_common/field-type-content-fieldset.tpl',
      1 => 1528949094,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14031056195bc23a33089a19-91081640',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'item_sections' => 0,
    'section' => 0,
    'isView' => 0,
    'exceptions' => 0,
    'field' => 0,
    'fieldset_before' => 0,
    'fieldset_content_before' => 0,
    'fieldset_content_after' => 0,
    'fieldset_after' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5bc23a330c5726_47753876',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5bc23a330c5726_47753876')) {function content_5bc23a330c5726_47753876($_smarty_tpl) {?><?php  $_smarty_tpl->tpl_vars['section'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['section']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['item_sections']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['section']->key => $_smarty_tpl->tpl_vars['section']->value) {
$_smarty_tpl->tpl_vars['section']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['section']->key;
?>
    <?php if (!empty($_smarty_tpl->tpl_vars['section']->value['fields'])&&isset($_smarty_tpl->tpl_vars['section']->value['name'])&&!($_smarty_tpl->tpl_vars['section']->value['name']=='plans'&&$_smarty_tpl->tpl_vars['isView']->value)) {?>
        <?php $_smarty_tpl->_capture_stack[0][] = array('field_text', null, null); ob_start(); ?>
            <?php if ('plans'!=$_smarty_tpl->tpl_vars['section']->value['name']) {?>
                <?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['section']->value['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['field']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->_loop = true;
 $_smarty_tpl->tpl_vars['field']->index++;
 $_smarty_tpl->tpl_vars['field']->first = $_smarty_tpl->tpl_vars['field']->index === 0;
?>
                    <?php if ((!isset($_smarty_tpl->tpl_vars['exceptions']->value)||!in_array($_smarty_tpl->tpl_vars['field']->value['name'],$_smarty_tpl->tpl_vars['exceptions']->value))) {?>
                        <?php echo $_smarty_tpl->getSubTemplate ("field-type-content-".((string)(isset($_smarty_tpl->tpl_vars['isView']->value) ? 'view' : 'manage')).".tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('wrappedValues'=>true), 0);?>

                    <?php }?>
                <?php } ?>
            <?php } else { ?>
                <?php  $_smarty_tpl->tpl_vars['field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['section']->value['fields']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['field']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['field']->key => $_smarty_tpl->tpl_vars['field']->value) {
$_smarty_tpl->tpl_vars['field']->_loop = true;
 $_smarty_tpl->tpl_vars['field']->index++;
 $_smarty_tpl->tpl_vars['field']->first = $_smarty_tpl->tpl_vars['field']->index === 0;
?>
                    <div class="field field-plan">
                        <input type="radio" name="plan" value="<?php echo $_smarty_tpl->tpl_vars['field']->value['id'];?>
" id="plan_<?php echo $_smarty_tpl->tpl_vars['field']->value['id'];?>
"<?php if (!$_POST&&$_smarty_tpl->tpl_vars['field']->first) {?> checked<?php } elseif ($_POST['plan']==$_smarty_tpl->tpl_vars['field']->value['id']) {?> checked<?php }?>><label for="plan_<?php echo $_smarty_tpl->tpl_vars['field']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['field']->value['description'];?>
</label> - <b>$<?php echo $_smarty_tpl->tpl_vars['field']->value['cost'];?>
</b>
                    </div>
                <?php } ?>

                <?php echo $_smarty_tpl->getSubTemplate ('gateways.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

            <?php }?>
        <?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, array("$_capture_buffer" => ob_get_contents()), true);
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>

        <?php if (trim(Smarty::$_smarty_vars['capture']['field_text'])!='') {?>
            <div class="fieldset <?php if (isset($_smarty_tpl->tpl_vars['section']->value['collapsible'])&&$_smarty_tpl->tpl_vars['section']->value['collapsible']) {?> is-collapsible<?php if ($_smarty_tpl->tpl_vars['section']->value['collapsed']) {?> is-collapsed<?php }?><?php }?>" id="fieldgroup_<?php echo $_smarty_tpl->tpl_vars['section']->value['name'];?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['fieldset_before']->value[$_smarty_tpl->tpl_vars['section']->value['name']])) {?><?php echo $_smarty_tpl->tpl_vars['fieldset_before']->value[$_smarty_tpl->tpl_vars['section']->value['name']];?>
<?php }?>
                <div class="fieldset__header"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['section']->value['title'], ENT_QUOTES, 'UTF-8', true);?>
</div>
                <div class="fieldset__content">
                    <?php if ($_smarty_tpl->tpl_vars['section']->value['description']) {?>
                        <p class="help-block fields-description"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['section']->value['description'], ENT_QUOTES, 'UTF-8', true);?>
</p>
                        <hr>
                    <?php }?>

                    <?php if (isset($_smarty_tpl->tpl_vars['fieldset_content_before']->value[$_smarty_tpl->tpl_vars['section']->value['name']])) {?><?php echo $_smarty_tpl->tpl_vars['fieldset_content_before']->value[$_smarty_tpl->tpl_vars['section']->value['name']];?>
<?php }?>

                    <?php echo Smarty::$_smarty_vars['capture']['field_text'];?>


                    <?php if (isset($_smarty_tpl->tpl_vars['fieldset_content_after']->value[$_smarty_tpl->tpl_vars['section']->value['name']])) {?><?php echo $_smarty_tpl->tpl_vars['fieldset_content_after']->value[$_smarty_tpl->tpl_vars['section']->value['name']];?>
<?php }?>
                </div>

                <?php if (isset($_smarty_tpl->tpl_vars['fieldset_after']->value[$_smarty_tpl->tpl_vars['section']->value['name']])) {?><?php echo $_smarty_tpl->tpl_vars['fieldset_after']->value[$_smarty_tpl->tpl_vars['section']->value['name']];?>
<?php }?>
            </div>
        <?php }?>
    <?php }?>
<?php } ?><?php }} ?>
