Logo
Class Logo.
Source
File: header-footer-grid/Core/Components/Logo.php
Expand full source code Collapse full source code View on Github
Methods
- add_legacy_style — Add legacy style.
- add_settings — Called to register component controls.
- add_style — Method to add Component css styles.
- clear_svg_size_attr — Clear width and height attributes for SVG.
- filter_logo_variants — Generate the variants for the Logo
- filter_svg_logo_size — Set the sizes for SVG.
- init — Logo 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 logo section.
- sanitize_logo_json — Sanitize the logo json
- toggle_script — Get JS contents from file to use as inline script.
- update_logo_theme_mod — Updates the theme mode JSON based on the custom logo value.