> 0x10);
$rgbArray['green'] = 0xFF & ($colorVal >> 0x8);
$rgbArray['blue'] = 0xFF & $colorVal;
} elseif (strlen($hexStr) == 3) { //if shorthand notation, need some string manipulations
$rgbArray['red'] = hexdec(str_repeat(substr($hexStr, 0, 1), 2));
$rgbArray['green'] = hexdec(str_repeat(substr($hexStr, 1, 1), 2));
$rgbArray['blue'] = hexdec(str_repeat(substr($hexStr, 2, 1), 2));
} else {
return false; //Invalid hex color code
}
return $returnAsString ? implode($seperator, $rgbArray) : $rgbArray; // returns the rgb string or the associative array
}
if(eptima_lite_get_option($eptima_lite_shortname.'_fullparallax_image')){ $fullparallax_image = esc_url(eptima_lite_get_option($eptima_lite_shortname.'_fullparallax_image')); }
if(eptima_lite_get_option($eptima_lite_shortname.'_innerheader_stype')){ $innerheader_image = esc_url(eptima_lite_get_option($eptima_lite_shortname.'_innerheader_stype')); }
$_primary_color_scheme = '';
$color_scheme = '';
if(eptima_lite_get_option($eptima_lite_shortname.'_primary_color_scheme')){ $_primary_color_scheme = eptima_lite_get_option($eptima_lite_shortname.'_primary_color_scheme'); }
if(eptima_lite_get_option($eptima_lite_shortname.'_colorpicker')){ $color_scheme = eptima_lite_get_option($eptima_lite_shortname.'_colorpicker'); }
if(eptima_lite_get_option($eptima_lite_shortname.'_moblie_menu')){ $mobi_menu_width = eptima_lite_get_option($eptima_lite_shortname.'_moblie_menu'); }
$rgb=array();
$rgb = eptima_lite_Hex2RGB($color_scheme);
$R = $rgb['red'];
$G = $rgb['green'];
$B = $rgb['blue'];
$rgbcolor = "rgba(". $R .",". $G .",". $B .",.4)";
$bdrrgbcolor = "rgba(". $R .",". $G .",". $B .",.7)";
$hrgb = eptima_lite_Hex2RGB($_primary_color_scheme);
$hR = $hrgb['red'];
$hG = $hrgb['green'];
$hB = $hrgb['blue'];
$hrgbcolor = "rgba(". $hR .",". $hG .",". $hB .",.7)";
?>