PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
fields
<?php class QodeFrameworkFieldRadio extends QodeFrameworkFieldType { public function render_field() { ?> <?php $use_images = isset( $this->args['images'] ) && $this->args['images'] ? true : false; if ( is_array( $this->options ) && count( $this->options ) ) { ?> <div class="qodef-radio-group-holder qodef-field <?php if ( $use_images ) { echo ' qodef-with-images'; } ?> " data-option-name="<?php echo esc_attr( $this->name ); ?>" data-option-type="radiogroup"> <?php foreach ( $this->options as $key => $value ) { $checked = $this->params['value'] == $key ? 'checked' : ''; $label = $use_images ? $value['label'] : $value; ?> <div class="qodef-inline"> <?php if ( ! $use_images ) { ?> <input class="qodef-field" <?php echo esc_attr( $checked ); ?> type="radio" id="<?php echo esc_attr( $this->name . $key ); ?>" name="<?php echo esc_attr( $this->name ); ?>" value="<?php echo esc_attr( $key ); ?>"> <?php if ( ! empty( $label ) ) { ?> <label for="<?php echo esc_attr( $this->name . $key ); ?>"> <span class="qodef-label-view"></span> <span class="qodef-label-text"> <?php echo esc_html( $label ); ?> </span> </label> <?php } ?> <?php } else { ?> <label for="<?php echo esc_attr( $this->name . $key ); ?>"> <input class="qodef-field" <?php echo esc_attr( $checked ); ?> type="radio" id="<?php echo esc_attr( $this->name . $key ); ?>" name="<?php echo esc_attr( $this->name ); ?>" value="<?php echo esc_attr( $key ); ?>"> <img title=" <?php if ( ! empty( $label ) ) { echo esc_attr( $label ); } ?> " src="<?php echo esc_url( $value['image'] ); ?>" alt="<?php echo esc_attr( $key . ' image' ); ?>"/> </label> <?php } ?> </div> <?php } ?> </div> <?php } } }
[-] class-qodeframeworkfielddate.php
[edit]
[-] class-qodeframeworkfieldtextarea.php
[edit]
[-] class-qodeframeworkfieldicon.php
[edit]
[-] class-qodeframeworkfieldaddress.php
[edit]
[+]
..
[-] class-qodeframeworkfieldfile.php
[edit]
[-] class-qodeframeworkfieldselect.php
[edit]
[-] class-qodeframeworkfieldimage.php
[edit]
[-] class-qodeframeworkfieldfont.php
[edit]
[-] class-qodeframeworkfieldtype.php
[edit]
[-] class-qodeframeworkfieldyesno.php
[edit]
[-] class-qodeframeworkfieldcolor.php
[edit]
[-] class-qodeframeworkfieldtextareasvg.php
[edit]
[-] class-qodeframeworkfieldgooglefont.php
[edit]
[-] class-qodeframeworkfieldiconpack.php
[edit]
[-] class-qodeframeworkfieldcheckbox.php
[edit]
[-] class-qodeframeworkfieldpassword.php
[edit]
[-] class-qodeframeworkfieldradio.php
[edit]
[-] class-qodeframeworkfieldtextareahtml.php
[edit]
[-] class-qodeframeworkfieldtext.php
[edit]
[-] class-qodeframeworkfieldhidden.php
[edit]