| 1234567891011121314151617181920212223242526272829303132333435 |
- <?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 = vamtam_get_option( $id, $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>
- <?php vamtam_description( $id, $desc ) ?>
- </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>
|