FolderShortcode
in package
Uses
UtilsProvider
Handles the shortcode for [folder-gallery].
Table of Contents
Properties
Methods
- __construct() : mixed
- C'tor.
- admin_head() : mixed
- Modify admin_head section.
- getInstance() : FolderShortcode
- Get instance.
- getPluginConstantPrefix() : string
- Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
- localize() : array<string|int, mixed>
- Localized variables for TinyMCE shortcode generator.
- mce_buttons() : array<string|int, string>
- Add button to MCE.
- mce_external_plugins() : array<string|int, mixed>
- Add external plugin to MCE.
- shortcode_atts_gallery() : array<string|int, mixed>
- Modify original shortcode attributes of [gallery].
Properties
$TAG
public
static mixed
$TAG
= 'folder-gallery'
$me
private
static mixed
$me
= null
Methods
__construct()
C'tor.
public
__construct() : mixed
admin_head()
Modify admin_head section.
public
admin_head() : mixed
getInstance()
Get instance.
public
static getInstance() : FolderShortcode
Return values
FolderShortcodegetPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringlocalize()
Localized variables for TinyMCE shortcode generator.
public
localize(array<string|int, mixed> $arr) : array<string|int, mixed>
Parameters
- $arr : array<string|int, mixed>
Return values
array<string|int, mixed>mce_buttons()
Add button to MCE.
public
mce_buttons(array<string|int, string> $buttons) : array<string|int, string>
Parameters
- $buttons : array<string|int, string>
Return values
array<string|int, string>mce_external_plugins()
Add external plugin to MCE.
public
mce_external_plugins(array<string|int, mixed> $plugin_array) : array<string|int, mixed>
Parameters
- $plugin_array : array<string|int, mixed>
Return values
array<string|int, mixed>shortcode_atts_gallery()
Modify original shortcode attributes of [gallery].
public
shortcode_atts_gallery(array<string|int, mixed> $out, array<string|int, mixed> $pairs, array<string|int, mixed> $atts) : array<string|int, mixed>
Parameters
- $out : array<string|int, mixed>
- $pairs : array<string|int, mixed>
- $atts : array<string|int, mixed>