a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a, /*#access ul ul a,*/ .searchform input[type="text"], .social textarea#comment, .social input[type="text"], .hentry input[type="password"], .entry-content blockquote, td.month-date,td.month-name,td.time, .footer-widget h2,.rsidebar h2,.lsidebar h2, #ft #wp-calendar, #ft, #nav, ul.nav{ %c_3% } .ie6 #access ul li.current_page_item a, .ie6 #access ul li.current-menu-ancestor a, .ie6 #access ul li.current-menu-item a, .ie6 #access ul li.current-menu-parent a, .ie6 #access ul li a:hover { /* border:1px solid %rgba_border%;*/ %c_2% } input[type="file"], input[type="reset"], .social input[type="submit"], input[type="submit"]{ %c_3% } .entry div h2,.entry div h3{ } #hd{ /*background-image:url(%raindrops_hd_images_path%%raindrops_header_image%);*/ } #header-image{ background-color:%custom_light_bg%!important; } .home .sticky, .entry-meta{ border-top:solid 2px %c_border%; border-bottom:solid 2px %c_border%; } .home .sticky{ border-top:solid 6px %c_border%; } .attachment .caption dt{ border-bottom:double 3px %c_border%; } #yui-main{ color:%raindrops_header_color%; } /* ol.commentlist :hover{ background:url(%raindrops_images_path%latestbck.gif) repeat-x; }*/ ol.tblist li{ background:transparent url(%raindrops_images_path%c.gif) 0 2px no-repeat; } #ft{ border-top: medium solid %c_border%; /*background:url(%raindrops_images_path%%raindrops_footer_image%) repeat-x;*/ background-repeat:repeat-x; color:%raindrops_footer_color%; } #ft #wp-calendar{ border:1px solid %c_border%!important; } .footer-widget h2,.rsidebar h2,.lsidebar h2 { %h2_dark_background% %h_position_rsidebar_h2% } .datetable td li, .rsidebar ul li ul li, .lsidebar ul li ul li, .blog .entry-utility li, .mycomment, .blog .entry-utility li, dl.author dd, dl.author dt, dl.my_tags dd, dl.my_tags dt, ul.category li, ul.sitemap ul li, ul.archive ul li, ul.all_entry h2, .attachment .caption dd, ul.archive,ul.index, .sitemap.new li, #items li{ border-bottom:1px solid %c_border%; } .ie6 .datetable td li, .ie7 .datetable td li, .ie8 .datetable td li{ border-bottom:none; border-bottom:none; } hr{ border:none; border-top:1px solid %c_border%; } #month_list, #month_list td, #raindrops_year_list td, #calendar_wrap td, #date_list td, #month_list, #month_list td, #raindrops_year_list td, #calendar_wrap td, #date_list td, fieldset, .itiran, #month_list, #month_list td, #raindrops_year_list td, #calendar_wrap td, #date_list td, .searchform input[type="text"], .searchform input[type="submit"], .hentry input[type="password"], #respond input[type="text"], #respond textarea#comment, .social textarea#comment, .social input[type="text"], .social input[type="submit"], .entry-content input[type="email"], .entry-content input[type="text"], .entry-content input[type=url], .entry-content input[type=tel], .entry-content input[type=number], .entry-content input[type=color], .entry-content textarea, .entry-content blockquote, td.month-date,td.month-name,td.time{ border:1px solid %c_border%; } .entry-content blockquote { border-left:solid 6px %c_border%; } li.byuser, li.bypostauthor, #respond input[type="text"]:focus, #respond textarea#comment:focus, .social textarea#comment:focus, .social input:focus, .entry-content th{ %c_3% } .raindrops-comment-author-meta cite.fn, li.byuser div.comment-body *, li.byuser span.says{ %c_3% background:none; } .wp-caption, .entry-content td, .entry-content th{ } #respond input[type="text"], #respond textarea#comment, .searchform input[type="submit"], .entry-content textarea, .entry-content input[type="password"], .entry-content input[type="text"], .entry-content input[type="submit"], .entry-content input[type="reset"], .entry-content input[type="file"], .entry-content input[type="checkbox"], .entry-content input[type="radio"], .entry-content input[type="email"], .entry-content input[type="text"], .entry-content input[type=url], .entry-content input[type=tel], .entry-content input[type=number], .entry-content input[type=color], .entry-content select{ %c_4% } #access .children li , #access .children a { background:%custom_light_bg%; color:%custom_color%; z-index:999; } .raindrops-tab-content, .raindrops-tab-page, .raindrops-tab-list li{ background:%custom_light_bg%; color:%custom_color%; } .fail-search, #not-found{ border:1px solid; } .children:hover, .children{ } .reply, #ft a, .page .hentry .entry-title a, /*.archive.category h2 a,*/ cite.fn, cite a:link, cite a:active, cite a:visited, cite a:hover, /*ol.commentlist li :hover,*/ div.comment-body blockquote, div.comment-body *, div.comment-author, div.comment-author-meta, #site-description, .home .sticky a, .home .entry-meta a{ color:$font_color_5; background:none; } .comment-author div.comment-meta a{ color:$font_color_5; background:none; } /*h1{color:#fff!important;}*/ .rd-page-navigation li{ border-left:solid 1px %c_border%; %c_4% } .rd-page-navigation .current_page_item{ %c_4% } .current_page_item{ %c_2% } DOC; $css3 =<<a, .ie10 #access li:active >a , .ie10 #access ul ul :active >a{ background-image: -ms-linear-gradient(top, %custom_light_bg%, %custom_dark_bg%); } .fail-search, .raindrops-tab-list li:active, #access .children li:active, #access li:active, #access ul ul :active { top:0; background: -webkit-gradient(linear, left top, left bottom, from(%custom_light_bg%), to(%custom_dark_bg%)); background: -moz-linear-gradient(top, %custom_light_bg%, %custom_dark_bg%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='%custom_light_bg%', endColorstr='%custom_dark_bg%'); color:%custom_color%; } .wp-caption { -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background: -webkit-gradient(linear, left top, left bottom, from(%custom_dark_bg%), to(%custom_light_bg%)); background: -moz-linear-gradient(top, %custom_dark_bg%, %custom_light_bg%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='%custom_dark_bg%', endColorstr='%custom_light_bg%'); } .entry-content blockquote { border-left:solid 6px %rgba_border%; } #header-image p{ text-shadow: 2px 2px 2px #000; } .fail-search, #slides .slides_container, .raindrops-tab-content, .raindrops-tab-list li{ border:1px solid rgba(200,200,200,0.3); } /*comment bubble*/ a.raindrops-comment-link { } .raindrops-comment-link em { %c_2% -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; border-radius: 0.25em; position: relative; } .raindrops-comment-link .point { border-left: 0.45em solid %rgba_border%; border-bottom: 0.45em solid #FFF; /* IE fix */ border-bottom: 0.45em solid rgba(0,0,0,0); overflow: hidden; /* IE fix */ } a.raindrops-comment-link:hover { } a.raindrops-comment-link:hover em { %c2% } a.raindrops-comment-link:hover .point { border-left:1px solid %rgba_border%; } CSS3; return $style.$css3; } ?> a, #access ul ul :active > a { top:0; %c2% color:%custom_color% } #access ul li.current_page_item, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { %c4% } .ie6 #access ul li.current_page_item a, .ie6 #access ul li.current-menu-ancestor a, .ie6 #access ul li.current-menu-item a, .ie6 #access ul li.current-menu-parent a, .ie6 #access ul li a:hover { %c3% } table, table td, #access > li{ border:1px solid #ccc; } tfoot td{ border:none; } .lsidebar li, .rsidebar li{ border:none!important; } td.month-date,td.month-name,td.time{ %c4% } .datetable td li{ } address{margin:10px auto;} .wp-caption { } li.byuser, li.bypostauthor { %c5% } .comment-meta a, cite.fn{ background:none; } .datetable td li{ } .fail-search, #not-found { %c3% border:3px double; } .rd-page-navigation li{ border-left:solid 1px %c_border%; %c5% } .rd-page-navigation a{ %c5% } .rd-page-navigation .current_page_item{ %c4% } .raindrops-tab-content, .raindrops-tab-list li{ border:1px solid %c_border%; } a.raindrops-comment-link { } .raindrops-comment-link em { %c4% position: relative; } .raindrops-comment-link .point { } a.raindrops-comment-link:hover { } a.raindrops-comment-link:hover em { %c_1% } a.raindrops-comment-link:hover .point { border-left:1px solid %c_border%; } DOC; return $style; } ?> a, #access li:active >a , #access ul ul :active >a{ top:0; } #access ul li.current_page_item, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a { /* change 1.125 next version remove %c3% */ %c5% } .ie6 #access ul li.current_page_item a, .ie6 #access ul li.current-menu-ancestor a, .ie6 #access ul li.current-menu-item a, .ie6 #access ul li.current-menu-parent a, .ie6 #access ul li a:hover { %c2% } address{ margin:10px auto; } #bd article:not(.format-link) a, .postmetadata{ background:none!important; } .wp-caption { border:solid 1px #999; } li.byuser, li.bypostauthor { } cite.fn{ background:none; } .datetable td li{ } .fail-search, #not-found { %c4% border:3px double %c_border%; } .rd-page-navigation li{ border-left:solid 1px %c_border%; %c4% } .rd-page-navigation a{ %c4% } .rd-page-navigation .current_page_item{ %c5% } .raindrops-tab-content, .raindrops-tab-list li{ border:1px solid %c_border%; } DOC; $css3=<<a, #access li:active >a , #access ul ul :active >a{ background: -webkit-gradient(linear, left top, left bottom, from(%custom_light_bg%), to(%custom_dark_bg%))!important; background: -moz-linear-gradient(top, %custom_light_bg%, %custom_dark_bg%)!important; /*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='%custom_light_bg%', endColorstr='%custom_dark_bg%');*/ color:%custom_color%; } .ie10 #access{ background-image: -ms-linear-gradient(top, %custom_dark_bg%, %custom_light_bg%)!important; } .ie10 #access a { background-image: -ms-linear-gradient(top, %custom_dark_bg%, %custom_light_bg%); } .ie10 #access .children li:active >a, .ie10 #access li:active >a , .ie10 #access ul ul :active >a{ background-image: -ms-linear-gradient(top, %custom_light_bg%, %custom_dark_bg%); } .wp-caption { border:solid 1px %rgba_border%; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius:0 0 3px 3px; /*background: -webkit-gradient(linear, left top, left bottom, from(%custom_dark_bg%), to(%custom_light_bg%)); background: -moz-linear-gradient(top, %custom_dark_bg%, %custom_light_bg%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='%custom_dark_bg%', endColorstr='%custom_light_bg%');*/ } .wp-caption{ padding:0; } li.byuser, li.bypostauthor { } .datetable td li{ border-bottom:solid 1px %rgba_border%; } #sidebar{ border-color:%rgba_border%; } table, table td{ border:1px solid %rgba_border%; } .raindrops-tab-content, .raindrops-tab-list li{ border:1px solid %c_border%; border:1px solid %rgba_border%; } a.raindrops-comment-link { } .raindrops-comment-link em { %c4% -moz-border-radius: 0.25em; -webkit-border-radius: 0.25em; border-radius: 0.25em; position: relative; } .raindrops-comment-link .point { border-left: 0.45em solid %rgba_border%; border-bottom: 0.45em solid #FFF; /* IE fix */ border-bottom: 0.45em solid rgba(0,0,0,0); overflow: hidden; /* IE fix */ } a.raindrops-comment-link:hover { } a.raindrops-comment-link:hover em { %c_1% } a.raindrops-comment-link:hover .point { border-left:1px solid %rgba_border%; } #bd .raindrops-lightbox-overlay a{ background:#fff!important; } #bd a { } .footer-widget>ul>li{ border-bottom:1px solid %rgba_border%; } CSS3; return $style.$css3; } ?> = '3.4' ) { if (raindrops_warehouse_clone( "raindrops_style_type" ) !== wp_get_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 ); } } } else { if (raindrops_warehouse_clone("raindrops_style_type") !== $raindrops_current_theme_name ) { 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 * * * * */ function raindrops_colors($num = 0, $select = 'set',$color1 = null) { global $raindrops_images_path; if (null == $color1) { $color1 = str_replace('#',"", raindrops_warehouse_clone('raindrops_base_color') ); } else { $color1 = str_replace('#',"",$color1); } $base = new raindrops_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; } } /** * Create gradient style * * * * */ function raindrops_gradient_css( $color = null, $num = 0, $diff = 1, $order = 'asc' ) { global $raindrops_images_path; if ( null == $color ) { $color = str_replace( '#', "", raindrops_warehouse_clone( 'raindrops_base_color' ) ); } else { $color = str_replace( '#', "", $color ); } $base = new raindrops_CSS_Color( $color ); if ( $num>4 ) { $num = 4; } if ( $num + $diff > 4 ) { $num = 4 - $diff; } if ( "asc" == $order ) { $custom_dark_bg1 = raindrops_colors( $num, 'background', $color ); $num2 = ( int ) $num + $diff; $custom_light_bg1 = raindrops_colors($num2, 'background',$color); if (isset($base->fg[$num])) { $fg = $base->fg[ $num ]; } else { $fg = ""; } } elseif ( "desc" == $order ) { $custom_dark_bg1 = $base->bg[$num + $diff]; $custom_light_bg1 = $base->bg[$num]; if ( isset($base->fg[ $num ] ) ) { $fg = $base->fg[$num]; } else { $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 * * * * */ function raindrops_color_base( $color1=null, $color2=null ) { return raindrops_color_base_clone( $color1, $color2 ); } /** * from hex color #000000 to rgba color * * * * */ function raindrops_hex2rgba( $color, $opecity ) { if ( '#' == $color[0] ) { $color = substr( $color, 1 ); } if ( 6 == strlen( $color ) ) { list($r, $g, $b) = array( $color[0].$color[1], $color[2].$color[3], $color[4].$color[5]); } elseif ( 3 == strlen( $color ) ) { list($r, $g, $b) = array($color[0].$color[0], $color[1].$color[1], $color[2].$color[2]); } else { return false; } $r = hexdec( $r ); $g = hexdec( $g ); $b = hexdec( $b ); return "rgba({$r}, {$g}, {$b},{$opecity})"; } /** * Declaration Calculator * * * * */ function raindrops_design_output( $name = 'dark' ) { $uploads = wp_upload_dir(); $raindrops_header_image = raindrops_warehouse_clone('raindrops_header_image'); $raindrops_hd_image_path = $uploads['path'].'/'.$raindrops_header_image; if (file_exists($raindrops_hd_image_path)) { $raindrops_hd_images_path = $uploads['url'].'/'; } else { $raindrops_hd_images_path = get_stylesheet_directory_uri().'/images/'; } if ( ! file_exists( get_stylesheet_directory().'/images/' ) ) { $raindrops_hd_images_path = get_template_directory_uri().'/images/'; } $raindrops_hd_image_path = apply_filters( 'raindrops_hd_image_path', $raindrops_hd_images_path ); $raindrops_images_path = get_stylesheet_directory_uri().'/images/'; if ( ! file_exists( get_stylesheet_directory().'/images/' ) ) { $raindrops_images_path = get_template_directory_uri().'/images/'; } $raindrops_images_path = apply_filters( 'raindrops_images_path', $raindrops_images_path ); $navigation_title_img = raindrops_warehouse_clone( 'raindrops_heading_image' ); $raindrops_header_color = raindrops_warehouse_clone( 'raindrops_default_fonts_color' ); $raindrops_footer_image = raindrops_warehouse_clone( 'raindrops_footer_image' ); $raindrops_footer_color = raindrops_warehouse_clone( '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 ); } if ( 'light' == $name ) { if ( '#' == $c_border ) { $rgba_border = 'rgba(203,203,203, 0.4)'; } else { $rgba_border = raindrops_hex2rgba( $c_border, 0.2 ); } } $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_clone('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({$raindrops_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({$raindrops_images_path}{$navigation_title_img});"; $h2_dark_background .= "color:".raindrops_colors( -3, 'color' ). ';'; $h2_light_background = "background:".raindrops_colors(5,'background').' '; $h2_light_background .= "url({$raindrops_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_clone(); break; case("dark"): /** *dark */ $custom_dark_bg = apply_filters( 'raindrops_dark_dark_bg', -1 ); $custom_dark_bg = raindrops_colors( $custom_dark_bg, 'background' ); $custom_light_bg = apply_filters( 'raindrops_dark_light_bg', -4 ); $custom_light_bg = raindrops_colors( $custom_light_bg , 'background' ); $custom_color = apply_filters( 'raindrops_dark_color', -3 ); $custom_color = raindrops_colors($custom_color,'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_clone(); break; case("light"): /** * light */ $custom_dark_bg = apply_filters( 'raindrops_light_dark_bg', 5 ); $custom_dark_bg = raindrops_colors( $custom_dark_bg, 'background' ); $custom_light_bg = apply_filters( 'raindrops_light_light_bg', 4 ); $custom_light_bg = raindrops_colors( $custom_light_bg, 'background' ); $custom_color = apply_filters( 'raindrops_light_color', 3 ); $custom_color = raindrops_colors( $custom_color, 'color' ); $base_gradient = raindrops_gradient_single_clone( 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_clone(); break; default: $custom_dark_bg = apply_filters( 'raindrops_default_dark_bg', 3 ); $custom_dark_bg = raindrops_colors( $custom_dark_bg, 'background' ); $custom_light_bg = apply_filters( 'raindrops_default_light_bg', 1 ); $custom_light_bg = raindrops_colors($custom_light_bg, 'background' ); $custom_color = apply_filters( 'raindrops_default_color', 1 ); $custom_color = raindrops_colors($custom_color,'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_clone(); 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 $content; } } /** * register style name * * * * */ function raindrops_register_styles( $style_name ) { if ( ! is_string( $style_name ) ) { return false; } static $vals; $vals[$style_name] = $style_name; return $vals; } ?>