PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
fields-attachment
<?php class QodeFrameworkFieldAttachmentSelect extends QodeFrameworkFieldAttachmentType { function __construct( $params ) { parent::__construct( $params ); } public function render() { $html = '<select name="' . $this->name . '">'; foreach ( $this->options as $key => $label ) { $selected = $this->params['value'] == $key ? ' selected="selected"' : ''; $html .= '<option' . esc_attr( $selected ) . ' value="' . esc_attr( $key ) . '">'; $html .= esc_html( $label ); $html .= '</option>'; } $html .= '</select>'; $this->form_fields['html'] = $html; } }
[+]
..
[-] class-qodeframeworkfieldattachmenttext.php
[edit]
[-] class-qodeframeworkfieldattachmenttype.php
[edit]
[-] class-qodeframeworkfieldattachmentselect.php
[edit]