Documentation

MCI_Footnotes

Entry point of the Plugin. Loads the Dashboard and executes the Task.

Tags
author

Stefan Herndler

since
1.5.0

Table of Contents

$a_bool_AlternativeTooltipsEnabled  : mixed
$a_bool_TooltipsEnabled  : bool
Template process and script / stylesheet load optimization.
$a_obj_Task  : null|MCI_Footnotes_Task
Reference to the Plugin Task object.
initializeWidgets()  : mixed
Initializes all Widgets of the Plugin.
registerPublic()  : mixed
Registers and enqueues scripts and stylesheets to the public pages.
run()  : mixed
Executes the Plugin.
initializeDashboard()  : mixed
Initializes the Dashboard of the Plugin and loads them.
initializeTask()  : mixed
Initializes the Plugin Task and registers the Task hooks.

Properties

$a_bool_AlternativeTooltipsEnabled

public static mixed $a_bool_AlternativeTooltipsEnabled = alse

$a_obj_Task

Reference to the Plugin Task object.

public null|MCI_Footnotes_Task $a_obj_Task = ull
Tags
author

Stefan Herndler

since
1.5.0

Methods

initializeWidgets()

Initializes all Widgets of the Plugin.

public initializeWidgets() : mixed
Tags
author

Stefan Herndler

since
1.5.0
  • Update: Fix for deprecated PHP function create_function(), thanks to @psykonevro @daliasued bug reports, thanks to @felipelavinz code contribution
since
1.6.5
contributor

@felipelavinz

link
https://github.com/media-competence-institute/footnotes/commit/87173d2980c7ff90e12ffee94ca7153e11163793
link
https://wordpress.org/support/topic/bug-function-create_function-is-deprecated/
link
https://wordpress.org/support/topic/deprecated-function-create_function-14/
link

create_function() was deprecated in PHP 7.2.0 and removed in PHP 8.0.0.

link

The fix is to move add_action() above into run(), and use the bare register_widget() here.

reporter

@psykonevro

reporter

@daliasued

see
self::run()

Also, the visibility of initializeWidgets() is not private any longer.

Return values
mixed

registerPublic()

Registers and enqueues scripts and stylesheets to the public pages.

public registerPublic() : mixed
Tags
author

Stefan Herndler

since
1.5.0
since
2.0.0

Update: Tooltips: fix disabling bug by loading jQuery UI library, thanks to @rajinderverma @ericcorbett2 @honlapdavid @mmallett bug reports, thanks to @vonpiernik code contribution.

since
2.0.3

add versioning of public.css for cache busting 2020-10-29T1413+0100

since
2.0.4

add jQuery UI from WordPress 2020-11-01T1902+0100

since
2.1.4

automate passing version number for cache busting 2020-11-30T0646+0100

since
2.1.4

optionally enqueue an extra stylesheet 2020-12-04T2231+0100

Return values
mixed

initializeDashboard()

Initializes the Dashboard of the Plugin and loads them.

private initializeDashboard() : mixed
Tags
author

Stefan Herndler

since
1.5.0
Return values
mixed

initializeTask()

Initializes the Plugin Task and registers the Task hooks.

private initializeTask() : mixed
Tags
author

Stefan Herndler

since
1.5.0
Return values
mixed

Search results