'ffffff', 'border' => 'eeeeee', 'text' => '222222', 'link' => '000000', 'url' => 'ff9900', ); if ( 'dark' == oulipo_current_color_scheme() ) { $themecolors = array( 'bg' => '000000', 'border' => '888888', 'text' => 'dddddd', 'link' => 'cccccc', 'url' => '999999', ); } register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'oulipo' ), ) ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'custom-background' ); add_theme_support( 'print-style' ); load_theme_textdomain( 'oulipo', get_template_directory() . '/languages' ); /** * Setup the WordPress core custom header feature. * * @uses superhero_header_style() * @uses superhero_admin_header_style() * @uses superhero_admin_header_image() * * @package Oulipo */ function oulipo_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'oulipo_custom_header_args', array( 'default-image' => '', 'default-text-color' => '', 'width' => 712, 'height' => 80, 'header-text' => false, 'admin-head-callback' => 'oulipo_admin_header_style', ) ) ); } add_action( 'after_setup_theme', 'oulipo_custom_header_setup' ); function oulipo_admin_header_style() { ?> 'light', ); $options = get_option( 'oulipo_theme_options', $defaults ); return $options; } /** * Returns the current Oulipo color scheme as selected in the theme options */ function oulipo_current_color_scheme() { $options = oulipo_get_theme_options(); return $options['color_scheme']; } /** * Register our color schemes and add them to the queue */ function oulipo_color_registrar() { _deprecated_function( __FUNCTION__, '1.1', 'oulipo_scripts()' ); if ( 'dark' == oulipo_current_color_scheme() ) wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', null, null ); } /** * Enqueue scripts and styles */ function oulipo_scripts() { wp_enqueue_style( 'oulipo', get_stylesheet_uri() ); if ( 'dark' == oulipo_current_color_scheme() ) wp_enqueue_style( 'oulipo-dark', get_template_directory_uri() . '/colors/dark.css', array( 'oulipo' ) ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'oulipo_scripts' ); /** * Adjust fallback page menu output to match custom menu output */ function oulipo_page_menu( $menu ) { return preg_replace( '/