244) { $options['left_sidebar_width'] = 244; } // google custom search engine if ($_POST['google_cse']) { $options['google_cse'] = (bool)true; } else { $options['google_cse'] = (bool)false; } $options['google_cse_cx'] = stripslashes($_POST['google_cse_cx']); // menu $options['menu_type'] = stripslashes($_POST['menu_type']); // notice if ($_POST['notice']) { $options['notice'] = (bool)true; } else { $options['notice'] = (bool)false; } $options['notice_color'] = $_POST['notice_color']; $options['notice_content'] = stripslashes($_POST['notice_content']); // categories & tags if ($_POST['categories']) { $options['categories'] = (bool)true; } else { $options['categories'] = (bool)false; } if (!$_POST['tags']) { $options['tags'] = (bool)false; } else { $options['tags'] = (bool)true; } // feed if ($_POST['feed']) { $options['feed'] = (bool)true; } else { $options['feed'] = (bool)false; } $options['feed_url'] = stripslashes($_POST['feed_url']); if (!$_POST['feed_readers']) { $options['feed_readers'] = (bool)false; } else { $options['feed_readers'] = (bool)true; } update_option('blocks_options', $options); } else { BlocksOptions::getOptions(); } add_theme_page("Current Theme Options", "Current Theme Options", 'edit_themes', basename(__FILE__), array('BlocksOptions', 'display')); } function display() { $options = BlocksOptions::getOptions(); ?>
'Sidebar_single', 'before_widget' => '