Skip to main content

Builder (base) — functions

3 public functions. 0 are 🔌 pluggable (function_exists()-guarded, so a theme/child can override them).

FunctionSummary
fw_ext_builder_get_item_widthReturns the builder's item-width definitions for a builder type, or a single width by id.
fw_ext_builder_get_item_widths_for_jsGet builder item widths for using in js (wp_localize_script() or json_encode())
fw_ext_builder_string_to_icon_htmlRenders an icon string as HTML, detecting an image URL, a font-icon class, or raw HTML.

fw_ext_builder_get_item_width

fw_ext_builder_get_item_width($builder_type, $width_id = null, $default_value = null)

Returns the builder's item-width definitions for a builder type, or a single width by id.

Source: framework/extensions/builder/helpers.php:19

fw_ext_builder_get_item_widths_for_js

fw_ext_builder_get_item_widths_for_js($builder_type)

Get builder item widths for using in js (wp_localize_script() or json_encode())

ParameterTypeDescription
$builder_typestringBuilder option type (some builders can have different item widths)

Returns array

Source: framework/extensions/builder/helpers.php:50

fw_ext_builder_string_to_icon_html

fw_ext_builder_string_to_icon_html($icon)

Renders an icon string as HTML, detecting an image URL, a font-icon class, or raw HTML.

ParameterTypeDescription
$iconstringA string that is meant to be an icon (an image, a font icon class, or something else)

Returns string

Source: framework/extensions/builder/helpers.php:68

← Back to Functions overview