PaletteSwitch
Class PaletteSwitch
Source
File: header-footer-grid/Core/Components/PaletteSwitch.php
Expand full source code Collapse full source code View on Github
Methods
- add_settings — PaletteSwitch register settings controls
- add_style — Method to add Component css styles.
- get_icon — Return a svg icon for the provided string.
- get_light_dark_palettes — Utility method to return light and dark palette variants.
- init — PaletteSwitch constructor
- is_component_active — Method to check that the component is active.
- load_scripts — Load Component Scripts
- register_script — Register Inline Scripts for component.
- render_component — Render the component
- should_load_pro_features — Check if pro features should load.
- toggle_css — Methods used to filter CSS global colors
- toggle_elementor_css — Adds the palette variants to elementor
- toggle_script — Get JS contents from file to use as inline script.
- toggle_style — Get CSS to use as inline script