<?php 

function slant_custom_css() {
	
	global $slant_options;
	$kp_options = get_option('slant_options');
	
	//Color
	$kp_color= $kp_options['theme_color']; 
	
	
echo '<style type="text/css">
a {color: '.$kp_color.';}
.active {color: '.$kp_color.' !important;}
.highlight {color: '.$kp_color.';}
::-moz-selection { background: '.$kp_color.';}
::selection { background: '.$kp_color.';}
.menuzord-menu ul.dropdown li:hover > a{color: '.$kp_color.';}
.blue-text { color: '.$kp_color.'; }
blockquote {border-color: '.$kp_color.';}
.btn {background: '.$kp_color.';}
.btn:active {	background: '.$kp_color.';}
.btn-bordered{border:1px solid '.$kp_color.'!important;color:'.$kp_color.';background:none;}
.btn-bordered:hover{border:1px solid #333!important; background: #333!important;}
.btn-slant.btn-bordered:hover{border:1px solid '.$kp_color.'!important;}
.btn:hover {background: #333!important;color: #fff;}
.btn-slant:hover{background: '.$kp_color.'!important;}
.sidebar-nav li a.active{color:'.$kp_color.';}
input[type=submit], button[type=submit] {background:'.$kp_color.';}
.portfolio_details .fa{	color:'.$kp_color.'!important;}
.color-overlay {background: '.$kp_color.';}
.triangle-down:after { border-top: 500px solid '.$kp_color.';}
.triangle-up:after { border-bottom: 500px solid '.$kp_color.';}
.triangle-right:after { border-left: 500px solid '.$kp_color.';}
.countto p .icon i{font-size:45px;color:'.$kp_color.';}
.bar_bgcolor {background-color : '.$kp_color.';}
.skw-caption:before{background:'.$kp_color.';}
#home .banner-text .btn{border:2px solid '.$kp_color.';}
.shape a.button {background: '.$kp_color.';}
.shape .bg { background:'.$kp_color.';}
.diamond { background: '.$kp_color.';}
 #options ul#filters li a.active{ background-color: '.$kp_color.';}
.grid li.shown:hover h3 {background: '.$kp_color.';}
.grid li.shown:hover > a::before {border-color: '.$kp_color.';}
.item .view-first .mask { background: '.$kp_color.';}
.testimonial i{background-color:'.$kp_color.';}
#teamslider h4{color:'.$kp_color.';}
.blog-bg h5 {color: '.$kp_color.';}
.blog-bg:hover{background: '.$kp_color.';}
.sticky .blog-bg{background: '.$kp_color.';}
.blog-bg .post-title .fa{ background: none repeat scroll 0 0 '.$kp_color.';  border: 1px solid '.$kp_color.';  }
.social-circle li a {background:none repeat scroll 0 0 '.$kp_color.';}
.single p ul li {color:'.$kp_color.';}
.continue-reading{border: 1px solid '.$kp_color.' !important;  color: '.$kp_color.' !important;}
.continue-reading:hover{background: '.$kp_color.' !important;}
.post-title a:hover {color: '.$kp_color.';}
.post.sticky {background:'.$kp_color.'!important;}
body.single .post-meta a{color:'.$kp_color.';}
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
background-color: '.$kp_color.';
border-color: '.$kp_color.';
}
#pagination span.current {background-color: '.$kp_color.';border-color: '.$kp_color.';}
.pages li a.current {border: 1px solid '.$kp_color.';color: #1c1f26;}
.pages li a:hover {	color: '.$kp_color.';}
.right.next a:hover,.left.prev a:hover{color:'.$kp_color.';}
#sidebar .widget_meta li, #sidebar .widget_archive li, #sidebar .widget_categories li
{color: '.$kp_color.';}
.widget h2 {color:'.$kp_color.'!important;}
.widget a:hover{color:'.$kp_color.';}
#wp-calendar tbody td:hover {background: '.$kp_color.';}
footer a, footer p a, footer .widget ul li a{color:'.$kp_color.';}
footer .widget p .fa {color:'.$kp_color.';}
.tagcloud a:hover,footer .widget .tagcloud a:hover {background:'.$kp_color.';}
#respond input[type=submit], #respond button[type=submit] {	background: '.$kp_color.';}
.comment-list .reply a {background-color: '.$kp_color.'!important;}
.comment-list .comment-meta a:hover {color: '.$kp_color.';}
.related h5{color:'.$kp_color.'!important;}  
</style>';
	
	$kp_footer_social_bg="";
	if(isset($kp_options['footer_social_bg_style']) && $kp_options['footer_social_bg_style'] != ""){ 
	$kp_footer_social_bg= $kp_options['footer_social_bg_style']; 
	if($kp_footer_social_bg == 'themecolor_border'){
		echo '<style type="text/css">.social-footer .social-circle li a{background:none;border:1px solid '.$kp_color.';}</style>';
	} elseif($kp_footer_social_bg == 'nobackground'){
		echo '<style type="text/css">.social-footer .social-circle li a{background:none;}</style>';
	}else{echo '<style type="text/css">.social-footer .social-circle li a{background:'.$kp_color.';}</style>';}
	}
	
	
	$kp_side_social_bg="";
	if(isset($kp_options['side_social_bg_style']) && $kp_options['side_social_bg_style'] != ""){ 
	$kp_side_social_bg= $kp_options['side_social_bg_style']; 
	if($kp_side_social_bg == 'themecolor_border'){
		echo '<style type="text/css">.social-side .social-circle li a{background:none;border:1px solid '.$kp_color.';}</style>';
	} elseif($kp_side_social_bg == 'nobackground'){
		echo '<style type="text/css">.social-side .social-circle li a{background:none;}</style>';
	}else{echo '<style type="text/css">.social-side .social-circle li a{background:'.$kp_color.';}</style>';}
	}
		
	//custom css
	if(!empty($kp_options["custom-css"])){
		echo '<style type="text/css">' . $kp_options["custom-css"] . '</style>';
	} 

}

add_action('wp_head', 'slant_custom_css');

?>