\jb\frontendEnqueue

Class Enqueue

Summary

Methods
Properties
Constants
__construct()
blocks_category()
block_editor()
get_g_locale()
init_variables()
is_jquery_ui_enabled()
common_libs()
extends_styles()
enqueue_gmap()
register_common_scripts()
register_scripts()
$js_url
$css_url
$url
$g_locales
$fa_version
$common_localize
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$js_url

$js_url : array

Type

normal — JS URLs

$css_url

$css_url : array

Type

normal — CSS URLs

$url

$url : array

Type

normal — assets URLs

$g_locales

$g_locales : array

Type

normal — Google Autocomplete locales

$fa_version

$fa_version : string

Type

normal — FontAwesome version

$common_localize

$common_localize

Methods

__construct()

__construct() : mixed

Enqueue constructor.

Returns

mixed

blocks_category()

blocks_category(array  $categories) : array

Add Gutenberg category for JobBoardWP shortcodes

Parameters

array $categories

Returns

array

block_editor()

block_editor() : mixed

Enqueue Gutenberg Block Editor assets

Returns

mixed

get_g_locale()

get_g_locale() : string

Getting current Google Autocomplete locale

Returns

string

init_variables()

init_variables() : mixed

Init variables for enqueue scripts

Returns

mixed

is_jquery_ui_enabled()

is_jquery_ui_enabled() : bool

It checks if jquery-ui is enabled.

Returns

bool

common_libs()

common_libs() : mixed

Register common JS/CSS libraries

Returns

mixed

extends_styles()

extends_styles(array  $styles) : array

Add FontAwesome style to dependencies if it's not disabled

Parameters

array $styles

Returns

array

enqueue_gmap()

enqueue_gmap() : mixed

Google Maps enqueue

Returns

mixed

register_common_scripts()

register_common_scripts() : mixed

Register frontend scripts

Returns

mixed

register_scripts()

register_scripts() : mixed

Register frontend scripts

Returns

mixed