array( 'value' => 'light', 'label' => __( 'Light', 'twentyeleven' ) ), 'dark' => array( 'value' => 'dark', 'label' => __( 'Dark', 'twentyeleven' ) ), ); return $color_scheme_options; } /** * Return array for our layout options */ function twentyeleven_layouts() { $layout_options = array( 'content-sidebar' => array( 'value' => 'content-sidebar', 'label' => __( 'Content on left', 'twentyeleven' ), ), 'sidebar-content' => array( 'value' => 'sidebar-content', 'label' => __( 'Content on right', 'twentyeleven' ) ), 'content' => array( 'value' => 'content', 'label' => __( 'One-column, no Sidebar', 'twentyeleven' ) ), ); return $layout_options; } /** * Return the default Twenty Eleven theme option values */ function twentyeleven_get_default_theme_options() { return array( 'color_scheme' => 'light', 'link_color' => '#1b8be0', 'theme_layout' => 'content-sidebar', ); } /** * Return the current Twenty Eleven theme options, with default values as fallback */ function twentyeleven_get_theme_options() { $defaults = twentyeleven_get_default_theme_options(); $options = get_option( 'twentyeleven_theme_options', $defaults ); return $options; } /** * Create the options page */ function theme_options_do_page() { if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; ?>