%k25u25%fgd5n!
<?php
/** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
define( 'WPINC', 'wp-includes' );
/**
* @ignore
*/
function add_filter() {}
/**
* @ignore
*/
function esc_attr($str) {return $str;}
/**
* @ignore
*/
function apply_filters() {}
/**
* @ignore
*/
function get_option() {}
/**
* @ignore
*/
function is_lighttpd_before_150() {}
/**
* @ignore
*/
function add_action() {}
/**
* @ignore
*/
function did_action() {}
/**
* @ignore
*/
function do_action_ref_array() {}
/**
* @ignore
*/
function get_bloginfo() {}
/**
* @ignore
*/
function is_admin() {return true;}
/**
* @ignore
*/
function site_url() {}
/**
* @ignore
*/
function admin_url() {}
/**
* @ignore
*/
function home_url() {}
/**
* @ignore
*/
function includes_url() {}
/**
* @ignore
*/
function wp_guess_url() {}
if ( ! function_exists( 'json_encode' ) ) :
/**
* @ignore
*/
function json_encode() {}
endif;
/* Convert hexdec color string to rgb(a) string */
function hex2rgba($color, $opacity = false) {
$default = 'rgb(0,0,0)';
//Return default if no color provided
if(empty($color))
return $default;
//Sanitize $color if "#" is provided
if ($color[0] == '#' ) {
$color = substr( $color, 1 );
}
//Check if color has 6 or 3 characters and get values
if (strlen($color) == 6) {
$hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
} elseif ( strlen( $color ) == 3 ) {
$hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
} else {
return $default;
}
//Convert hexadec to rgb
$rgb = array_map('hexdec', $hex);
//Check if opacity is set(rgba or rgb)
if($opacity){
if(abs($opacity) > 1)
$opacity = 1.0;
$output = 'rgba('.implode(",",$rgb).','.$opacity.')';
} else {
$output = 'rgb('.implode(",",$rgb).')';
}
//Return rgb(a) color string
return $output;
}
$color = $_GET['main_color'];
ob_start(); ?>
/*========== Color ====================*/
.main-menu .navigation > li.current > a, .main-menu .navigation > li:hover > a,
.main-menu .navigation > li > ul > li > a:hover, .main-menu .navigation > li > .megamenu li > a:hover,
.content_block_1 .content-box .inner-box .inner .list-item li:before,
.service-block-one .inner-box .lower-content h3 a:hover,
.provided-service .outer-container .inner-box .content-box a:hover,
.testimonial-section .slider-content .testimonial-content .quote-box i,
.news-block-one .inner-box .lower-content .inner .post-info li a:hover,
.news-block-one .inner-box .lower-content .inner h3 a:hover,
.contact-section .lower-inner .info-column .single-item .icon-box,
.footer-top .links-widget .links li a:hover,
.footer-top .footer-social li a:hover,
.footer-bottom .copyright p a:hover,
.main-header.style-two .header-top .info li a:hover,
.main-header.style-two .header-social li a:hover,
.main-header.style-two .header-upper .upper-info li i,
.main-header .search-box-btn:hover,
.banner-section.style-two .content-box .btn-box .banner-btn:hover,
.feature-block-two .inner-box .icon-box,
.about-style-two .lower-box .content-box .single-item .icon-box,
.service-block-two .inner-box .lower-content h3 a:hover,
.alternet-2 .service-block-two .inner-box .icon-box,
.working-block-one .inner-box .inner h3 a:hover,
.team-block-one .inner-box .lower-content h3 a:hover,
.team-block-one .inner-box .lower-content .info-box li a:hover,
.contact-section .form-column .info-list li a:hover,
.contact-section .right-column .map-inner .map-info .info li a:hover,
.feature-block-one .inner-box:hover .icon-box,
.project-details .list li:before,
.service-details-content .text p a:hover,
.default-sidebar .category-widget .category-list li:hover h5 a, .default-sidebar .category-widget .category-list li.active h5 a,
.default-sidebar .download-brochure .brochure-list li h5 a:hover,
.page-title .content-box .bread-crumb li a:hover,
.news-block-two .inner-box .lower-content .inner h2 a:hover,
.sidebar .post-widget .post h5 a:hover,
.widget ul li a:hover,
blockquote:before,
.contact-style-two .info-box .info li i
{
color:#<?php echo esc_attr( $color ); ?>!important;
}
/*==============================================
Theme Background Css
===============================================*/
.main-header.style-one .menu-right-content li.support-box,
.theme-btn-one,
.sec-title .shape,
.sec-title .shape:after,
.sec-title .shape:before,
.service-section .owl-nav .owl-prev:hover, .service-section .owl-nav .owl-next:hover,
.service-block-one .inner-box .image-box,
.provided-service .outer-container .left-column .inner-box:before,
.contact-section .lower-inner .info-column .single-item .icon-box:before,
.footer-top .widget-title .shape,
.footer-top .widget-title .shape:before,
.footer-top .widget-title .shape:after,
.footer-top .newsletter-widget .widget-content .subscribe-form .form-group button,
.main-header.style-one .menu-right-content li.support-box:before,
.main-header.style-two .menu-right-content .support-box,
.feature-block-two .inner-box:hover .icon-box,
.feature-block-two .inner-box:hover .icon-box:before,
.service-block-two .inner-box .icon-box:before,
.content_block_2 .single-item .inner-box .shape,
.content_block_2 .single-item .inner-box .shape:before,
.content_block_2 .single-item .inner-box .shape:after,
.project-block-one .inner-box .image-box:before,
.scroll-top:hover,
.main-header.style-two .menu-right-content .support-box:before,
.history-section .tab-btn-box .tab-btns li.active-btn:before, .history-section .tab-btn-box .tab-btns li:hover:before,
.feature-block-one .inner-box .shape,
.feature-block-one .inner-box .shape:before,
.feature-block-one .inner-box .shape:after,
.team-member-info-box .social-links-style1 li a:hover i,
.team-single-area .btn-style-two:before,
.resume .info-box .title:after,
.service-details-content .two-column .video-inner:before,
.default-sidebar .sidebar-widget .widget-title .shape,
.default-sidebar .sidebar-widget .widget-title .shape:before,
.default-sidebar .sidebar-widget .widget-title .shape:after,
.sidebar .search-widget .form-group button,
.reply-comment-btn:hover,
.blog-details-content .post-share-option .tags li a:hover
{
background: #<?php echo esc_attr( $color ); ?>!important;
background-color:#<?php echo esc_attr( $color ); ?>!important;
}
/*==============================================
Theme Border Color Css
===============================================*/
.service-section .owl-nav .owl-prev:hover, .service-section .owl-nav .owl-next:hover,
.testimonial-section .slider-content .testimonial-content .inner-box:before,
.contact-section .right-column .map-inner .map-info,
.footer-top .newsletter-widget .widget-content .subscribe-form .form-group input:focus,
.image_block_1 .image-box:before,
.about-style-two .lower-box .image-box:after,
.team-section .carousel-inner,
.main-footer.style-two .footer-bottom p a:hover,
.footer-bottom .copyright p a:hover,
.history-section .tabs-content .image-box:before,
.feature-block-one .inner-box:before,
.team-single-area .btn-style-two,
.default-sidebar .free-quote .quote-form .form-group input:focus, .default-sidebar .free-quote .quote-form .form-group textarea:focus,
.blog-details-content .post-share-option .tags li a:hover
{
border-color: #<?php echo esc_attr( $color ); ?>!important;
}
/*==============================================
RGB
===============================================*/
.video-galler-outer-bg:before {
background-color: <?php echo esc_attr( hex2rgba($color, 0.9));?>!important;
}
.main-slider .content h3:before{
background: <?php echo esc_attr( hex2rgba($color, 0.4));?>!important;
}
<?php
$out = ob_get_clean();
$expires_offset = 31536000; // 1 year
header('Content-Type: text/css; charset=UTF-8');
header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT');
header("Cache-Control: public, max-age=$expires_offset");
header('Vary: Accept-Encoding'); // Handle proxies
header('Content-Encoding: gzip');
echo gzencode($out);
exit;