/** * Set a default theme color array. * * @global array $themecolors */ function bouquet_wpcom_setup() { global $themecolors; switch (bouquet_current_floral_scheme()) { case 'forget-me-not': $themecolors = array('bg' => 'edf6fe', 'border' => '5175b3', 'text' => '333333', 'link' => '123b66', 'url' => '123b66'); break; case 'tiger-lily': $themecolors = array('bg' => 'f9e4d8', 'border' => 'f9cdb5', 'text' => '333333', 'link' => 'ca4d11', 'url' => 'ca4d11'); break; default: $themecolors = array('bg' => 'ffebf2', 'border' => 'e7d9b9', 'text' => '333333', 'link' => 'bb5974', 'url' => 'bb5974'); } }
/** * Styles the header image displayed on the Appearance > Header admin panel. * */ function bouquet_admin_header_style() { ?> <style type="text/css"> .appearance_page_custom-header #headimg { background-color: #<?php echo '' != get_background_color() ? get_background_color() : 'fff'; ?> ; <?php if ('' == get_header_image() && '' == get_background_color()) { echo 'background-image: url(' . bouquet_default_header_image() . ') !important;'; } ?> border: none; width: 1100px; height: 180px; text-align: left; } #headimg h1 { font: 50px 'Sorts Mill Goudy', "Times New Roman", serif; margin-bottom: .2em; text-transform: uppercase; } #headimg h1 a { background: rgba(255, 255, 255, 0.6); <?php if ('forget-me-not' == bouquet_current_floral_scheme()) { ?> color: #123b66; <?php } else { ?> color: #891e42; <?php } ?> display: inline-block; margin: 0.6em 0 0 -0.4em; padding: 0 0.7em; text-decoration: none; } #desc { <?php if ('forget-me-not' == bouquet_current_floral_scheme()) { ?> color: #506f9e; <?php } else { ?> color: #b14562; <?php } ?> font: 13px "Sorts Mill Goudy", serif; font-weight: normal; margin: 0; padding: 0 0 .8em 1.9em; text-transform: uppercase; } <?php // If the user has set a custom color for the text use that if (HEADER_TEXTCOLOR != get_header_textcolor()) { ?> #site-title a, #site-description { color: #<?php echo get_header_textcolor(); ?> ; } <?php } ?> </style> <?php }