Documentation

MCI_Footnotes

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

Tags
since
1.5.0

Table of Contents

$a_bool_alternative_tooltips_enabled  : bool
Allows to determine whether alternative tooltips are enabled.
$a_bool_amp_enabled  : bool
Allows to determine whether AMP compatibility mode is enabled.
$a_bool_tooltips_enabled  : bool
Allows to determine whether tooltips are enabled.
$a_obj_task  : null|MCI_Footnotes_Task
Reference to the Plugin Task object.
$a_str_script_mode  : str
Allows to determine the script mode among jQuery or plain JS.
initialize_widgets()  : mixed
Initializes all Widgets of the Plugin.
register_public()  : mixed
Registers and enqueues scripts and stylesheets to the public pages.
run()  : mixed
Executes the Plugin.
initialize_dashboard()  : mixed
Initializes the Dashboard of the Plugin and loads them.
initialize_task()  : mixed
Initializes the Plugin Task and registers the Task hooks.

Properties

$a_bool_alternative_tooltips_enabled

Allows to determine whether alternative tooltips are enabled.

public static bool $a_bool_alternative_tooltips_enabled = alse
  • Bugfix: Tooltips: optional alternative JS implementation with CSS transitions to fix configuration-related outage, thanks to @andreasra feedback.
Tags
since
2.1.1
since
2.4.0
reporter

@andreasra

link
https://wordpress.org/support/topic/footnotes-appearing-in-header/page/2/#post-13632566
contributor

Patrizia Lutz @misfist

$a_bool_amp_enabled

Allows to determine whether AMP compatibility mode is enabled.

public static bool $a_bool_amp_enabled = alse
  • Adding: Tooltips: make display work purely by style rules for AMP compatibility, thanks to @milindmore22 code contribution.
  • Bugfix: Tooltips: enable accessibility by keyboard navigation, thanks to @westonruter code contribution.
  • Adding: Reference container: get expanding and collapsing to work also in AMP compatibility mode, thanks to @westonruter code contribution.
Tags
since
2.5.11

(draft)

since
2.6.0

(release)

contributor

@milindmore22

contributor

@westonruter

link
https://github.com/ampproject/amp-wp/issues/5913#issuecomment-785306933
link
https://github.com/ampproject/amp-wp/issues/5913#issuecomment-785419655
link
https://github.com/markcheret/footnotes/issues/48#issuecomment-799580854
link
https://github.com/markcheret/footnotes/issues/48#issuecomment-799582394

$a_obj_task

Reference to the Plugin Task object.

public null|MCI_Footnotes_Task $a_obj_task = ull
Tags
since
1.5.0

Methods

initialize_widgets()

Initializes all Widgets of the Plugin.

public initialize_widgets() : mixed
Tags
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 initialize_widgets() is not private any longer.

Return values
mixed

register_public()

Registers and enqueues scripts and stylesheets to the public pages.

public register_public() : mixed
Tags
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

since
2.0.4

add jQuery UI from WordPress

since
2.1.4

automate passing version number for cache busting

since
2.1.4

optionally enqueue an extra stylesheet

Return values
mixed

initialize_dashboard()

Initializes the Dashboard of the Plugin and loads them.

private initialize_dashboard() : mixed
Tags
since
1.5.0
Return values
mixed

initialize_task()

Initializes the Plugin Task and registers the Task hooks.

private initialize_task() : mixed
Tags
since
1.5.0
Return values
mixed

Search results