ClassesBigCommerceCompatibilityThemesFlatsomeFlatsome

Flatsome

This class defines the compatibility layer for the Flatsome theme in the BigCommerce ecosystem.

It specifies the supported version of the theme, maps template files to corresponding template classes, and loads additional compatibility functions.

Properties

supported_version

The supported version of the Flatsome theme.

protected string $supported_version

templates

Template files mapped to their corresponding template classes.

protected array $templates

Methods

load_compat_functions

Loads the compatibility functions for the Flatsome theme.

public load_compat_functions(): void

This method includes the necessary functions for the Flatsome theme compatibility, which are stored in a separate file for better maintainability.


Inherited methods

render_template

Render the specified theme template with options.

public render_template(string $template_name, array $options = []): void

Parameters:

ParameterTypeDescription
$template_namestringThe name of the template to render.
$optionsarrayThe options to pass to the template controller.

load_compat_functions

Load theme-specific compatibility functions.

public load_compat_functions(): void

This method is intended to be overridden by child classes to load additional functions.


is_version_supported

Check if the theme version is supported.

public is_version_supported(string $version): bool

Parameters:

ParameterTypeDescription
$versionstringThe version to check.

Return Value:

True if the version is supported, false otherwise.



Automatically generated on 2025-01-21