Skip to content
Browse files

modified: changelog.txt

    modified:   lib/csscolor.css.php
    modified:   style.css
  • Loading branch information...
1 parent c0a1445 commit 08e52f13d56c10fec1732f0ebba0e454cace3626 @tenman committed
Showing with 421 additions and 392 deletions.
  1. +26 −0 changelog.txt
  2. +394 −391 lib/csscolor.css.php
  3. +1 −1 style.css
View
26 changelog.txt
@@ -1,4 +1,30 @@
Changelog -----------------------------------
+version:0.907
+
+added
+ footer.php
+ add footer inline style
+ functions.php
+ add reset button
+ header,footer background image uploader
+ header.php
+ add header inline style
+fixed
+ functions.php
+ Missing Raindrops domain for translatable strings fix
+ style.css
+ right sidebar to lose UL LI style fix
+
+modified
+ style.css
+ Add space between to image and post content - image attached.
+ csscolor.css.php
+ div.comment-body *,div.comment-author,div.comment-author-meta,
+ remove background from dark color type
+
+ Long Site Title - image attached - overlap of long site title with description on the right and height is fixed therefore part of the long site title cannot be seen.
+----------------------------------------------
+Changelog -----------------------------------
version:0.906
added
Add current Automatic Color can edit option
View
785 lib/csscolor.css.php
@@ -60,7 +60,7 @@ function raindrops_indv_css_dark(){
ul.nav li a,ul.nav li a:link,ul.nav li a:visited,
ul.nav li a:hover,ul.nav li a:active,
.entry-meta,
-.home .sticky,
+.home .sticky,
#top{
%c_4%
}
@@ -278,8 +278,8 @@ function raindrops_indv_css_dark(){
.reply,
#ft a,
-.category32,
-.archive li a,
+.category32,
+.archive li a,
.page .hentry .entry-title a,
.archive.category h2 a,
cite.fn,
@@ -293,6 +293,9 @@ function raindrops_indv_css_dark(){
#hd h1 a:hover,
/*ol.commentlist li :hover,*/
div.comment-body blockquote,
+div.comment-body *,
+div.comment-author,
+div.comment-author-meta,
#site-description,
#site-title,
#site-title span a,
@@ -499,21 +502,21 @@ function raindrops_indv_css_w3standard(){
body {
- margin:0!important;padding:0;
- background-repeat:repeat-x;
+ margin:0!important;padding:0;
+ background-repeat:repeat-x;
}
#yui-main{
- color:%raindrops_header_color%;
+ color:%raindrops_header_color%;
}
#hd{
- background-image:url(%images_path%%raindrops_header_image%);
+ background-image:url(%images_path%%raindrops_header_image%);
}
.hfeed{
background:#fff;
}
#ft {
- background:url(%images_path%%raindrops_footer_image%) repeat-x;
- color:%raindrops_footer_color%;
+ background:url(%images_path%%raindrops_footer_image%) repeat-x;
+ color:%raindrops_footer_color%;
}
.footer-widget h2,
@@ -529,8 +532,8 @@ function raindrops_indv_css_w3standard(){
}
.ie8 .lsidebar .widget ul li a {
- list-style:none;
-
+ list-style:none;
+
}
.home .sticky {
@@ -551,12 +554,12 @@ function raindrops_indv_css_w3standard(){
input[type="submit"],
input[type="reset"],
input[type="file"]{
- %c4%
+ %c4%
}
input[type="checkbox"],
input[type="radio"],
select{
- %c4%
+ %c4%
}
.social textarea#comment,
.social input[type="text"] {
@@ -571,21 +574,21 @@ function raindrops_indv_css_w3standard(){
}
.entry-content ul li{
- list-style-type:square;
+ list-style-type:square;
}
.entry-content input[type="submit"],
.entry-content input[type="reset"],
.entry-content input[type="file"]{
- %c4%
+ %c4%
}
.entry-content input[type="submit"],
.entry-content input[type="radio"]{
- %c3%
+ %c3%
}
.entry-content select{
- %c4%
+ %c4%
}
.entry-content blockquote{
@@ -657,11 +660,11 @@ function raindrops_indv_css_w3standard(){
}
tfoot td{
- border:none;
+ border:none;
}
.lsidebar li,
.rsidebar li{
- border:none!important;
+ border:none!important;
}
td.month-date,td.month-name,td.time{
@@ -680,7 +683,7 @@ function raindrops_indv_css_w3standard(){
}
.comment-meta a,
cite.fn{
- background:none;
+ background:none;
}
.datetable td li{
}
@@ -720,7 +723,7 @@ function raindrops_indv_css_light(){
$style =<<<DOC
.footer-widget h2,.rsidebar h2,.lsidebar h2 {
-
+
%h2_light_background%;
%h_position_rsidebar_h2%
}
@@ -771,7 +774,7 @@ function raindrops_indv_css_light(){
#hd{
color:#000;
-
+
background:#fff url(%images_path%%raindrops_header_image%);
}
@@ -840,11 +843,11 @@ function raindrops_indv_css_light(){
.rsidebar ul li ul li,
.lsidebar ul li ul li{
border-bottom:1px solid %c_border%;
-
+
}
.lsidebar h2.widgettitle,
.rsidebar h2.widgettitle{
- text-indent:0;
+ text-indent:0;
}
dl.author dd,
dl.author dt,
@@ -947,12 +950,12 @@ function raindrops_indv_css_light(){
input[type="submit"],
input[type="reset"],
input[type="file"]{
- %c4%
+ %c4%
}
input[type="checkbox"],
input[type="radio"],
select{
- %c4%
+ %c4%
}
.social textarea#comment:focus,
@@ -967,7 +970,7 @@ function raindrops_indv_css_light(){
.entry-content th{
%c3%
- border:solid 1px %c_border%;
+ border:solid 1px %c_border%;
}
.entry-content input[type="submit"],
.entry-content input[type="reset"],
@@ -1034,11 +1037,11 @@ function raindrops_indv_css_light(){
}
li.byuser,
li.bypostauthor {
- %c_3%
- border:solid 1px %c_border%;
+ %c_3%
+ border:solid 1px %c_border%;
}
cite.fn{
- background:none;
+ background:none;
}
.datetable td li{
@@ -1091,12 +1094,12 @@ function raindrops_indv_css_light(){
border-bottom:solid 2px %rgba_border%;
}
.footer-widget h2,.rsidebar h2,.lsidebar h2 {
- -webkit-border-top-left-radius: 1em;
- -moz-border-radius-topleft: 1em;
- border-top-left-radius: 1em;
- -webkit-border-bottom-right-radius: 1em;
- -moz-border-radius-bottomright: 1em;
- border-bottom-right-radius: 1em;
+ -webkit-border-top-left-radius: 1em;
+ -moz-border-radius-topleft: 1em;
+ border-top-left-radius: 1em;
+ -webkit-border-bottom-right-radius: 1em;
+ -moz-border-radius-bottomright: 1em;
+ border-bottom-right-radius: 1em;
}
.rsidebar ul li ul li,
.lsidebar ul li ul li{
@@ -1106,7 +1109,7 @@ function raindrops_indv_css_light(){
dl.author dt,
dl.my_tags dd,
dl.my_tags dt{
- border-bottom:1px solid %rgba_border%;
+ border-bottom:1px solid %rgba_border%;
}
ul.index{
@@ -1215,12 +1218,12 @@ function raindrops_indv_css_light(){
}
li.byuser,
li.bypostauthor {
- border:solid 1px %rgba_border%;
+ border:solid 1px %rgba_border%;
}
.datetable td li{
- border-bottom:solid 1px %rgba_border%;
+ border-bottom:solid 1px %rgba_border%;
}
#sidebar{
border-color:%rgba_border%;
@@ -1259,7 +1262,7 @@ function raindrops_indv_css_minimal(){
}
a,
#yui-main{
- color:%raindrops_header_color%;
+ color:%raindrops_header_color%;
}
#datelist table,
#raindrops_year_list,
@@ -1300,10 +1303,10 @@ function raindrops_indv_css_minimal(){
%c3%
}
cite.fn{
- background:none;
+ background:none;
}
.datetable td li{
- border-bottom:solid 1px %c_border%;
+ border-bottom:solid 1px %c_border%;
}
.fail-search,
#not-found {
@@ -1359,9 +1362,9 @@ function raindrops_indv_css_minimal(){
?>
<?php
- if(!defined('ABSPATH')){exit;}
- $embed_common_style = get_current_theme();
- raindrops_register_styles($embed_common_style);
+ if(!defined('ABSPATH')){exit;}
+ $embed_common_style = get_current_theme();
+ raindrops_register_styles($embed_common_style);
$images_path = get_stylesheet_directory_uri().'/images/';
$count = raindrops_warehouse('raindrops_base_color');
$style_type = raindrops_warehouse('raindrops_style_type');
@@ -1376,24 +1379,24 @@ function raindrops_indv_css_minimal(){
* save stylesheet
*
*/
- $raindrops_indv_css = raindrops_design_output($style_type).raindrops_color_base();
- $raindrops_options = get_option("raindrops_theme_settings");
- // if not handmade css. theme name style type is handmade
-if(raindrops_warehouse("raindrops_style_type") !== get_current_theme() ){
- if(is_array($raindrops_options)){
-
- if(array_key_exists('_raindrops_indv_css',$raindrops_options)){
- $raindrops_options['_raindrops_indv_css'] = $raindrops_indv_css;
- }else{
- $add_array = array('_raindrops_indv_css'=> $raindrops_indv_css );
- $raindrops_options = array_merge($raindrops_options,$add_array);
- }
- update_option("raindrops_theme_settings",$raindrops_options);
-
- }else{
- $raindrops_options['_raindrops_indv_css'] = $raindrops_indv_css;
- add_option("raindrops_theme_settings",$raindrops_options );
- }
+ $raindrops_indv_css = raindrops_design_output($style_type).raindrops_color_base();
+ $raindrops_options = get_option("raindrops_theme_settings");
+ // if not handmade css. theme name style type is handmade
+if(raindrops_warehouse("raindrops_style_type") !== get_current_theme() ){
+ if(is_array($raindrops_options)){
+
+ if(array_key_exists('_raindrops_indv_css',$raindrops_options)){
+ $raindrops_options['_raindrops_indv_css'] = $raindrops_indv_css;
+ }else{
+ $add_array = array('_raindrops_indv_css'=> $raindrops_indv_css );
+ $raindrops_options = array_merge($raindrops_options,$add_array);
+ }
+ update_option("raindrops_theme_settings",$raindrops_options);
+
+ }else{
+ $raindrops_options['_raindrops_indv_css'] = $raindrops_indv_css;
+ add_option("raindrops_theme_settings",$raindrops_options );
+ }
}
/**
* Create CSS Color Declaration
@@ -1402,127 +1405,127 @@ function raindrops_indv_css_minimal(){
*
*
*/
- function raindrops_colors($num = 0, $select = 'set',$color1 = null){
- global $images_path;
- if($color1 == null){
- $color1 = str_replace('#',"",BASE_COLOR1);
- }else{
- $color1 = str_replace('#',"",$color1);
- }
- $base = new CSS_Color( $color1 );
- switch($num){
- case(0):
- $bg = $base->bg['0'];
- $fg = $base->fg['0'];
- $color = "color:#$fg;background-color:#$bg;";
- break;
- case(-1):
- $bg = $base->bg['-1'];
- $fg = $base->fg['-1'];
- $color = "color:#$fg;background-color:#$bg;";
- break;
- case(-2):
- $bg = $base->bg['-2'];
- $fg = $base->fg['-2'];
- $color = "color:#$fg;background-color:#$bg;";
- break;
- case(-3):
- $bg = $base->bg['-3'];
- $fg = $base->fg['-3'];
- $color = "color:#$fg;background-color:#$bg;";
- break;
- case(-4):
- $bg = $base->bg['-4'];
- $fg = $base->fg['-4'];
- $color = "color:#$fg;background-color:#$bg;";
- break;
- case(-5):
- $bg = $base->bg['-5'];
- $fg = $base->fg['-5'];
- $color = "color:#$fg;\n\tbackground-color:#$bg;";
- break;
- case(1):
- $bg = $base->bg['+1'];
- $fg = $base->fg['+1'];
- $color = "color:#$fg;\n\tbackground-color:#$bg;";
- break;
- case(2):
- $bg = $base->bg['+2'];
- $fg = $base->fg['+2'];
- $color = "color:#$fg;\n\tbackground-color:#$bg;";
- break;
- case(3):
- $bg = $base->bg['+3'];
- $fg = $base->fg['+3'];
- $color = "color:#$fg;\n\tbackground-color:#$bg;";
- break;
- case(4):
- $bg = $base->bg['+4'];
- $fg = $base->fg['+4'];
- $color = "color:#$fg;\n\tbackground-color:#$bg;";
- break;
- case(5):
- $bg = $base->bg['+5'];
- $fg = $base->fg['+5'];
- $color = "color:#$fg;\n\tbackground-color:#$bg;";
- break;
- default:
- $bg = $base->bg['0'];
- $fg = $base->fg['0'];
- $color = "color:#$fg;\n\tbackground-color:#$bg;";
- break;
- }
- switch($select){
- case('set'):
- return $color;
- break;
- case('background'):
- return '#'.$bg;
- break;
- case('color'):
- return '#'.$fg;
- break;
- }
- }
+ function raindrops_colors($num = 0, $select = 'set',$color1 = null){
+ global $images_path;
+ if($color1 == null){
+ $color1 = str_replace('#',"",BASE_COLOR1);
+ }else{
+ $color1 = str_replace('#',"",$color1);
+ }
+ $base = new CSS_Color( $color1 );
+ switch($num){
+ case(0):
+ $bg = $base->bg['0'];
+ $fg = $base->fg['0'];
+ $color = "color:#$fg;background-color:#$bg;";
+ break;
+ case(-1):
+ $bg = $base->bg['-1'];
+ $fg = $base->fg['-1'];
+ $color = "color:#$fg;background-color:#$bg;";
+ break;
+ case(-2):
+ $bg = $base->bg['-2'];
+ $fg = $base->fg['-2'];
+ $color = "color:#$fg;background-color:#$bg;";
+ break;
+ case(-3):
+ $bg = $base->bg['-3'];
+ $fg = $base->fg['-3'];
+ $color = "color:#$fg;background-color:#$bg;";
+ break;
+ case(-4):
+ $bg = $base->bg['-4'];
+ $fg = $base->fg['-4'];
+ $color = "color:#$fg;background-color:#$bg;";
+ break;
+ case(-5):
+ $bg = $base->bg['-5'];
+ $fg = $base->fg['-5'];
+ $color = "color:#$fg;\n\tbackground-color:#$bg;";
+ break;
+ case(1):
+ $bg = $base->bg['+1'];
+ $fg = $base->fg['+1'];
+ $color = "color:#$fg;\n\tbackground-color:#$bg;";
+ break;
+ case(2):
+ $bg = $base->bg['+2'];
+ $fg = $base->fg['+2'];
+ $color = "color:#$fg;\n\tbackground-color:#$bg;";
+ break;
+ case(3):
+ $bg = $base->bg['+3'];
+ $fg = $base->fg['+3'];
+ $color = "color:#$fg;\n\tbackground-color:#$bg;";
+ break;
+ case(4):
+ $bg = $base->bg['+4'];
+ $fg = $base->fg['+4'];
+ $color = "color:#$fg;\n\tbackground-color:#$bg;";
+ break;
+ case(5):
+ $bg = $base->bg['+5'];
+ $fg = $base->fg['+5'];
+ $color = "color:#$fg;\n\tbackground-color:#$bg;";
+ break;
+ default:
+ $bg = $base->bg['0'];
+ $fg = $base->fg['0'];
+ $color = "color:#$fg;\n\tbackground-color:#$bg;";
+ break;
+ }
+ switch($select){
+ case('set'):
+ return $color;
+ break;
+ case('background'):
+ return '#'.$bg;
+ break;
+ case('color'):
+ return '#'.$fg;
+ break;
+ }
+ }
function raindrops_gradient_css($color = null,$num = 0,$diff = 1,$order = 'asc'){
- global $images_path;
- if($color == null){
- $color = str_replace('#',"",BASE_COLOR1);
- }else{
- $color = str_replace('#',"",$color);
- }
-
- $base = new CSS_Color( $color );
-
- if($num>4){$num = 4;}
- if($num + $diff > 4){$num = 4 - $diff;}
+ global $images_path;
+ if($color == null){
+ $color = str_replace('#',"",BASE_COLOR1);
+ }else{
+ $color = str_replace('#',"",$color);
+ }
+
+ $base = new CSS_Color( $color );
+
+ if($num>4){$num = 4;}
+ if($num + $diff > 4){$num = 4 - $diff;}
if($order == "asc"){
$custom_dark_bg1 = raindrops_colors($num, 'background',$color);
-
- $num2 = (int)$num + $diff;
+
+ $num2 = (int)$num + $diff;
$custom_light_bg1 = raindrops_colors($num2, 'background',$color);
- if(isset($base->fg[$num])){
- $fg = $base->fg[$num];
- }else{
- $fg = "";
- }
-
+ if(isset($base->fg[$num])){
+ $fg = $base->fg[$num];
+ }else{
+ $fg = "";
+ }
+
}elseif($order == "desc"){
$custom_dark_bg1 = $base->bg[$num + $diff];
$custom_light_bg1 = $base->bg[$num];
- if(isset($base->fg[$num])){
- $fg = $base->fg[$num];
- }else{
- $fg = "";
- }
+ if(isset($base->fg[$num])){
+ $fg = $base->fg[$num];
+ }else{
+ $fg = "";
+ }
}
- $g = 'color:#'.$fg.';';
+ $g = 'color:#'.$fg.';';
$g .= 'background: -webkit-gradient(linear, left top, left bottom, from('.$custom_dark_bg1.'), to('.$custom_light_bg1.'));';
$g .= 'background: -moz-linear-gradient(top, '.$custom_dark_bg1.', '.$custom_light_bg1.');';
$g .= 'filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=\''.$custom_dark_bg1.'\', endColorstr=\''.$custom_light_bg1.'\');';
return $g;
- }
+ }
/**
* Base Color Class Create
*
@@ -1530,41 +1533,41 @@ function raindrops_gradient_css($color = null,$num = 0,$diff = 1,$order = 'asc')
*
*
*/
- function raindrops_color_base($color1=null,$color2=null){
- global $images_path;
- if($color1 == null){
- $color1 = str_replace('#',"",BASE_COLOR1);
- }else{
- $color1 = str_replace('#',"",$color1);
- }
- $base = new CSS_Color($color1);
- $bg_1 = $base->bg['-1'];
- $fg_1 = $base->fg['-1'];
- $bg_2 = $base->bg['-2'];
- $fg_2 = $base->fg['-2'];
- $bg_3 = $base->bg['-3'];
- $fg_3 = $base->fg['-3'];
- $bg_4 = $base->bg['-4'];
- $fg_4 = $base->fg['-4'];
- $bg_5 = $base->bg['-5'];
- $fg_5 = $base->fg['-5'];
- $bg1 = $base->bg['+1'];
- $fg1 = $base->fg['+1'];
- $bg2 = $base->bg['+2'];
- $fg2 = $base->fg['+2'];
- $bg3 = $base->bg['+3'];
- $fg3 = $base->fg['+3'];
- $bg4 = $base->bg['+4'];
- $fg4 = $base->fg['+4'];
- $bg5 = $base->bg['+5'];
- $fg5 = $base->fg['+5'];
-
-
-
-
-
-
- $result=<<<CSS
+ function raindrops_color_base($color1=null,$color2=null){
+ global $images_path;
+ if($color1 == null){
+ $color1 = str_replace('#',"",BASE_COLOR1);
+ }else{
+ $color1 = str_replace('#',"",$color1);
+ }
+ $base = new CSS_Color($color1);
+ $bg_1 = $base->bg['-1'];
+ $fg_1 = $base->fg['-1'];
+ $bg_2 = $base->bg['-2'];
+ $fg_2 = $base->fg['-2'];
+ $bg_3 = $base->bg['-3'];
+ $fg_3 = $base->fg['-3'];
+ $bg_4 = $base->bg['-4'];
+ $fg_4 = $base->fg['-4'];
+ $bg_5 = $base->bg['-5'];
+ $fg_5 = $base->fg['-5'];
+ $bg1 = $base->bg['+1'];
+ $fg1 = $base->fg['+1'];
+ $bg2 = $base->bg['+2'];
+ $fg2 = $base->fg['+2'];
+ $bg3 = $base->bg['+3'];
+ $fg3 = $base->fg['+3'];
+ $bg4 = $base->bg['+4'];
+ $fg4 = $base->fg['+4'];
+ $bg5 = $base->bg['+5'];
+ $fg5 = $base->fg['+5'];
+
+
+
+
+
+
+ $result=<<<CSS
.color-1{
background:#{$bg_1};
color:#{$fg_1};
@@ -1640,10 +1643,10 @@ function raindrops_color_base($color1=null,$color2=null){
color:#{$fg5};
}
CSS;
- return $result;
- }
+ return $result;
+ }
/**
- * from hex color #000000 to rgba color
+ * from hex color #000000 to rgba color
*
*
*
@@ -1671,7 +1674,7 @@ function raindrops_hex2rgba($color,$opecity){
*
*/
/* function raindrops_design_output($name = 'default'){
-
+
}
/**
* Declaration Calculator
@@ -1680,194 +1683,194 @@ function raindrops_hex2rgba($color,$opecity){
*
*
*/
- function raindrops_design_output($name = 'dark'){
-
- $images_path = get_stylesheet_directory_uri().'/images/';
- $navigation_title_img = raindrops_warehouse('raindrops_heading_image');
- $raindrops_header_image = raindrops_warehouse('raindrops_header_image');
- $raindrops_header_color = raindrops_warehouse('raindrops_default_fonts_color');
- $raindrops_footer_image = raindrops_warehouse('raindrops_footer_image');
- $raindrops_footer_color = raindrops_warehouse('raindrops_footer_color');
-
- if(empty($name)){ $name = 'dark';}
-
- $c_border = raindrops_colors(0,'background');
- if($c_border == '#'){
- $rgba_border = 'rgba(203,203,203, 0.8)';
- }else{
- $rgba_border = raindrops_hex2rgba($c_border,0.5);
- }
-
- $c1 = raindrops_colors(0);
- $c1 = raindrops_colors(1);
- $c2 = raindrops_colors(2);
- $c3 = raindrops_colors(3);
- $c4 = raindrops_colors(4);
- $c5 = raindrops_colors(5);
- $c_1 = raindrops_colors(-1);
- $c_2 = raindrops_colors(-2);
- $c_3 = raindrops_colors(-3);
- $c_4 = raindrops_colors(-4);
- $c_5 = raindrops_colors(-5);
-
- $position_y = raindrops_warehouse('raindrops_heading_image_position');
- $y = $position_y * 26;
- $y = '-'.$y.'px';
- switch( $position_y ){
- case(0):
- $h_position_rsidebar_h2 = "background-position:0 0;";
- break;
- case(1):
- $h_position_rsidebar_h2 = "background-position:0 $y;";
- break;
- case(2):
- $h_position_rsidebar_h2 = "background-position:0 $y;";
- break;
- case(3):
- $h_position_rsidebar_h2 = "background-position:0 $y;";
- break;
- case(4):
- $h_position_rsidebar_h2 = "background-position:0 $y;";
- break;
- case(5):
- $h_position_rsidebar_h2 = "background-position:0 $y;";
- break;
- case(6):
- $h_position_rsidebar_h2 = "background-position:0 $y;";
- break;
- case(7):
- $h_position_rsidebar_h2 = "background-position:0 $y;";
- break;
- default:
- $h_position_rsidebar_h2 = "background-position:0 208px;";
- break;
- }
- $h2_w3standard_background = "background:".raindrops_colors(5,'background').' ';
- $h2_w3standard_background .= "url({$images_path}{$navigation_title_img});";
- $h2_w3standard_background .= "color:".raindrops_colors(4,'color').';';
- $h2_dark_background = "background:".raindrops_colors(-3,'background').' ';
- $h2_dark_background .= "url({$images_path}{$navigation_title_img});";
- $h2_dark_background .= "color:".raindrops_colors(-3,'color').';';
- $h2_light_background = "background:".raindrops_colors(4,'background').' ';
- $h2_light_background .= "url({$images_path}{$navigation_title_img});";
- $h2_light_background .= "color:".raindrops_colors(4,'color').';';
-
-
-
-
-
- switch($name){
- case("w3standard"):
- $custom_dark_bg = raindrops_colors('3','background');
- $custom_light_bg = raindrops_colors('1','background');
- $custom_color = raindrops_colors('1','color');
- if(!empty($raindrops_footer_color)){
- $raindrops_footer_color = $raindrops_footer_color;
- }else{
- $raindrops_footer_color = '#000';
- }
- if(!empty($raindrops_header_color)){
- $raindrops_header_color = $raindrops_header_color;
- }else{
- $raindrops_header_color = '#000';
- }
- $gradient = raindrops_gradient();
- break;
- case("dark"):
- /**
- *dark
- */
- $custom_dark_bg = raindrops_colors('-1','background');
- $custom_light_bg = raindrops_colors('-4','background');
- $custom_color = raindrops_colors('-3','color');
- if(!empty($raindrops_footer_color)){
- $raindrops_footer_color = $raindrops_footer_color;
- }else{
- $raindrops_footer_color = '#fff';
- }
- if(!empty($raindrops_header_color)){
- $raindrops_header_color = $raindrops_header_color;
- }else{
- $raindrops_header_color = '#fff';
- }
- $gradient = raindrops_gradient();
- break;
- case("light"):
- /**
- * light
- */
- $custom_dark_bg = raindrops_colors('5','background');
- $custom_light_bg = raindrops_colors('3','background');
- $custom_color = raindrops_colors('3','color');
- $base_gradient = raindrops_gradient_single(3,"asc");
- if(!empty($raindrops_footer_color)){
- $raindrops_footer_color = $raindrops_footer_color;
- }else{
- $raindrops_footer_color = '#333';
- }
- if(!empty($raindrops_header_color)){
- $raindrops_header_color = $raindrops_header_color;
- }else{
- $raindrops_header_color = '#333';
- }
- $gradient = raindrops_gradient();
- break;
- default:
- $custom_dark_bg = raindrops_colors('3','background');
- $custom_light_bg = raindrops_colors('1','background');
- $custom_color = raindrops_colors('1','color');
- if(!empty($raindrops_footer_color)){
- $raindrops_footer_color = $raindrops_footer_color;
- }else{
- $raindrops_footer_color = '#000';
- }
- if(!empty($raindrops_header_color)){
- $raindrops_header_color = $raindrops_header_color;
- }else{
- $raindrops_header_color = '#000';
- }
- $gradient = raindrops_gradient();
- break;
- }
-
-
- $function_name = 'raindrops_indv_css_'.$name;
-
- if(function_exists($function_name)){
-
- $content = $function_name();
-
- foreach(explode(' ',$content,-1) as $line){
-
- preg_match_all('|%([a-z0-9_-]+)?%|si',$line,$regs,PREG_SET_ORDER);
-
- foreach($regs as $reg){
- if(isset($$reg[1])){
- $content = str_replace($reg[0],$$reg[1],$content);
- }else{
- $content = str_replace($reg[0],'/*cannot bind data [%'.$reg[1].'%]*/',$content);
- }
- }
- }
- return apply_filters("raindrops_colors", $content);
-
- }
- }
+ function raindrops_design_output($name = 'dark'){
+
+ $images_path = get_stylesheet_directory_uri().'/images/';
+ $navigation_title_img = raindrops_warehouse('raindrops_heading_image');
+ $raindrops_header_image = raindrops_warehouse('raindrops_header_image');
+ $raindrops_header_color = raindrops_warehouse('raindrops_default_fonts_color');
+ $raindrops_footer_image = raindrops_warehouse('raindrops_footer_image');
+ $raindrops_footer_color = raindrops_warehouse('raindrops_footer_color');
+
+ if(empty($name)){ $name = 'dark';}
+
+ $c_border = raindrops_colors(0,'background');
+ if($c_border == '#'){
+ $rgba_border = 'rgba(203,203,203, 0.8)';
+ }else{
+ $rgba_border = raindrops_hex2rgba($c_border,0.5);
+ }
+
+ $c1 = raindrops_colors(0);
+ $c1 = raindrops_colors(1);
+ $c2 = raindrops_colors(2);
+ $c3 = raindrops_colors(3);
+ $c4 = raindrops_colors(4);
+ $c5 = raindrops_colors(5);
+ $c_1 = raindrops_colors(-1);
+ $c_2 = raindrops_colors(-2);
+ $c_3 = raindrops_colors(-3);
+ $c_4 = raindrops_colors(-4);
+ $c_5 = raindrops_colors(-5);
+
+ $position_y = raindrops_warehouse('raindrops_heading_image_position');
+ $y = $position_y * 26;
+ $y = '-'.$y.'px';
+ switch( $position_y ){
+ case(0):
+ $h_position_rsidebar_h2 = "background-position:0 0;";
+ break;
+ case(1):
+ $h_position_rsidebar_h2 = "background-position:0 $y;";
+ break;
+ case(2):
+ $h_position_rsidebar_h2 = "background-position:0 $y;";
+ break;
+ case(3):
+ $h_position_rsidebar_h2 = "background-position:0 $y;";
+ break;
+ case(4):
+ $h_position_rsidebar_h2 = "background-position:0 $y;";
+ break;
+ case(5):
+ $h_position_rsidebar_h2 = "background-position:0 $y;";
+ break;
+ case(6):
+ $h_position_rsidebar_h2 = "background-position:0 $y;";
+ break;
+ case(7):
+ $h_position_rsidebar_h2 = "background-position:0 $y;";
+ break;
+ default:
+ $h_position_rsidebar_h2 = "background-position:0 208px;";
+ break;
+ }
+ $h2_w3standard_background = "background:".raindrops_colors(5,'background').' ';
+ $h2_w3standard_background .= "url({$images_path}{$navigation_title_img});";
+ $h2_w3standard_background .= "color:".raindrops_colors(4,'color').';';
+ $h2_dark_background = "background:".raindrops_colors(-3,'background').' ';
+ $h2_dark_background .= "url({$images_path}{$navigation_title_img});";
+ $h2_dark_background .= "color:".raindrops_colors(-3,'color').';';
+ $h2_light_background = "background:".raindrops_colors(4,'background').' ';
+ $h2_light_background .= "url({$images_path}{$navigation_title_img});";
+ $h2_light_background .= "color:".raindrops_colors(4,'color').';';
+
+
+
+
+
+ switch($name){
+ case("w3standard"):
+ $custom_dark_bg = raindrops_colors('3','background');
+ $custom_light_bg = raindrops_colors('1','background');
+ $custom_color = raindrops_colors('1','color');
+ if(!empty($raindrops_footer_color)){
+ $raindrops_footer_color = $raindrops_footer_color;
+ }else{
+ $raindrops_footer_color = '#000';
+ }
+ if(!empty($raindrops_header_color)){
+ $raindrops_header_color = $raindrops_header_color;
+ }else{
+ $raindrops_header_color = '#000';
+ }
+ $gradient = raindrops_gradient();
+ break;
+ case("dark"):
+ /**
+ *dark
+ */
+ $custom_dark_bg = raindrops_colors('-1','background');
+ $custom_light_bg = raindrops_colors('-4','background');
+ $custom_color = raindrops_colors('-3','color');
+ if(!empty($raindrops_footer_color)){
+ $raindrops_footer_color = $raindrops_footer_color;
+ }else{
+ $raindrops_footer_color = '#fff';
+ }
+ if(!empty($raindrops_header_color)){
+ $raindrops_header_color = $raindrops_header_color;
+ }else{
+ $raindrops_header_color = '#fff';
+ }
+ $gradient = raindrops_gradient();
+ break;
+ case("light"):
+ /**
+ * light
+ */
+ $custom_dark_bg = raindrops_colors('5','background');
+ $custom_light_bg = raindrops_colors('3','background');
+ $custom_color = raindrops_colors('3','color');
+ $base_gradient = raindrops_gradient_single(3,"asc");
+ if(!empty($raindrops_footer_color)){
+ $raindrops_footer_color = $raindrops_footer_color;
+ }else{
+ $raindrops_footer_color = '#333';
+ }
+ if(!empty($raindrops_header_color)){
+ $raindrops_header_color = $raindrops_header_color;
+ }else{
+ $raindrops_header_color = '#333';
+ }
+ $gradient = raindrops_gradient();
+ break;
+ default:
+ $custom_dark_bg = raindrops_colors('3','background');
+ $custom_light_bg = raindrops_colors('1','background');
+ $custom_color = raindrops_colors('1','color');
+ if(!empty($raindrops_footer_color)){
+ $raindrops_footer_color = $raindrops_footer_color;
+ }else{
+ $raindrops_footer_color = '#000';
+ }
+ if(!empty($raindrops_header_color)){
+ $raindrops_header_color = $raindrops_header_color;
+ }else{
+ $raindrops_header_color = '#000';
+ }
+ $gradient = raindrops_gradient();
+ break;
+ }
+
+
+ $function_name = 'raindrops_indv_css_'.$name;
+
+ if(function_exists($function_name)){
+
+ $content = $function_name();
+
+ foreach(explode(' ',$content,-1) as $line){
+
+ preg_match_all('|%([a-z0-9_-]+)?%|si',$line,$regs,PREG_SET_ORDER);
+
+ foreach($regs as $reg){
+ if(isset($$reg[1])){
+ $content = str_replace($reg[0],$$reg[1],$content);
+ }else{
+ $content = str_replace($reg[0],'/*cannot bind data [%'.$reg[1].'%]*/',$content);
+ }
+ }
+ }
+ return apply_filters("raindrops_colors", $content);
+
+ }
+ }
/**
- * register style name
+ * register style name
*
*
*
*
*/
function raindrops_register_styles($style_name){
-
- static $vals;
-
- $vals[$style_name] = $style_name;
-
- return $vals;
-
+
+ static $vals;
+
+ $vals[$style_name] = $style_name;
+
+ return $vals;
+
}
?>
View
2 style.css
@@ -5,7 +5,7 @@ Description: This theme file has the automatic arrangement of color function in
An automatic arrangement of color and the layout can be changed to the expression who you further seem by your instruction.
Author: Tenman
Author URI: http://www.tenman.info/wp3/
-Version: 0.906
+Version: 0.907
Tags:black, blue, brown, green, orange, pink, purple, red, silver, tan, white, yellow, dark, light,two-columns,three-columns,four-columns,left-sidebar,right-sidebar ,fixed-width ,flexible-width, custom-colors, custom-header, custom-background, custom-menu, editor-style, theme-options, threaded-comments, sticky-post, translation-ready
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html

0 comments on commit 08e52f1

Please sign in to comment.
Something went wrong with that request. Please try again.