File manager - Edit - /home/verseaumee/blueversion/wp-content/plugins/qode-framework/inc/common/fields-attachment/class-qodeframeworkfieldattachmentselect.php
Back
<?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; } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings