'
', 'before_title' => '', )); } function getOptions() { $options = get_option('abingle_options'); if (!is_array($options)) { $options['showmeta']=true; $options['shownotice'] = false; $options['noticehtml'] = 'hello ,byebye.'; $options['showfoothtml'] = true; $options['foothtml'] = 'set foot html here'; update_option('abingle_options', $options); } return $options; } function init() { if(isset($_POST['classic_save'])) { $options = getOptions(); $options['showmeta'] =$_POST['showmeta']; $options['shownotice'] =$_POST['shownotice']; $options['noticehtml'] = stripslashes($_POST['noticehtml']); $options['showfoothtml'] =$_POST['showfoothtml']; $options['foothtml'] = stripslashes($_POST['foothtml']); update_option('abingle_options', $options); } else getOptions(); add_theme_page("abingleThemeOption", __('Theme Options'), 'edit_themes', basename(__FILE__), 'display'); } function display() { $options = getOptions(); ?>