$value){
$AjaxyLiveSearch->remove_style_setting($key);
}
$AjaxyLiveSearch->remove_template('more');
}
elseif(isset($_POST['sf_submit']) && wp_verify_nonce($_POST['_wpnonce'])){
$styles = $_POST['sf']['style'];
$templates = $_POST['sf']['template'];
$AjaxyLiveSearch->set_style_setting('search_label' , $styles['label']);
$AjaxyLiveSearch->set_style_setting('input_id' , $styles['input_id']);
$AjaxyLiveSearch->set_style_setting('width' , (int)$styles['width']);
if(isset($styles['allow_expand'])){
$AjaxyLiveSearch->set_style_setting('expand' , (int)$styles['expand']);
}
else{
$AjaxyLiveSearch->set_style_setting('expand' , 0);
}
if(isset($styles['credits'])){
$AjaxyLiveSearch->set_style_setting('credits' , 1);
}
else{
$AjaxyLiveSearch->set_style_setting('credits' , 0);
}
if(isset($styles['aspect_ratio'])){
$AjaxyLiveSearch->set_style_setting('aspect_ratio' , 1);
}
else{
$AjaxyLiveSearch->set_style_setting('aspect_ratio' , 0);
}
if(isset($styles['hook_form'])){
$AjaxyLiveSearch->set_style_setting('hook_search_form' , 1);
}
else{
$AjaxyLiveSearch->set_style_setting('hook_search_form' , -1);
}if(isset($styles['rtl'])){
$AjaxyLiveSearch->set_style_setting('rtl_theme' , 1);
}
else{
$AjaxyLiveSearch->set_style_setting('rtl_theme' , 0);
}
$AjaxyLiveSearch->set_style_setting('delay' , (int)$styles['delay']);
$AjaxyLiveSearch->set_style_setting('border-width' , (int)$styles['b_width']);
$AjaxyLiveSearch->set_style_setting('border-type' , $styles['b_type']);
$AjaxyLiveSearch->set_style_setting('search_url' , $styles['url']);
$AjaxyLiveSearch->set_style_setting('border-color' , $styles['b_color']);
$AjaxyLiveSearch->set_style_setting('results_width' , (int)$styles['results_width']);
$AjaxyLiveSearch->set_style_setting('excerpt' , $styles['excerpt']);
$AjaxyLiveSearch->set_style_setting('css' , $styles['css']);
//$AjaxyLiveSearch->set_style_setting('results_position' , $styles['results_position']);
$AjaxyLiveSearch->set_style_setting('thumb_width' , $styles['thumb_width']);
$AjaxyLiveSearch->set_style_setting('thumb_height' , $styles['thumb_height']);
$AjaxyLiveSearch->set_templates('more' , $templates['more_results']);
$message = "Settings saved";
}
?>