<?php function hex2rgb( $colour ){if ( $colour[0] == '#' ) { $colour = substr( $colour, 1 ); } if ( strlen( $colour ) == 6 ) { list( $r, $g, $b ) = array( $colour[0] . $colour[1], $colour[2] . $colour[3], $colour[4] . $colour[5] ); } elseif ( strlen( $colour ) == 3 ) { list( $r, $g, $b ) = array( $colour[0] . $colour[0], $colour[1] . $colour[1], $colour[2] . $colour[2] ); } else { return false; } $r = hexdec( $r );$g = hexdec( $g );$b = hexdec( $b );return array( 'red' => $r, 'green' => $g, 'blue' => $b )}$absolute_path=explode('wp-content',$_server[SCRIPT_FILENAME]); $wp_load=$absolute_path[0] . 'wp-load.php'; require_once($wp_load); if ( ! function_exists( 'get_theme_mod' ) ){ require_once($absolute_path[0] . '/wp-includes/theme.php' )}$primarycolor = empty(get_theme_mod('primary_colour')) ? '#00FF00' : get_theme_mod('primary_colour'); $secondarycolor = empty(get_theme_mod('secondary_colour')) ? '#0000FF' : get_theme_mod('secondary_colour'); header('Content-type: text/css'); header('Cache-control: must-revalidate'); ?>:root{--primary-color:<?php echo $primarycolor;?>;--primary-color-rgb:<?php echo hex2rgb($primarycolor)['red'];?>, <?php echo hex2rgb($primarycolor)['green'];?>, <?php echo hex2rgb($primarycolor)['blue'];?>;--secondary-color:<?php echo $secondarycolor;?>;--secondary-color-rgb:<?php echo hex2rgb($secondarycolor)['red'];?>, <?php echo hex2rgb($secondarycolor)['green'];?>, <?php echo hex2rgb($secondarycolor)['blue'];?>}a.btn-custom.invert,.bg-color-secondary,.bg-color-secondary h1,.bg-color-secondary h2,.bg-color-secondary h3,.bg-color-secondary h4,.bg-color-secondary h5,.bg-color-secondary h6,.p-title.invert,.feature-box.style-3 .bg-color-secondary,#form_subscribe #btn-submit i,.p-tagline,i.bg-color-secondary{color:#fff}