Frontend_Scripts implements Service, Registerable, Conditional

Responsible for registering the front-end styles and scripts in Document Library Pro.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Service
Registerable
Conditional

Table of Contents

$plugin  : mixed
__construct()  : mixed
Constructor.
enqueue_grid_scripts()  : mixed
Enqueue the grid assets.
enqueue_table_scripts()  : mixed
Enqueue the table assets.
is_required()  : mixed
{@inheritdoc}
load_document_grid_scripts()  : mixed
Load the document grid assets.
load_document_table_scripts()  : mixed
Load the table assets.
load_download_count_scripts()  : mixed
Load Download Count Scripts.
load_folder_scripts()  : mixed
Load Folder Scripts.
load_photoswipe_template()  : mixed
Load Photoswipe Template.
load_preview_scripts()  : mixed
Load Preview Scripts.
register()  : mixed
{@inheritdoc}
register_scripts()  : mixed
Register JS assets.
register_styles()  : mixed
Register the CSS assets.
asset_url()  : string
Get the assets url.
build_custom_grid_styles()  : string
Build Custom Grid Styles.

Properties

Methods

__construct()

Constructor.

public __construct(Plugin $plugin) : mixed
Parameters
$plugin : Plugin
Tags
Return values
mixed

enqueue_grid_scripts()

Enqueue the grid assets.

public enqueue_grid_scripts(Document_Grid $document_grid) : mixed
Parameters
$document_grid : Document_Grid
Tags
Return values
mixed

enqueue_table_scripts()

Enqueue the table assets.

public enqueue_table_scripts(Posts_Table $posts_table) : mixed
Parameters
$posts_table : Posts_Table
Tags
Return values
mixed

is_required()

{@inheritdoc}

public is_required() : mixed
Tags
Return values
mixed

load_document_grid_scripts()

Load the document grid assets.

public static load_document_grid_scripts([Table_Args|null $args = null ]) : mixed
Parameters
$args : Table_Args|null = null
Tags
Return values
mixed

load_document_table_scripts()

Load the table assets.

public static load_document_table_scripts([mixed|null $args = null ]) : mixed
Parameters
$args : mixed|null = null
Tags
Return values
mixed

load_download_count_scripts()

Load Download Count Scripts.

public static load_download_count_scripts() : mixed
Tags
Return values
mixed

load_photoswipe_template()

Load Photoswipe Template.

public static load_photoswipe_template() : mixed
Tags
Return values
mixed

load_preview_scripts()

Load Preview Scripts.

public static load_preview_scripts() : mixed
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

register_scripts()

Register JS assets.

public register_scripts() : mixed
Tags
Return values
mixed

register_styles()

Register the CSS assets.

public register_styles() : mixed
Tags
Return values
mixed

asset_url()

Get the assets url.

private asset_url(string $path) : string
Parameters
$path : string
Tags
Return values
string

build_custom_grid_styles()

Build Custom Grid Styles.

private static build_custom_grid_styles(array<string|int, mixed> $options) : string
Parameters
$options : array<string|int, mixed>
Tags
Return values
string

Search results