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

modules_page()

modules_page() : mixed

Returns

mixed

modules_page_scripts()

modules_page_scripts() : mixed

Returns

mixed

enqueue_gmap()

enqueue_gmap() : mixed

Register location autocomplete scripts if needed

Returns

mixed

admin_scripts()

admin_scripts() : mixed

Register and enqueue admin scripts and styles

Returns

mixed

maybe_job_page()

maybe_job_page() : mixed

Returns

mixed

validation_scripts()

validation_scripts() : mixed

Returns

mixed