PATH:
home
/
thecwrif
/
public_html
/
wp-content
/
plugins
/
jeg-elementor-kit
/
lib
/
jeg-framework
/
form
/
field
<?php /** * Form field : Select * * Creates a text * * @author Jegstudio * @since 1.0.0 * @package jeg-framework */ namespace Jeg\Form\Field; /** * Select control */ class Select extends Field_Abstract { /** * Form Text Template * * @var string */ protected $type = 'select'; /** * An Underscore (JS) template for this control's content */ public function js_template() { ?> <div class="widget-wrapper type-dynamic-select" data-field="{{ data.fieldID }}"> <div class="widget-left"> <label for="{{ data.fieldID }}">{{{ data.title }}}</label> </div> <div class="widget-right"> <# if ( 1 < data.multiple ) { #> <input type="text" id="{{ data.fieldID }}" name="{{ data.fieldName }}" value="{{{ data.value }}}"/> <# } else { #> <select class="widefat" id="{{ data.fieldID }}" name="{{ data.fieldName }}"> <# for ( key in data.options ) { #> <# var select = ( key == data.value ) ? 'selected' : ''; #> <option value="{{ key }}" {{ select }}>{{ data.options[ key ] }}</option> <# } #> </select> <# } #> <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]