field_select( $option ); elseif( isset($option['type']) && $option['type'] === 'select2') $this->field_select2( $option ); elseif( isset($option['type']) && $option['type'] === 'checkbox') $this->field_checkbox( $option ); elseif( isset($option['type']) && $option['type'] === 'radio') $this->field_radio( $option ); elseif( isset($option['type']) && $option['type'] === 'radio_image') $this->field_radio_image( $option ); elseif( isset($option['type']) && $option['type'] === 'textarea') $this->field_textarea( $option ); elseif( isset($option['type']) && $option['type'] === 'scripts_js') $this->field_scripts_js( $option ); elseif( isset($option['type']) && $option['type'] === 'scripts_css') $this->field_scripts_css( $option ); elseif( isset($option['type']) && $option['type'] === 'number' ) $this->field_number( $option ); elseif( isset($option['type']) && $option['type'] === 'text' ) $this->field_text( $option ); elseif( isset($option['type']) && $option['type'] === 'text_icon' ) $this->field_text_icon( $option ); elseif( isset($option['type']) && $option['type'] === 'text_multi' ) $this->field_text_multi( $option ); elseif( isset($option['type']) && $option['type'] === 'range' ) $this->field_range( $option ); elseif( isset($option['type']) && $option['type'] === 'colorpicker') $this->field_colorpicker( $option ); elseif( isset($option['type']) && $option['type'] === 'datepicker') $this->field_datepicker( $option ); elseif( isset($option['type']) && $option['type'] === 'repeater') $this->field_repeater( $option ); elseif( isset($option['type']) && $option['type'] === 'faq') $this->field_faq( $option ); elseif( isset($option['type']) && $option['type'] === 'addons_grid') $this->field_addons_grid( $option ); elseif( isset($option['type']) && $option['type'] === 'custom_html') $this->field_custom_html( $option ); elseif( isset($option['type']) && $option['type'] === $type ) do_action( "settings_tabs_field_$type", $option ); //if( !empty( $details ) ) echo "

$details

"; } public function field_select( $option ){ $id = isset( $option['id'] ) ? $option['id'] : ""; $parent = isset( $option['parent'] ) ? $option['parent'] : ""; $args = isset( $option['args'] ) ? $option['args'] : array(); $placeholder = isset( $option['placeholder'] ) ? $option['placeholder'] : ""; $multiple = isset( $option['multiple'] ) ? $option['multiple'] : false; $title = isset( $option['title'] ) ? $option['title'] : ""; $details = isset( $option['details'] ) ? $option['details'] : ""; if($multiple){ $value = isset( $option['value'] ) ? $option['value'] : array(); $field_name = !empty($parent) ? $parent.'['.$id.'][]' : $id.'[]'; $default = isset( $option['default'] ) ? $option['default'] : array(); }else{ $value = isset( $option['value'] ) ? $option['value'] : ''; $field_name = !empty($parent) ? $parent.'['.$id.']' : $id; $default = isset( $option['default'] ) ? $option['default'] : ''; } $value = !empty($value) ? $value : $default; ?>

$value ): $checked = ( $key == $option_value ) ? "checked" : ""; $for = !empty($for) ? $for.'-'.$id."-".$key : $id."-".$key; ?>

generate_args_from_string( $args ); $option_value = isset( $option['value'] ) ? $option['value'] : ''; $default = isset( $option['default'] ) ? $option['default'] : ''; $title = isset( $option['title'] ) ? $option['title'] : ""; $details = isset( $option['details'] ) ? $option['details'] : ""; $field_name = !empty($parent) ? $parent.'['.$id.']' : $id; //var_dump($option_value); $option_value = empty($option_value) ? $default : $option_value; ?>
$value ): $name = $value['name']; $thumb = $value['thumb']; $checked = ($key == $option_value) ? "checked" : ""; //var_dump($checked); ?>

"; echo ""; } public function field_custom_html( $option ){ $id = isset( $option['id'] ) ? $option['id'] : ""; $parent = isset( $option['parent'] ) ? $option['parent'] : ""; $html = isset( $option['html'] ) ? $option['html'] : ""; $title = isset( $option['title'] ) ? $option['title'] : ""; $details = isset( $option['details'] ) ? $option['details'] : ""; ?>