>
id="li-comment-">
'Right sidebar',
'description' => 'The horizontal sidebar under the banner',
'before_widget' => '',
'before_title' => '',
'after_title' => '' );
if ( function_exists('register_sidebar') )
register_sidebar($args);
//CUSTOM SIDEBAR SUPPORT
add_custom_background();
//THEME OPTIONS PAGE
add_action('admin_menu', 'setup_beton_options_page');
//Add a menu item for the options page.
function setup_beton_options_page() {
add_submenu_page('themes.php',__('Béton settings','beton'), __('Béton settings','beton'), 'edit_posts', basename(__FILE__), 'beton_options_page','','');
}
//The plugin's options page is echoed here
function beton_options_page() {
if (isset($_POST['update_settings'])) {
if (isset($_POST['showexcerpts']) && $_POST['showexcerpts']=='true') {
update_option('beton-showexcerpts', true);
}
if (isset($_POST['showexcerpts']) && $_POST['showexcerpts']=='false') {
update_option('beton-showexcerpts', false);
}
if (isset($_POST['showsubmenus']) && $_POST['showsubmenus']=='true') {
update_option('beton-showsubmenus', true);
}
if (isset($_POST['showsubmenus']) && $_POST['showsubmenus']=='false') {
update_option('beton-showsubmenus', false);
}
if (isset($_POST['metadescription'])) {
if (strlen($_POST['metadescription'])<2) {
update_option('beton-metadescription', get_bloginfo('description') );
}
else{
update_option('beton-metadescription', htmlentities(strip_tags($_POST['metadescription'])) );
}
}
?>