> 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
}
$_primary_color_scheme = esc_attr( get_theme_mod('avis_pri_color','#0bbcee') );
$color_scheme = esc_attr( get_theme_mod('avis_sec_color', '#353b48') );
$_bread_background = 'url("'.esc_url(get_theme_mod('avis_bread_img', '')).'") '.esc_attr(get_theme_mod('avis_bread_repeat', 'no-repeat')).' '.esc_attr(get_theme_mod('avis_bread_position', 'center'));
$avis_logo_wdth = esc_attr( get_theme_mod('avis_logo_width', '120px') );
$avis_logo_hght = esc_attr( get_theme_mod('avis_logo_height', '40px') );
$rgb=array();
$rgb = avis_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 = avis_skeHex2RGB($_primary_color_scheme);
$hR = $hrgb['red'];
$hG = $hrgb['green'];
$hB = $hrgb['blue'];
$hrgbcolor = "rgba(". $hR .",". $hG .",". $hB .",.7)";
?>