\Barn2\Plugin\WC_Product_TableFrontend_Scripts

Handles the registering of the front-end scripts and stylesheets. Also creates the inline CSS (if required) for the product tables.

Summary

Methods
Properties
Constants
__construct()
is_required()
register()
load_scripts()
register_styles()
register_scripts()
register_table_scripts()
load_photoswipe_template()
No public properties found
SCRIPT_HANDLE
No protected methods found
No protected properties found
N/A
build_custom_styles()
build_background_style()
build_border_style()
build_font_style()
$script_version
N/A

Constants

SCRIPT_HANDLE

SCRIPT_HANDLE ='wc-product-table'

Properties

$script_version

$script_version :

Type

Methods

__construct()

__construct(string  $script_version)

Constructor.

Parameters

string $script_version

The script version for registering product table assets.

is_required()

is_required()

register()

register()

load_scripts()

load_scripts()

register_styles()

register_styles()

register_scripts()

register_scripts()

register_table_scripts()

register_table_scripts(\Barn2\Plugin\WC_Product_Table\Table_Args  $args)

Register the scripts & styles for an individual product table.

Parameters

\Barn2\Plugin\WC_Product_Table\Table_Args $args

load_photoswipe_template()

load_photoswipe_template()

build_custom_styles()

build_custom_styles(  $options)

Parameters

$options

build_background_style()

build_background_style(  $bg_color)

Parameters

$bg_color

build_border_style()

build_border_style(  $option,  $borders = 'all')

Parameters

$option
$borders

build_font_style()

build_font_style(  $option)

Parameters

$option