$option_option){ inkthemes_delete_option( "{$option_id}_{$option_key}" ); } } else if(is_array($option_type)) { foreach($option_type as $inner_option){ $option_id = $inner_option['id']; inkthemes_delete_option( $option_id ); } } else { inkthemes_delete_option( $option_id ); } } } //When Theme Options page is reset - Add the of_options option if($page == 'optionsframework'){ inkthemes_delete_option( 'of_options' ); } } /*-----------------------------------------------------------------------------------*/ /* Build the Options Page - optionsframework_options_page */ /*-----------------------------------------------------------------------------------*/ function inkthemes_optionsframework_options_page(){ $options = inkthemes_get_option('of_template'); $themename = inkthemes_get_option('of_themename'); ?>
Options Updated
Options Reset
'; // COLOR Picker ?> $options_value){ $multicheck_id = $id . "_" . $options_id; if(!isset($output[$multicheck_id])){ inkthemes_update_option($multicheck_id,'false'); } else{ inkthemes_update_option($multicheck_id,'true'); } } } elseif($type == 'typography'){ $typography_array = array(); $typography_array['size'] = $output[$option_array['id'] . '_size']; $typography_array['face'] = stripslashes($output[$option_array['id'] . '_face']); $typography_array['style'] = $output[$option_array['id'] . '_style']; $typography_array['color'] = $output[$option_array['id'] . '_color']; inkthemes_update_option($id,$typography_array); } elseif($type == 'border'){ $border_array = array(); $border_array['width'] = $output[$option_array['id'] . '_width']; $border_array['style'] = $output[$option_array['id'] . '_style']; $border_array['color'] = $output[$option_array['id'] . '_color']; inkthemes_update_option($id,$border_array); } elseif($type != 'upload_min'){ inkthemes_update_option($id,stripslashes($new_value)); } } } } die(); } /*-----------------------------------------------------------------------------------*/ /* Generates The Options Within the Panel - optionsframework_machine */ /*-----------------------------------------------------------------------------------*/ function inkthemes_optionsframework_machine($options) { $counter = 0; $menu = ''; $output = ''; $output .= ''; return array($output,$menu); } /*-----------------------------------------------------------------------------------*/ /* OptionsFramework Uploader - inkthemes_optionsframework_uploader_function */ /*-----------------------------------------------------------------------------------*/ function inkthemes_optionsframework_uploader_function($id,$std,$mod){ //$uploader .= ''; //$uploader .= ''; $uploader = ''; $upload = inkthemes_get_option($id); if($mod != 'min') { $val = $std; if ( inkthemes_get_option( $id ) != "") { $val = inkthemes_get_option($id); } $uploader .= ''; } $uploader .= '
Upload Image'; if(!empty($upload)) {$hide = '';} else { $hide = 'hide';} $uploader .= 'Remove'; $uploader .='
' . "\n"; $uploader .= '
' . "\n"; $findme = 'wp-content/uploads'; $imgvideocheck = strpos($upload, $findme); if((!empty($upload)) && ($imgvideocheck === true)){ $uploader .= ''; $uploader .= ''; $uploader .= ''; } $uploader .= '
' . "\n"; return $uploader; } ?>