> 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 } $front_bg_image = swiftbiz_get_option($swiftbiz_lite_shortname."_home_bg_img"); if(swiftbiz_get_option($swiftbiz_lite_shortname.'_primary_color_scheme')){ $_primary_color_scheme = esc_attr(swiftbiz_get_option($swiftbiz_lite_shortname.'_primary_color_scheme')); } if(swiftbiz_get_option($swiftbiz_lite_shortname.'_colorpicker')){ $_color_scheme = esc_attr(swiftbiz_get_option($swiftbiz_lite_shortname.'_colorpicker')); } if(swiftbiz_get_option($swiftbiz_lite_shortname.'_persistent_on_off')){ $_persistent_on_off = esc_attr(swiftbiz_get_option($swiftbiz_lite_shortname.'_persistent_on_off')); } if(swiftbiz_get_option($swiftbiz_lite_shortname.'_bread_background')){ $_bread_background = swiftbiz_get_option($swiftbiz_lite_shortname.'_bread_background'); } $_bread_background = swiftbiz_bg_style(swiftbiz_get_option($swiftbiz_lite_shortname.'_bread_background')); $rgb=array(); $rgb = swiftbiz_skeHex2RGB($_color_scheme); $R = $rgb['red']; $G = $rgb['green']; $B = $rgb['blue']; $rgbcolor = "rgba(". $R .",". $G .",". $B .",.4)"; $bdrrgbcolor = "rgba(". $R .",". $G .",". $B .",.7)"; $hrgb = swiftbiz_skeHex2RGB($_primary_color_scheme); $hR = $hrgb['red']; $hG = $hrgb['green']; $hB = $hrgb['blue']; $hrgbcolor = "rgba(". $hR .",". $hG .",". $hB .",.7)"; ?>