Frontend_Scripts implements Premium_Service, Registerable

Manages registering and loading of the scripts for the Ordering package.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Premium_Service
Registerable

Table of Contents

MENU_SCRIPT_HANDLE  = 'wc-restaurant-menu'
$plugin  : mixed
$rest_server  : mixed
$scripts_loaded  : mixed
$template_loader  : mixed
__construct()  : mixed
add_inline_styles()  : mixed
load_scripts()  : mixed
register()  : mixed
register_scripts()  : mixed
render_menu_js_templates()  : mixed
get_script_params()  : mixed
is_cart_notice_enabled()  : mixed
should_load_scripts()  : mixed

Constants

MENU_SCRIPT_HANDLE

public mixed MENU_SCRIPT_HANDLE = 'wc-restaurant-menu'

Properties

Methods

__construct()

public __construct(Plugin $plugin, Rest_Server $rest_server) : mixed
Parameters
$plugin : Plugin
$rest_server : Rest_Server
Return values
mixed

add_inline_styles()

public add_inline_styles(mixed $inline_styles) : mixed
Parameters
$inline_styles : mixed
Return values
mixed

register_scripts()

public register_scripts() : mixed
Return values
mixed

render_menu_js_templates()

public render_menu_js_templates() : mixed
Return values
mixed

get_script_params()

private get_script_params() : mixed
Return values
mixed

is_cart_notice_enabled()

private is_cart_notice_enabled() : mixed
Return values
mixed

should_load_scripts()

private should_load_scripts() : mixed
Return values
mixed

Search results