PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
jeg-elementor-kit
/
lib
/
jeg-framework
/
form
/
field
<?php /** * Form field : Checkbox * * Creates a text * * @author Jegstudio * @since 1.0.0 * @package jeg-framework */ namespace Jeg\Form\Field; /** * Checkbox control */ class Radioimage extends Field_Abstract { /** * Form Text Template * * @var string */ protected $type = 'radioimage'; /** * An Underscore (JS) template for this control's content */ public function js_template() { ?> <div class="widget-wrapper type-radioimage" data-field="{{ data.fieldID }}"> <div class="widget-left"> <label for="{{ data.fieldID }}">{{{ data.title }}}</label> </div> <div class="widget-right"> <div id="{{ data.fieldID }}" class="radio-image-wrapper" type="radio-image"> <# for(key in data.options) { #> <# var checked = ( key == data.value ) ? 'checked' : ''; #> <label> <input {{{ data.link }}} type='radio' name="{{ data.fieldName }}" value="{{ key }}" class='radio-image-item radioimage_field' {{ checked }} /> <img src='{{ data.options[ key ] }}' class='radio-image'/> </label> <# } #> </div> <i>{{{ data.description }}}</i> </div> </div> <?php } }
[-] class-upload.php
[edit]
[-] class-password.php
[edit]
[-] class-select.php
[edit]
[-] class-number.php
[edit]
[-] class-radioimage.php
[edit]
[-] class-iconpicker.php
[edit]
[-] class-slider.php
[edit]
[-] class-checkbox.php
[edit]
[+]
..
[-] class-field-abstract.php
[edit]
[-] class-textarea.php
[edit]
[-] class-alert.php
[edit]
[-] class-text.php
[edit]
[-] class-standart.php
[edit]
[-] class-repeater.php
[edit]
[-] class-color.php
[edit]
[-] class-image.php
[edit]
[-] class-heading.php
[edit]