Builder (base) — functions
3 public functions. 0 are 🔌 pluggable (function_exists()-guarded, so a theme/child can override them).
| Function | Summary |
|---|---|
fw_ext_builder_get_item_width | Returns the builder's item-width definitions for a builder type, or a single width by id. |
fw_ext_builder_get_item_widths_for_js | Get builder item widths for using in js (wp_localize_script() or json_encode()) |
fw_ext_builder_string_to_icon_html | Renders 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())
| Parameter | Type | Description |
|---|---|---|
$builder_type | string | Builder 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.
| Parameter | Type | Description |
|---|---|---|
$icon | string | A 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