Your IP : 216.73.216.44


Current Path : /home/krobertfnz/www/wp-content/plugins/vamtam-elements-b/metaboxes/templates/
Upload File :
Current File : /home/krobertfnz/www/wp-content/plugins/vamtam-elements-b/metaboxes/templates/radio.php

<?php
/**
 * radio
 */

	if ( isset( $target ) ) {
		if ( isset( $options ) ) {
			$options = $options + VamtamConfigGenerator::get_select_target_config( $target );
		} else {
			$options = VamtamConfigGenerator::get_select_target_config( $target );
		}
	}

	$checked = $default;

	$ff = empty( $field_filter ) ? '' : 'data-field-filter="' . esc_attr( $field_filter ) . '"';
?>

<div class="vamtam-config-row radio clearfix <?php echo esc_attr( $class ) ?>" <?php echo $ff // xss ok ?>>

	<div class="rtitle">
		<h4><label for="<?php echo esc_attr( $id ) ?>"><?php echo esc_html( $name ) ?></label></h4>
	</div>

	<div class="rcontent">
		<?php foreach ( $options as $key => $option ) : ?>
			<label class="toggle-radio">
				<input type="radio" name="<?php echo esc_attr( $id ) ?>" value="<?php echo esc_attr( $key )  ?>" <?php checked( $checked, $key ) ?>/>
				<span><?php echo esc_html( $option ) ?></span>
			</label>
		<?php endforeach ?>
	</div>
</div>