$settings ) :
$custom_color = $settings['custom'];
$default_color = $settings['color'];
$color = $custom_color ? $custom_color : $default_color;
?>
get_data(); $theme_colors = $theme_data['settings']['color']['palette'] ?? array(); $custom_colors = vphq_get_site_custom_colors(); if ( ! is_array( $custom_colors ) ) { $custom_colors = array(); } $custom_colors = array_map( 'sanitize_hex_color_with_alpha', $custom_colors ); foreach ( $theme_colors as $theme_color ) { $color_name = $theme_color['name']; $color_slug = $theme_color['slug']; $color_value = $theme_color['color']; $color_palette[ $color_name ] = array( 'slug' => $color_slug, 'color' => $color_value, 'custom' => $custom_colors[ $color_slug ] ?? false, ); $js_color_palette[ $color_slug ] = $color_value; } ksort( $color_palette ); ?>