Skip to content

Commit

Permalink
add derivative theme options for text shadows on header and post title
Browse files Browse the repository at this point in the history
  • Loading branch information
marpa committed Jun 7, 2010
1 parent 5fa5f0f commit 9f6fece
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion functions.php
Expand Up @@ -1571,14 +1571,16 @@ function save_options() {
color: ".$options['header-blogtitle-color'].";
font-size: ".$options['header-blogtitle-size']."px;
font-weight: normal;
text-shadow: ".$options['header-text-shadow-color']." ".$options['header-text-shadow-offset']." ".$options['header-text-shadow-blur'].";
border-bottom: none;
}
.headertext a:hover {
display: ".$options['show-header-text'].";
padding-top: ".$options['header-text-padding-top']."px;
padding-left: ".$options['header-text-padding-left']."px;
color: ".$options['header-blogtitle-color'].";
color: ".$options['header-blogtitle-color'].";
text-shadow: ".$options['header-text-shadow-color']." ".$options['header-text-shadow-offset']." ".$options['header-text-shadow-blur'].";
border-bottom: none;
}
Expand Down Expand Up @@ -1925,6 +1927,7 @@ function save_options() {
color: ".$options['linkcolor'].";
display: block;
text-align: left;
text-shadow: ".$options['post-text-shadow-color']." ".$options['post-text-shadow-offset']." ".$options['post-text-shadow-blur'].";
border-bottom: 1px solid #CCCCCC;
}
Expand Down
3 changes: 2 additions & 1 deletion style.css
Expand Up @@ -2,7 +2,7 @@
Theme Name: ShadowBox
Theme URI: http://segueproject.org/wordpress/themes/
Description: Flexible and extensible theme with a WYSIWYG theme editor that includes options for 1-3 sidebars, custom header image and a dozen variations.
Version: 1.5.3
Version: 1.5.4
Author: Alex Chapin
Author URI: http://www.alexchapin.com
Tags: one-column, two-columns, three-columns, left-sidebar, right-sidebar, theme-options, fixed-width, flexible-width, custom-colors, custom-header, sticky-post, light, dark, white, black, yellow, blue, green, red, silver
Expand Down Expand Up @@ -946,6 +946,7 @@ div .hr {
padding-top: 25px;
padding-left: 10px;
color: #003366;
text-shadow: #777777 1px 1px 0.08em;
border-bottom: none;
}

Expand Down
6 changes: 6 additions & 0 deletions variations/default/variation.php
Expand Up @@ -39,6 +39,12 @@
$options['content-background'] = "#FFFFFF";
$options['header-text-padding-left'] = "10";
$options['header-blogtitle-size'] = "27";
$options['header-text-shadow-color'] = "#777777";
$options['header-text-shadow-offset'] = "1px 1px";
$options['header-text-shadow-blur'] = "0.08em";
$options['post-text-shadow-color'] = "#CCCCCC";
$options['post-text-shadow-offset'] = "1px 1px";
$options['post-text-shadow-blur'] = "0.02em";


if (isset($options['linkcolor'])) {
Expand Down
7 changes: 7 additions & 0 deletions variations/shadowbox-black/variation.php
Expand Up @@ -30,6 +30,13 @@
$options['transparent-heading-color'] = "#CCCC99";
$options['transparent-link-color'] = "#FFFFFF";
$options['transparent-text-color'] = "#FFFFFF";

$options['header-text-shadow-color'] = "#777777";
$options['header-text-shadow-offset'] = "0px 0px";
$options['header-text-shadow-blur'] = "0.00em";
$options['post-text-shadow-color'] = "#CCCCCC";
$options['post-text-shadow-offset'] = "0px 0px";
$options['post-text-shadow-blur'] = "0.00em";

$options['page_image_directory'] = "shadowbox-black";
$options['page_image_path'] = "url('".get_bloginfo("stylesheet_directory")."/variations/".$options['page_image_directory'];
Expand Down

0 comments on commit 9f6fece

Please sign in to comment.