X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/af50974463450c98503e763a7836a50e260461a9..refs/tags/wordpress-4.4:/wp-content/themes/twentyfifteen/inc/customizer.php diff --git a/wp-content/themes/twentyfifteen/inc/customizer.php b/wp-content/themes/twentyfifteen/inc/customizer.php index 4a7e7191..93b66e5e 100644 --- a/wp-content/themes/twentyfifteen/inc/customizer.php +++ b/wp-content/themes/twentyfifteen/inc/customizer.php @@ -87,6 +87,27 @@ add_action( 'customize_register', 'twentyfifteen_customize_register', 11 ); * @return array An associative array of color scheme options. */ function twentyfifteen_get_color_schemes() { + /** + * Filter the color schemes registered for use with Twenty Fifteen. + * + * The default schemes include 'default', 'dark', 'yellow', 'pink', 'purple', and 'blue'. + * + * @since Twenty Fifteen 1.0 + * + * @param array $schemes { + * Associative array of color schemes data. + * + * @type array $slug { + * Associative array of information for setting up the color scheme. + * + * @type string $label Color scheme label. + * @type array $colors HEX codes for default colors prepended with a hash symbol ('#'). + * Colors are defined in the following order: Main background, sidebar + * background, box background, main text and link, sidebar text and link, + * meta box background. + * } + * } + */ return apply_filters( 'twentyfifteen_color_schemes', array( 'default' => array( 'label' => __( 'Default', 'twentyfifteen' ), @@ -327,7 +348,8 @@ function twentyfifteen_get_color_scheme_css( $colors ) { .hentry, .page-header, .page-content, - .comments-area { + .comments-area, + .widecolumn { background-color: {$colors['box_background_color']}; } @@ -458,7 +480,9 @@ function twentyfifteen_get_color_scheme_css( $colors ) { .site-info a, .wp-caption-text, .gallery-caption, - .comment-list .reply a { + .comment-list .reply a, + .widecolumn label, + .widecolumn .mu_register label { color: {$colors['textcolor']}; /* Fallback for IE7 and IE8 */ color: {$colors['secondary_textcolor']}; }