'light', 'link_color' => '1bafe0', ) ); $link_color = trim( $options['link_color'], '#' ); if ( 'light' == $options['color_scheme'] ) { $themecolors = array( 'bg' => 'ffffff', 'border' => 'dddddd', 'text' => '333333', 'link' => $link_color, 'url' => $link_color, ); } if ( 'dark' == $options['color_scheme'] ) { $themecolors = array( 'bg' => '0f0f0f', 'border' => '222222', 'text' => 'bbbbbb', 'link' => $link_color, 'url' => $link_color, ); } /** * Enqueue our WP.com styles for front-end. * Loads after style.css so we can add overrides. */ function twentyeleven_wpcom_styles() { wp_enqueue_style( 'twentyeleven-wpcom-style', get_template_directory_uri() . '/style-wpcom.css' ); } add_action( 'wp_enqueue_scripts', 'twentyeleven_wpcom_styles' ); /** * Sets up defaults for wp.com-specific functionality */ function twentyeleven_wpcom_setup() { add_theme_support( 'video-header' ); // Add support for WP.com required post formats add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'link', 'quote', 'gallery', 'status' ) ); } add_action( 'after_setup_theme', 'twentyeleven_wpcom_setup' ); /** * Whether a video header has been set up. * * @return bool */ function twentyeleven_has_video_header() { return apply_filters( 'wpcom_has_video_header', false ); } /** * Displays header video * * @return void */ function twentyeleven_video_header() { do_action( 'wpcom_video_header' ); }