芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/www/wp-content/themes/betheme/muffin-options/fields/select/field_select.php
field['preview'] ) ){ $preview = 'preview-'. $this->field['preview']; } // options if( empty($this->field['options']) && ! empty($this->field['php_options']) ){ $this->field['options'] = $this->field['php_options']; } // WPML if ( ! empty( $this->field['wpml'] ) ) { if ( $this->value && function_exists( 'icl_object_id' ) ) { $term = get_term_by( 'slug', $this->value, $this->field['wpml'] ); $term = apply_filters( 'wpml_object_id', $term->term_id, $this->field['wpml'], true ); $this->value = get_term_by( 'term_id', $term, $this->field['wpml'] )->slug; } } // output ----- echo '
'; echo '
'; echo '
get_name( $meta ) .' autocomplete="off">'; if ( isset( $this->field['hierarchical_options'] ) && is_array($this->field['hierarchical_options']) ) { echo '
'. esc_html__('All', 'mfn-opts') .'
'; foreach ( $this->field['hierarchical_options'] as $k => $v ) { echo '
value, $v->slug, false) .'>'. esc_html($v->name) .'
'; } } else if ( !empty($this->field['options']) && is_array($this->field['options']) ) { foreach ( $this->field['options'] as $k => $v ) { if( 0 === strpos($k, '#optgroup') ){ if( $v ){ echo '
'; } else { echo '
'; } continue; } echo '
value, $k, false) .'>'. esc_html($v) .'
'; } } echo '
'; echo '
'; echo '
'; echo $this->get_description(); } }