Astra_Global_Palette::generate_global_palette_style()
Generate palette CSS required to display on front end.
Description
Return
(array) palette style array.
Source
File: inc/class-astra-global-palette.php
public static function generate_global_palette_style() { $palette_data = astra_get_option( 'global-color-palette' ); $palette_style = array(); if ( isset( $palette_data['palette'] ) ) { foreach ( $palette_data['palette'] as $key => $color ) { $palette_key = self::get_css_variable_prefix() . $key; $palette_style[ $palette_key ] = $color; } } return $palette_style; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |