File "tpl.radio.php"
Full Path: /var/www/bvnghean.vn/save_bvnghean.vn/wp-content/plugins/swift-performance/includes/luv-framework/templates/tpl.radio.php
File size: 1.33 KB
MIME-type: text/html
Charset: utf-8
<div class="<?php echo implode(' ', $classes);?>" id="<?php echo esc_attr($prefix . $field['id']);?>-container"<?php echo (!empty($default) ? ' data-default="' . $default . '"' : '');?> data-type="<?php echo $field['type'];?>">
<div class="luv-framework-field-title">
<strong><?php echo esc_html($label);?></strong>
<?php if (!empty($info)):?>
<a href="#" class="luv-framework-show-info">?</a>
<div class="luv-framework-info">
<?php echo luv_framework_kses($info);?>
</div>
<?php endif;?>
<?php if (!empty($description)):?>
<div class="luv-framework-field-description">
<?php echo esc_html($description); ?>
</div>
<?php endif;?>
</div>
<div class="luv-framework-field-inner">
<?php if (isset($field['options'])): ?>
<?php foreach ($field['options'] as $key => $option):?>
<label>
<?php echo esc_html($option);?>
<input type="radio" name="<?php echo esc_attr($name);?>" value="<?php echo esc_attr($key);?>"<?php echo ($field['value'] == $key ? ' checked' : ''); ?>>
</label>
<?php endforeach;?>
<?php endif; ?>
</div>
</div>