wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder-stylesheet.php
/**
     * Converts color in hexadecimal format to RGB format.
     *
     * @since 1.9.6
     *
     * @param string $hex Color in hexadecimal format.
     * @return string Color in RGB components separated by comma.
     */
Converts color in hexadecimal format to RGB format.

@param string $hex Color in hexadecimal format.
@return string Color in RGB components separated by comma.
Converts color in hexadecimal format to RGB format . @param string $hex Color in hexadecimal format . @return string Color in RGB components separated by comma .
private static function hex2rgb($hex) {
        $hex = str_replace('#', '', $hex);
        if (strlen($hex) === 3) {
            $r = substr($hex, 0, 1);
            $g = substr($hex, 1, 1);
            $b = substr($hex, 2, 1);
            $r = hexdec($r . $r);
            $g = hexdec($g . $g);
            $b = hexdec($b. $b);
        } else {
            $r = hexdec(substr($hex, 0, 2));
            $g = hexdec(substr($hex, 2, 2));
            $b = hexdec(substr($hex, 4, 2));
        }
        return implode(',', array($r, $g, $b));
    }
private static function hex2rgb ( $ hex ) { $ hex = str_replace ( '#' , '' , $ hex ) ; if ( strlen ( $ hex ) === 3 ) { $ r = substr ( $ hex , 0 , 1 ) ; $ g = substr ( $ hex , 1 , 1 ) ; $ b = substr ( $ hex , 2 , 1 ) ; $ r = hexdec ( $ r . $ r ) ; $ g = hexdec ( $ g . $ g ) ; $ b = hexdec ( $ b . $ b ) ; } else { $ r = hexdec ( substr ( $ hex , 0 , 2 ) ) ; $ g = hexdec ( substr ( $ hex , 2 , 2 ) ) ; $ b = hexdec ( substr ( $ hex , 4 , 2 ) ) ; } return implode ( ',' , array ( $ r , $ g , $ b ) ) ; }
Converts color in hexadecimal format to RGB format.
Converts color in hexadecimal format to RGB format .