__( 'Primary Widget Area', 'twentyten' ),
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area', 'twentyten' ),
'before_widget' => '
',
'after_widget' => '',
'before_title' => '',
) );
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
register_sidebar( array(
'name' => __( 'Secondary Widget Area', 'twentyten' ),
'id' => 'secondary-widget-area',
'description' => __( 'The secondary widget area', 'twentyten' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
) );
add_custom_background();
if(function_exists('add_theme_support')) {
add_theme_support('automatic-feed-links');
//WP Auto Feed Links
}
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'twentyten' ),
) );
$GLOBALS['content_width'] = 500;
// Options Page Functions
function themeoptions_admin_menu()
{
// here's where we add our theme options page link to the dashboard sidebar
add_theme_page("Theme Options", "Theme Options", 'edit_themes', basename(__FILE__), 'themeoptions_page');
}
function themeoptions_page()
{
// here's the main function that will generate our options page
if ( $_POST['update_themeoptions'] == 'true' ) { themeoptions_update(); }
//if ( get_option() == 'checked'
?>
A Shade of Grey Theme Options