Styles
This class handles the customization of CSS styles for BigCommerce components.
It loads and manipulates a CSS template file and outputs dynamic styles based on theme settings.
- Full name:
\BigCommerce\Customizer\Styles
Methods
__construct
Styles constructor.
public __construct(string $template_file): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$template_file | string | Path to the CSS template file. |
get_styles
Retrieves the styles by replacing CSS variables with values from the theme customization.
public get_styles(): stringReturn Value:
The generated CSS styles.
print_styles
Prints the generated styles within a <style> tag in the head.
public print_styles(): voidprint_css
Prints the generated styles directly (without <style> tags) in the head.
public print_css(): voidAutomatically generated on 2025-01-21