From 27d3e6269e1bca8481d26a9af83aa39fe28a07a1 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 15 Apr 2021 05:09:23 +0100 Subject: [PATCH] chore: remove date info (#94) * chore: remove @lastmodified tags * chore: remove @date tags * chore: remove timestamps * chore: remove timestamps * chore: minor formatting fixes --- class/config.php | 3 +- class/convert.php | 5 +- class/dashboard/init.php | 1 - class/dashboard/layout.php | 13 +-- class/dashboard/subpage-diagnostics.php | 1 - class/dashboard/subpage-main.php | 123 ++++++++++++------------ class/hooks.php | 3 +- class/init.php | 34 +++---- class/language.php | 3 - class/layout/abstract-engine.php | 12 +-- class/layout/diagnostics.php | 1 - class/layout/init.php | 1 - class/layout/settings.php | 81 ++++++++-------- class/settings.php | 45 +-------- class/task.php | 86 ++++------------- class/template.php | 2 - class/widgets/base.php | 1 - class/widgets/reference-container.php | 5 +- class/wysiwyg.php | 1 - css/dev-common.css | 1 - css/dev-layout-entry-content.css | 8 +- css/dev-layout-main-content.css | 3 +- css/dev-layout-reference-container.css | 2 +- css/dev-tooltips.css | 7 -- customized-documentation-schema.txt | 3 - customized-template-stack.txt | 2 - footnotes.php | 1 - js/jquery.tools.js | 5 - js/jquery.tools.min.js | 1 - js/wysiwyg-editor.js | 4 +- 30 files changed, 154 insertions(+), 304 deletions(-) diff --git a/class/config.php b/class/config.php index 8f02119..35634b4 100644 --- a/class/config.php +++ b/class/config.php @@ -5,9 +5,8 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:56 * - * @since 2.0.4 add Public Plugin name for dashboard heading 2020-11-01T0452+0100 + * @since 2.0.4 add Public Plugin name for dashboard heading */ /** diff --git a/class/convert.php b/class/convert.php index c994d7a..d1da59a 100644 --- a/class/convert.php +++ b/class/convert.php @@ -5,9 +5,8 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:56 * - * @since 2.2.0 add lowercase Roman 2020-12-12T1540+0100 + * @since 2.2.0 add lowercase Roman */ /** @@ -102,7 +101,7 @@ class MCI_Footnotes_Convert { * @return string * * Edited: - * @since 2.2.0 optionally lowercase (code from Latin) 2020-12-12T1538+0100 + * @since 2.2.0 optionally lowercase (code from Latin) */ private static function to_romanic( $p_int_value, $p_bool_upper_case ) { // Table containing all necessary romanic letters. diff --git a/class/dashboard/init.php b/class/dashboard/init.php index c3f505e..39318c9 100644 --- a/class/dashboard/init.php +++ b/class/dashboard/init.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:26 */ /** diff --git a/class/dashboard/layout.php b/class/dashboard/layout.php index 16d492e..41b90d5 100644 --- a/class/dashboard/layout.php +++ b/class/dashboard/layout.php @@ -5,12 +5,11 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:56 * - * @since 2.1.2 add versioning of settings.css for cache busting 2020-11-19T1456+0100 - * @since 2.1.4 automate passing version number for cache busting 2020-11-30T0648+0100 - * @since 2.1.4 optional step argument and support for floating in numbox 2020-12-05T0540+0100 - * @since 2.1.6 fix punctuation-related localization issue in dashboard labels 2020-12-08T1547+0100 + * @since 2.1.2 add versioning of settings.css for cache busting + * @since 2.1.4 automate passing version number for cache busting + * @since 2.1.4 optional step argument and support for floating in numbox + * @since 2.1.6 fix punctuation-related localization issue in dashboard labels * * @since 2.5.5 Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report. */ @@ -199,7 +198,6 @@ abstract class MCI_Footnotes_Layout_Engine { * - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report. * * @since 2.5.5 - * @date 2021-02-14T1928+0100 * * @reporter @docteurfitness * @link https://wordpress.org/support/topic/simply-speed-optimisation/ @@ -530,8 +528,7 @@ abstract class MCI_Footnotes_Layout_Engine { * @param bool $p_bool_deci true if 0.1 steps and floating to string, false if integer (default). * @return string * - * Edited: - * @since 2.1.4 step argument and number_format() to allow decimals 2020-12-03T0631+0100..2020-12-12T1110+0100 + * @since 2.1.4 step argument and number_format() to allow decimals. */ protected function add_num_box( $p_str_setting_name, $p_in_min, $p_int_max, $p_bool_deci = false ) { // Collect data for given settings field. diff --git a/class/dashboard/subpage-diagnostics.php b/class/dashboard/subpage-diagnostics.php index 1a30015..0889af6 100644 --- a/class/dashboard/subpage-diagnostics.php +++ b/class/dashboard/subpage-diagnostics.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 14:47 */ /** diff --git a/class/dashboard/subpage-main.php b/class/dashboard/subpage-main.php index ddb8e3a..e50dd33 100644 --- a/class/dashboard/subpage-main.php +++ b/class/dashboard/subpage-main.php @@ -4,39 +4,38 @@ * * @filesource * @since 1.5.0 - * @date 14.09.14 14:47 * - * @since 2.0.4 restore arrow settings 2020-11-01T0509+0100 - * @since 2.1.0 read-on button label 2020-11-08T2148+0100 - * @since 2.1.1 options for ref container and alternative tooltips 2020-11-16T2152+0100 + * @since 2.0.4 restore arrow settings + * @since 2.1.0 read-on button label + * @since 2.1.1 options for ref container and alternative tooltips * @since 2.1.1 Referrers: superscript becomes optional, thanks to @cwbayer bug report * @since 2.1.2 priority level settings for all other hooks, thanks to @nikelaos * @link https://wordpress.org/support/topic/doesnt-work-any-more-11/#post-13676705 - * @since 2.1.4 settings for ref container, tooltips and scrolling 2020-12-03T0950+0100 - * @since 2.1.6 slight UI reordering 2020-12-09T1114+0100 - * @since 2.1.6 option to disable URL line wrapping 2020-12-09T1604+0100 - * @since 2.1.6 remove expert mode setting as outdated 2020-12-09T2105+0100 + * @since 2.1.4 settings for ref container, tooltips and scrolling + * @since 2.1.6 slight UI reordering + * @since 2.1.6 option to disable URL line wrapping + * @since 2.1.6 remove expert mode setting as outdated * @since 2.2.0 start/end short codes: more predefined options, thanks to @nikelaos * @link https://wordpress.org/support/topic/doesnt-work-with-mailpoet/ - * @since 2.2.0 add options, redistribute, update strings 2020-12-12T2135+0100 - * @since 2.2.0 shortcode for reference container custom position 2020-12-13T2055+0100 - * @since 2.2.2 Custom CSS settings container migration 2020-12-15T0709+0100 - * @since 2.2.4 move backlink symbol selection under previous tab 2020-12-16T1244+0100 - * @since 2.2.5 support for Ibid. notation thanks to @meglio 2020-12-17T2021+0100 + * @since 2.2.0 add options, redistribute, update strings + * @since 2.2.0 shortcode for reference container custom position + * @since 2.2.2 Custom CSS settings container migration + * @since 2.2.4 move backlink symbol selection under previous tab + * @since 2.2.5 support for Ibid. notation thanks to @meglio * @link https://wordpress.org/support/topic/add-support-for-ibid-notation/ - * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer 2020-12-18T1447+0100 + * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ - * @since 2.2.10 reference container row border option, thanks to @noobishh 2020-12-25T2316+0100 + * @since 2.2.10 reference container row border option, thanks to @noobishh * @link https://wordpress.org/support/topic/borders-25/ * @since 2.3.0 Reference container: convert top padding to margin and make it a setting, thanks to @hamshe * @link https://wordpress.org/support/topic/reference-container-in-elementor/#post-13786635 - * @since 2.3.0 rename Priority level tab as Scope and priority 2020-12-26T2222+0100 - * @since 2.3.0 swap Custom CSS migration Boolean from 'migration complete' to 'show legacy' 2020-12-27T1243+0100 - * @since 2.3.0 mention op. cit. abbreviation 2020-12-28T2342+0100 - * @since 2.3.0 add settings for hard links, thanks to @psykonevro and @martinneumannat 2020-12-29T1322+0100 + * @since 2.3.0 rename Priority level tab as Scope and priority + * @since 2.3.0 swap Custom CSS migration Boolean from 'migration complete' to 'show legacy' + * @since 2.3.0 mention op. cit. abbreviation + * @since 2.3.0 add settings for hard links, thanks to @psykonevro and @martinneumannat * @link https://wordpress.org/support/topic/making-it-amp-compatible/ * @link https://wordpress.org/support/topic/footnotes-is-not-amp-compatible/ - * @since 2.4.0 footnote shortcode syntax validation 2021-01-01T0624+0100 + * @since 2.4.0 footnote shortcode syntax validation * @since 2.5.0 Shortcode syntax validation: add more information around the setting, thanks to @andreasra * @link https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/ */ @@ -200,8 +199,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 1.5.0 * * Completed: - * @since 2.1.4: layout and typography options 2020-11-30T0548+0100 - * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer 2020-12-18T1447+0100 + * @since 2.1.4: layout and typography options + * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ */ public function reference_container() { @@ -372,14 +371,14 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * * @since 1.5.0 * - * Edited heading 2020-12-12T1412+0100 - * @since 2.2.0 start/end short codes: more predefined options 2020-12-12T1412+0100 + * Edited heading + * @since 2.2.0 start/end short codes: more predefined options * @link https://wordpress.org/support/topic/doesnt-work-with-mailpoet/ - * @since 2.2.0 3 boxes for clarity 2020-12-12T1422+0100 - * @since 2.2.5 support for Ibid. notation thanks to @meglio 2020-12-17T2019+0100 + * @since 2.2.0 3 boxes for clarity + * @since 2.2.5 support for Ibid. notation thanks to @meglio * @link https://wordpress.org/support/topic/add-support-for-ibid-notation/ - * @since 2.4.0 added warning about Block Editor escapement disruption 2021-01-02T2324+0100 - * @since 2.4.0 removed the HTML comment tag option 2021-01-02T2325+0100 + * @since 2.4.0 added warning about Block Editor escapement disruption + * @since 2.4.0 removed the HTML comment tag option * @since 2.5.0 Shortcode syntax validation: add more information around the setting, thanks to @andreasra * @link https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/ */ @@ -520,34 +519,34 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { $l_obj_template->replace( array( - 'label-scroll-css' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, __( 'CSS-based smooth scrolling:', 'footnotes' ) ), - 'scroll-css' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, $l_arr_enable ), - 'notice-scroll-css' => __( 'May slightly disturb jQuery scrolling and is therefore disabled by default. Works in recent browsers.', 'footnotes' ), + 'label-scroll-css' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, __( 'CSS-based smooth scrolling:', 'footnotes' ) ), + 'scroll-css' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_CSS_SMOOTH_SCROLLING, $l_arr_enable ), + 'notice-scroll-css' => __( 'May slightly disturb jQuery scrolling and is therefore disabled by default. Works in recent browsers.', 'footnotes' ), - 'label-scroll-offset' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, __( 'Scroll offset:', 'footnotes' ) ), - 'scroll-offset' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, 0, 100 ), - 'notice-scroll-offset' => __( 'per cent viewport height from the upper edge', 'footnotes' ), + 'label-scroll-offset' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, __( 'Scroll offset:', 'footnotes' ) ), + 'scroll-offset' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_OFFSET, 0, 100 ), + 'notice-scroll-offset' => __( 'per cent viewport height from the upper edge', 'footnotes' ), - 'label-scroll-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', 'footnotes' ) ), - 'scroll-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, 0, 20000 ), - 'notice-scroll-duration' => __( 'milliseconds. If asymmetric scroll durations are enabled, this is the scroll-up duration.', 'footnotes' ), + 'label-scroll-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, __( 'Scroll duration:', 'footnotes' ) ), + 'scroll-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DURATION, 0, 20000 ), + 'notice-scroll-duration' => __( 'milliseconds. If asymmetric scroll durations are enabled, this is the scroll-up duration.', 'footnotes' ), // Enable scroll duration asymmetricity. - 'label-scroll-asymmetricity' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, __( 'Enable asymmetric scroll durations:', 'footnotes' ) ), - 'scroll-asymmetricity' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, $l_arr_enable ), - 'notice-scroll-asymmetricity' => __( 'With this option enabled, scrolling up may take longer than down, or conversely.', 'footnotes' ), + 'label-scroll-asymmetricity' => $this->add_label( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, __( 'Enable asymmetric scroll durations:', 'footnotes' ) ), + 'scroll-asymmetricity' => $this->add_select_box( MCI_Footnotes_Settings::C_STR_FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY, $l_arr_enable ), + 'notice-scroll-asymmetricity' => __( 'With this option enabled, scrolling up may take longer than down, or conversely.', 'footnotes' ), - 'label-scroll-down-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, __( 'Scroll-down duration:', 'footnotes' ) ), - 'scroll-down-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, 0, 20000 ), - 'notice-scroll-down-duration' => __( 'milliseconds', 'footnotes' ), + 'label-scroll-down-duration' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, __( 'Scroll-down duration:', 'footnotes' ) ), + 'scroll-down-duration' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DURATION, 0, 20000 ), + 'notice-scroll-down-duration' => __( 'milliseconds', 'footnotes' ), - 'label-scroll-down-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, __( 'Scroll-down delay:', 'footnotes' ) ), - 'scroll-down-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, 0, 20000 ), - 'notice-scroll-down-delay' => __( 'milliseconds. Useful to see the effect on input elements when referrers without hard links are clicked in form labels.', 'footnotes' ), + 'label-scroll-down-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, __( 'Scroll-down delay:', 'footnotes' ) ), + 'scroll-down-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_DOWN_DELAY, 0, 20000 ), + 'notice-scroll-down-delay' => __( 'milliseconds. Useful to see the effect on input elements when referrers without hard links are clicked in form labels.', 'footnotes' ), - 'label-scroll-up-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, __( 'Scroll-up delay:', 'footnotes' ) ), - 'scroll-up-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, 0, 20000 ), - 'notice-scroll-up-delay' => __( 'milliseconds. Less useful than the scroll-down delay.', 'footnotes' ), + 'label-scroll-up-delay' => $this->add_label( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, __( 'Scroll-up delay:', 'footnotes' ) ), + 'scroll-up-delay' => $this->add_num_box( MCI_Footnotes_Settings::C_INT_FOOTNOTES_SCROLL_UP_DELAY, 0, 20000 ), + 'notice-scroll-up-delay' => __( 'milliseconds. Less useful than the scroll-down delay.', 'footnotes' ), ) ); @@ -616,8 +615,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 1.5.0 * * Edited: - * @since 2.2.0 position-sensitive placeholders to support more locales 2020-12-11T0432+0100 - * @since 2.2.0 more options 2020-12-11T0432+0100 + * @since 2.2.0 position-sensitive placeholders to support more locales + * @since 2.2.0 more options */ public function love() { // Options for the acknowledgment display in the footer. @@ -666,11 +665,11 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * * @since 1.5.0 * - * Edited heading 2020-12-12T1453+0100 + * Edited heading * @since 2.1.1 more settings and notices, thanks to @nikelaos * @link https://wordpress.org/support/topic/doesnt-work-any-more-11/#post-13687068 * @link https://wordpress.org/support/topic/jquery-comes-up-in-feed-content/#post-13110879 - * @since 2.2.0 dedicated to the excerpt setting and its notices 2020-12-12T1454+0100 + * @since 2.2.0 dedicated to the excerpt setting and its notices */ public function excerpts() { // Options for Yes/No select box. @@ -703,9 +702,9 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * * @since 1.5.0 * - * Edited heading 2020-12-12T1513+0100 + * Edited heading * @since 2.1.1 option for superscript (optionally baseline referrers) - * @since 2.2.0 option for link element moved here 2020-12-12T1514+0100 + * @since 2.2.0 option for link element moved here */ public function superscript() { // Options for Yes/No select box. @@ -1100,7 +1099,6 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * - Update: Restore arrow settings to customize or disable the now prepended arrow symbol, thanks to @mmallett issue report. * * @since 2.0.4 - * @date 2020-11-02T2115+0100 * * @reporter @mmallett * @link https://wordpress.org/support/topic/mouse-over-broken/#post-13593037 @@ -1136,10 +1134,9 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 2.1.6 drop localized notices for CSS classes as the number increased to 16 * list directly in the template, as CSS is in English anyway * @see templates/dashboard/customize-css.html - * 2020-12-09T1113+0100 * - * @since 2.2.2 migrate Custom CSS to a dedicated tab 2020-12-15T0506+0100 - * @since 2.3.0 say 'copy-paste' instead of 'cut and paste' since cutting is not needed 2020-12-27T1257+0100 + * @since 2.2.2 migrate Custom CSS to a dedicated tab + * @since 2.3.0 say 'copy-paste' instead of 'cut and paste' since cutting is not needed * @since 2.5.1 mention validity while visible, thanks to @rkupadhya bug report */ public function custom_css() { @@ -1241,8 +1238,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 1.5.5 * * Edited: - * @since 2.1.1 priority level setting for the_content 2020-11-16T2152+0100 - * @since 2.1.4 priority level settings for the other hooks 2020-11-19T1421+0100 + * @since 2.1.1 priority level setting for the_content + * @since 2.1.4 priority level settings for the other hooks * * priority level was initially hard-coded default * shows "9223372036854775807" in the numbox @@ -1250,8 +1247,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * but a numbox cannot be set to empty: * define -1 as PHP_INT_MAX instead * - * @since 2.2.9 removed the warning about the widget text hook 2020-12-25T0348+0100 - * @since 2.2.9 added guidance for the widget text hook 2020-12-25T0353+0100 + * @since 2.2.9 removed the warning about the widget text hook + * @since 2.2.9 added guidance for the widget text hook */ public function lookup_hooks() { // Load template file. diff --git a/class/hooks.php b/class/hooks.php index 8e44a82..ae4c0c9 100644 --- a/class/hooks.php +++ b/class/hooks.php @@ -5,9 +5,8 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:56 * - * @since 2.2.0 (TBD) 2020-12-12T1223+0100 + * @since 2.2.0 */ /** diff --git a/class/init.php b/class/init.php index ce57b02..f92c64b 100644 --- a/class/init.php +++ b/class/init.php @@ -5,16 +5,15 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:56 * * @since 1.6.5 Bugfix: Improve widgets registration, thanks to @felipelavinz code contribution. * @since 1.6.5 Update: Fix for deprecated PHP function create_function(), thanks to @psykonevro @daliasued bug reports, thanks to @felipelavinz code contribution. * @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 + * @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 * * @since 2.5.5 Update: Stylesheets: increase speed and energy efficiency by tailoring stylesheets to the needs of the instance, thanks to @docteurfitness design contribution. * @since 2.5.5 Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report. @@ -44,7 +43,6 @@ class MCI_Footnotes { * - Bugfix: Templates: optimize template load and processing based on settings, thanks to @misfist code contribution. * * @since 2.4.0 - * @date 2021-01-04T1355+0100 * * @contributor Patrizia Lutz @misfist * @link https://wordpress.org/support/topic/template-override-filter/#post-13864301 @@ -126,7 +124,6 @@ class MCI_Footnotes { * * @contributor @felipelavinz * @link https://github.com/benleyjyc/footnotes/commit/87173d2980c7ff90e12ffee94ca7153e11163793 - * @date 2020-02-25 * @link https://github.com/media-competence-institute/footnotes/commit/87173d2980c7ff90e12ffee94ca7153e11163793 * * @see self::initialize_widgets() @@ -209,10 +206,10 @@ class MCI_Footnotes { * @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 + * @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 */ public function register_public() { @@ -267,12 +264,10 @@ class MCI_Footnotes { * Add versioning. * * @since 2.1.2 - * @date 2020-11-18T2150+0100 * * No '-js' in the handle, is appended automatically. * * Deferring to the footer breaks jQuery tooltip display. - * @date 2021-02-23T1105+0100 */ wp_enqueue_script( 'mci-footnotes-jquery-tools', @@ -303,8 +298,7 @@ class MCI_Footnotes { * * Fetch jQuery UI from cdnjs.cloudflare.com. * @since 2.0.0 - * @date 2020-10-26T1907+0100 - * @contributor @vonpiernik + * @contributor @vonpiernik * @link https://wordpress.org/support/topic/tooltip-hover-not-showing/#post-13456762 * * jQueryUI re-enables the tooltip infobox disabled when WPv5.5 was released. * @since 2.1.2 @@ -312,8 +306,7 @@ class MCI_Footnotes { * - Update: Libraries: Load jQuery UI from WordPress, thanks to @check2020de issue report. * * @since 2.0.4 - * @date 2020-11-01T1902+0100 - * @reporter @check2020de + * @reporter @check2020de * @link https://wordpress.org/support/topic/gdpr-issue-with-jquery/ * @link https://wordpress.stackexchange.com/questions/273986/correct-way-to-enqueue-jquery-ui * @@ -331,7 +324,6 @@ class MCI_Footnotes { * Enables enqueuing a new-scheme stylesheet. * * @since 2.5.5 - * @date 2021-02-14T1512+0100 * * Enables enqueuing the formatted individual stylesheets if false. * WARNING: This facility is designed for development and must NOT be used in production. @@ -348,7 +340,6 @@ class MCI_Footnotes { * - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report. * * @since 2.5.5 - * @date 2021-02-14T1543+0100 * * @contributor @docteurfitness * @link https://wordpress.org/support/topic/simply-speed-optimisation/ @@ -360,11 +351,9 @@ class MCI_Footnotes { * @see class/dashboard/layout.php * * @since 2.0.3 add versioning of public.css for cache busting. - * @date 2020-10-29T1413+0100 * Plugin version number is needed for busting browser caches after each plugin update. * * @since 2.1.4 automate passing version number for cache busting. - * @date 2020-11-30T0646+0100 * The constant C_STR_PACKAGE_VERSION is defined at start of footnotes.php. * * The media scope argument 'all' is the default. @@ -426,8 +415,7 @@ class MCI_Footnotes { * Enqueues external stylesheets, ONLY in development now. * * @since 2.1.4 optionally enqueue an extra stylesheet. - * @date 2020-12-04T2231+0100 - * + * * This optional layout fix is useful by lack of layout support. */ wp_enqueue_style( diff --git a/class/language.php b/class/language.php index fd86a8c..d7064da 100644 --- a/class/language.php +++ b/class/language.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 17:47 * * @since 2.0.0 Bugfix: Localization: correct function call apply_filters() with all required arguments after PHP 7.1 promoted warning to error, thanks to @matkus2 bug report and code contribution. * @since 2.1.6 Bugfix: Localization: conform to WordPress plugin language file name scheme, thanks to @nikelaos bug report. @@ -37,7 +36,6 @@ class MCI_Footnotes_Language { * - Bugfix: Correct function call apply_filters() with all required arguments after PHP 7.1 promoted warning to error, thanks to @matkus2 bug report and code contribution. * * @since 2.0.0 - * @date 2020-10-26T1609+0100 * * @contributor @matkus2 * @link https://wordpress.org/support/topic/error-missing-parameter-if-using-php-7-1-or-later/ @@ -81,7 +79,6 @@ class MCI_Footnotes_Language { * - Bugfix: Localization: conform to WordPress plugin language file name scheme, thanks to @nikelaos bug report. * * @since 2.1.6 - * @date 2020-12-08T1931+0100 * * @reporter @nikelaos * @link https://wordpress.org/support/topic/more-feature-ideas/ diff --git a/class/layout/abstract-engine.php b/class/layout/abstract-engine.php index b1826e6..7563f71 100644 --- a/class/layout/abstract-engine.php +++ b/class/layout/abstract-engine.php @@ -5,12 +5,11 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:56 * - * @since 2.1.2 add versioning of settings.css for cache busting 2020-11-19T1456+0100 - * @since 2.1.4 automate passing version number for cache busting 2020-11-30T0648+0100 - * @since 2.1.4 optional step argument and support for floating in numbox 2020-12-05T0540+0100 - * @since 2.1.6 fix punctuation-related localization issue in dashboard labels 2020-12-08T1547+0100 + * @since 2.1.2 add versioning of settings.css for cache busting + * @since 2.1.4 automate passing version number for cache busting + * @since 2.1.4 optional step argument and support for floating in numbox + * @since 2.1.6 fix punctuation-related localization issue in dashboard labels * * @since 2.5.5 Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report. */ @@ -199,7 +198,6 @@ abstract class MCI_Footnotes_Layout_Engine { * - Bugfix: Stylesheets: minify to shrink the carbon footprint, increase speed and implement best practice, thanks to @docteurfitness issue report. * * @since 2.5.5 - * @date 2021-02-14T1928+0100 * * @reporter @docteurfitness * @link https://wordpress.org/support/topic/simply-speed-optimisation/ @@ -556,7 +554,7 @@ abstract class MCI_Footnotes_Layout_Engine { * @return string * * Edited: - * @since 2.1.4 step argument and number_format() to allow decimals 2020-12-03T0631+0100..2020-12-12T1110+0100 + * @since 2.1.4 step argument and number_format() to allow decimals. */ protected function add_num_box( $p_str_setting_name, $p_in_min, $p_int_max, $p_bool_deci = false ) { // Collect data for given settings field. diff --git a/class/layout/diagnostics.php b/class/layout/diagnostics.php index 1a30015..0889af6 100644 --- a/class/layout/diagnostics.php +++ b/class/layout/diagnostics.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 14:47 */ /** diff --git a/class/layout/init.php b/class/layout/init.php index c3f505e..39318c9 100644 --- a/class/layout/init.php +++ b/class/layout/init.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 12.09.14 10:26 */ /** diff --git a/class/layout/settings.php b/class/layout/settings.php index 5fb3a89..babde9a 100644 --- a/class/layout/settings.php +++ b/class/layout/settings.php @@ -4,39 +4,38 @@ * * @filesource * @since 1.5.0 - * @date 14.09.14 14:47 * - * @since 2.0.4 restore arrow settings 2020-11-01T0509+0100 - * @since 2.1.0 read-on button label 2020-11-08T2148+0100 - * @since 2.1.1 options for ref container and alternative tooltips 2020-11-16T2152+0100 + * @since 2.0.4 restore arrow settings + * @since 2.1.0 read-on button label + * @since 2.1.1 options for ref container and alternative tooltips * @since 2.1.1 Referrers: superscript becomes optional, thanks to @cwbayer bug report * @since 2.1.2 priority level settings for all other hooks, thanks to @nikelaos * @link https://wordpress.org/support/topic/doesnt-work-any-more-11/#post-13676705 - * @since 2.1.4 settings for ref container, tooltips and scrolling 2020-12-03T0950+0100 - * @since 2.1.6 slight UI reordering 2020-12-09T1114+0100 - * @since 2.1.6 option to disable URL line wrapping 2020-12-09T1604+0100 - * @since 2.1.6 remove expert mode setting as outdated 2020-12-09T2105+0100 + * @since 2.1.4 settings for ref container, tooltips and scrolling + * @since 2.1.6 slight UI reordering + * @since 2.1.6 option to disable URL line wrapping + * @since 2.1.6 remove expert mode setting as outdated * @since 2.2.0 start/end short codes: more predefined options, thanks to @nikelaos * @link https://wordpress.org/support/topic/doesnt-work-with-mailpoet/ - * @since 2.2.0 add options, redistribute, update strings 2020-12-12T2135+0100 - * @since 2.2.0 shortcode for reference container custom position 2020-12-13T2055+0100 - * @since 2.2.2 Custom CSS settings container migration 2020-12-15T0709+0100 - * @since 2.2.4 move backlink symbol selection under previous tab 2020-12-16T1244+0100 - * @since 2.2.5 support for Ibid. notation thanks to @meglio 2020-12-17T2021+0100 + * @since 2.2.0 add options, redistribute, update strings + * @since 2.2.0 shortcode for reference container custom position + * @since 2.2.2 Custom CSS settings container migration + * @since 2.2.4 move backlink symbol selection under previous tab + * @since 2.2.5 support for Ibid. notation thanks to @meglio * @link https://wordpress.org/support/topic/add-support-for-ibid-notation/ - * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer 2020-12-18T1447+0100 + * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ - * @since 2.2.10 reference container row border option, thanks to @noobishh 2020-12-25T2316+0100 + * @since 2.2.10 reference container row border option, thanks to @noobishh * @link https://wordpress.org/support/topic/borders-25/ * @since 2.3.0 Reference container: convert top padding to margin and make it a setting, thanks to @hamshe * @link https://wordpress.org/support/topic/reference-container-in-elementor/#post-13786635 - * @since 2.3.0 rename Priority level tab as Scope and priority 2020-12-26T2222+0100 - * @since 2.3.0 swap Custom CSS migration Boolean from 'migration complete' to 'show legacy' 2020-12-27T1243+0100 - * @since 2.3.0 mention op. cit. abbreviation 2020-12-28T2342+0100 - * @since 2.3.0 add settings for hard links, thanks to @psykonevro and @martinneumannat 2020-12-29T1322+0100 + * @since 2.3.0 rename Priority level tab as Scope and priority + * @since 2.3.0 swap Custom CSS migration Boolean from 'migration complete' to 'show legacy' + * @since 2.3.0 mention op. cit. abbreviation + * @since 2.3.0 add settings for hard links, thanks to @psykonevro and @martinneumannat * @link https://wordpress.org/support/topic/making-it-amp-compatible/ * @link https://wordpress.org/support/topic/footnotes-is-not-amp-compatible/ - * @since 2.4.0 footnote shortcode syntax validation 2021-01-01T0624+0100 + * @since 2.4.0 footnote shortcode syntax validation * @since 2.5.0 Shortcode syntax validation: add more information around the setting, thanks to @andreasra * @link https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/ */ @@ -200,8 +199,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 1.5.0 * * Completed: - * @since 2.1.4: layout and typography options 2020-11-30T0548+0100 - * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer 2020-12-18T1447+0100 + * @since 2.1.4: layout and typography options + * @since 2.2.5 options for label element and label bottom border, thanks to @markhillyer * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ */ public function reference_container() { @@ -372,14 +371,14 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * * @since 1.5.0 * - * Edited heading 2020-12-12T1412+0100 - * @since 2.2.0 start/end short codes: more predefined options 2020-12-12T1412+0100 + * Edited heading + * @since 2.2.0 start/end short codes: more predefined options * @link https://wordpress.org/support/topic/doesnt-work-with-mailpoet/ - * @since 2.2.0 3 boxes for clarity 2020-12-12T1422+0100 - * @since 2.2.5 support for Ibid. notation thanks to @meglio 2020-12-17T2019+0100 + * @since 2.2.0 3 boxes for clarity + * @since 2.2.5 support for Ibid. notation thanks to @meglio * @link https://wordpress.org/support/topic/add-support-for-ibid-notation/ - * @since 2.4.0 added warning about Block Editor escapement disruption 2021-01-02T2324+0100 - * @since 2.4.0 removed the HTML comment tag option 2021-01-02T2325+0100 + * @since 2.4.0 added warning about Block Editor escapement disruption + * @since 2.4.0 removed the HTML comment tag option * @since 2.5.0 Shortcode syntax validation: add more information around the setting, thanks to @andreasra * @link https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/ */ @@ -616,8 +615,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 1.5.0 * * Edited: - * @since 2.2.0 position-sensitive placeholders to support more locales 2020-12-11T0432+0100 - * @since 2.2.0 more options 2020-12-11T0432+0100 + * @since 2.2.0 position-sensitive placeholders to support more locales + * @since 2.2.0 more options */ public function love() { // Options for the acknowledgment display in the footer. @@ -665,11 +664,11 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * * @since 1.5.0 * - * Edited heading 2020-12-12T1453+0100 + * Edited heading * @since 2.1.1 more settings and notices, thanks to @nikelaos * @link https://wordpress.org/support/topic/doesnt-work-any-more-11/#post-13687068 * @link https://wordpress.org/support/topic/jquery-comes-up-in-feed-content/#post-13110879 - * @since 2.2.0 dedicated to the excerpt setting and its notices 2020-12-12T1454+0100 + * @since 2.2.0 dedicated to the excerpt setting and its notices */ public function excerpts() { // Options for Yes/No select box. @@ -702,9 +701,9 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * * @since 1.5.0 * - * Edited heading 2020-12-12T1513+0100 + * Edited heading * @since 2.1.1 option for superscript (optionally baseline referrers) - * @since 2.2.0 option for link element moved here 2020-12-12T1514+0100 + * @since 2.2.0 option for link element moved here */ public function superscript() { // Options for Yes/No select box. @@ -1099,7 +1098,6 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * - Update: Restore arrow settings to customize or disable the now prepended arrow symbol, thanks to @mmallett issue report. * * @since 2.0.4 - * @date 2020-11-02T2115+0100 * * @reporter @mmallett * @link https://wordpress.org/support/topic/mouse-over-broken/#post-13593037 @@ -1135,10 +1133,9 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 2.1.6 drop localized notices for CSS classes as the number increased to 16 * list directly in the template, as CSS is in English anyway * @see templates/dashboard/customize-css.html - * 2020-12-09T1113+0100 * - * @since 2.2.2 migrate Custom CSS to a dedicated tab 2020-12-15T0506+0100 - * @since 2.3.0 say 'copy-paste' instead of 'cut and paste' since cutting is not needed 2020-12-27T1257+0100 + * @since 2.2.2 migrate Custom CSS to a dedicated tab + * @since 2.3.0 say 'copy-paste' instead of 'cut and paste' since cutting is not needed * @since 2.5.1 mention validity while visible, thanks to @rkupadhya bug report */ public function custom_css() { @@ -1240,8 +1237,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * @since 1.5.5 * * Edited: - * @since 2.1.1 priority level setting for the_content 2020-11-16T2152+0100 - * @since 2.1.4 priority level settings for the other hooks 2020-11-19T1421+0100 + * @since 2.1.1 priority level setting for the_content + * @since 2.1.4 priority level settings for the other hooks * * priority level was initially hard-coded default * shows "9223372036854775807" in the numbox @@ -1249,8 +1246,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_Layout_Engine { * but a numbox cannot be set to empty: * define -1 as PHP_INT_MAX instead * - * @since 2.2.9 removed the warning about the widget text hook 2020-12-25T0348+0100 - * @since 2.2.9 added guidance for the widget text hook 2020-12-25T0353+0100 + * @since 2.2.9 removed the warning about the widget text hook + * @since 2.2.9 added guidance for the widget text hook */ public function lookup_hooks() { // Load template file. diff --git a/class/settings.php b/class/settings.php index d83907b..b1fc467 100644 --- a/class/settings.php +++ b/class/settings.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 10:43 * * The constants are ordered by ascending version so their docblocks can replace most of this list. * @since 2.0.0 Update: **symbol for backlinks** removed; hyperlink moved to the reference number. @@ -106,7 +105,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/mouse-over-broken/#post-13593037 * * @since 2.0.4 - * @date 2020-11-02T2115+0100 * @var str */ const C_STR_HYPERLINK_ARROW = 'footnote_inputfield_custom_hyperlink_symbol'; @@ -288,11 +286,9 @@ class MCI_Footnotes_Settings { * @var str * * @since 2.1.6 This setting removed as irrelevant since priority level settings need permanent visibility. - * @date 2020-12-09T2107+0100 * * Since the removal of the the_post hook, the tab is no danger zone any longer. * All users, not experts only, need to be able to control relative positioning. - * @date 2020-11-06T1342+0100 */ const C_STR_FOOTNOTES_EXPERT_MODE = 'footnote_inputfield_enable_expert_mode'; @@ -422,7 +418,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/offset-x-axis-and-offset-y-axis-does-not-working/ * * @since 2.1.0 - * @date 2020-11-08T2106+0100 * @var str */ const C_STR_FOOTNOTES_TOOLTIP_READON_LABEL = 'footnote_inputfield_readon_label'; @@ -436,7 +431,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/footnotes-appearing-in-header/page/2/#post-13632566 * * @since 2.1.1 - * @date 2020-11-11T1817+0100 * @var str * * These alternative tooltips work around a website related jQuery UI @@ -455,7 +449,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/footnote-number-in-text-superscript-disrupts-leading/ * * @since 2.1.1 - * @date 2020-11-16T0859+0100 * @var str */ const C_STR_FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS = 'footnotes_inputfield_referrer_superscript_tags'; @@ -469,7 +462,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/change-the-position-5/page/2/#post-13671138 * * @since 2.1.1 - * @date 2020-11-16T2021+0100 * @var str */ const C_STR_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE = 'footnotes_inputfield_reference_container_backlink_symbol_enable'; @@ -506,7 +498,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/change-the-position-5/#post-13615994 * * @since 2.1.1 - * @date 2020-11-16T2024+0100 * @var str */ const C_STR_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH = 'footnotes_inputfield_reference_container_backlink_symbol_switch'; @@ -526,7 +517,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/change-the-position-5/#post-13538345 * * @since 2.0.5 - * @date 2020-11-02T0330+0100 * @link https://codex.wordpress.org/Plugin_API/#Hook_in_your_Filter * * - Bugfix: Dashboard: priority level setting for the_content hook, thanks to @imeson bug report. @@ -535,7 +525,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/change-the-position-5/#post-13538345 * * @since 2.1.1 - * @date 2020-11-16T0859+0100 * * - Bugfix: Priority levels: set the_content priority level to 98 to prevent plugin conflict, thanks to @marthalindeman bug report. * @@ -543,7 +532,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/code-showing-up-in-references/ * * @since 2.1.6 - * @date 2020-12-10T0447+0100 * * Priority level of the_content and of widget_text as the only relevant * hooks must be less than 99 because social buttons may yield scripts @@ -573,7 +561,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/doesnt-work-any-more-11/#post-13676705 * * @since 2.1.2 - * @date 2020-11-20T0620+0100 * @var int */ const C_INT_EXPERT_LOOKUP_THE_TITLE_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_the_title_priority_level'; @@ -582,7 +569,6 @@ class MCI_Footnotes_Settings { * Settings container key for 'widget_title' hook priority level. * * @since 2.1.2 - * @date 2020-11-20T0620+0100 * @var int */ const C_INT_EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_widget_title_priority_level'; @@ -591,7 +577,6 @@ class MCI_Footnotes_Settings { * Settings container key for 'widget_text' hook priority level. * * @since 2.1.2 - * @date 2020-11-20T0620+0100 * @var int */ const C_INT_EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_widget_text_priority_level'; @@ -600,7 +585,6 @@ class MCI_Footnotes_Settings { * Settings container key for 'the_excerpt' hook priority level. * * @since 2.1.2 - * @date 2020-11-20T0620+0100 * @var int */ const C_INT_EXPERT_LOOKUP_THE_EXCERPT_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_the_excerpt_priority_level'; @@ -735,7 +719,6 @@ class MCI_Footnotes_Settings { * Settings container key to enable setting the tooltip font size. * * @since 2.1.4 - * @date 2020-12-04T1023+0100. * @var str * * Tooltip font size reset to legacy by default since 2.1.4; @@ -775,7 +758,6 @@ class MCI_Footnotes_Settings { * - Bugfix: Scroll offset: make configurable to fix site-dependent issues related to fixed headers. * * @since 2.1.4 - * @date 2020-12-05T0538+0100 * @var int */ const C_INT_FOOTNOTES_SCROLL_OFFSET = 'footnotes_inputfield_scroll_offset'; @@ -786,7 +768,6 @@ class MCI_Footnotes_Settings { * - Bugfix: Scroll duration: make configurable to conform to website content and style requirements. * * @since 2.1.4 - * @date 2020-12-05T0538+0100 * @var int */ const C_INT_FOOTNOTES_SCROLL_DURATION = 'footnotes_inputfield_scroll_duration'; @@ -795,7 +776,6 @@ class MCI_Footnotes_Settings { * Settings container key for tooltip display fade-in delay. * * @since 2.1.4 - * @date 2020-12-05T0538+0100 * @var int */ const C_INT_MOUSE_OVER_BOX_FADE_IN_DELAY = 'footnotes_inputfield_mouse_over_box_fade_in_delay'; @@ -804,7 +784,6 @@ class MCI_Footnotes_Settings { * Settings container key for tooltip display fade-in duration. * * @since 2.1.4 - * @date 2020-12-05T0538+0100 * @var int */ const C_INT_MOUSE_OVER_BOX_FADE_IN_DURATION = 'footnotes_inputfield_mouse_over_box_fade_in_duration'; @@ -813,7 +792,6 @@ class MCI_Footnotes_Settings { * Settings container key for tooltip display fade-out delay. * * @since 2.1.4 - * @date 2020-12-05T0538+0100 * @var int */ const C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY = 'footnotes_inputfield_mouse_over_box_fade_out_delay'; @@ -822,7 +800,6 @@ class MCI_Footnotes_Settings { * Settings container key for tooltip display fade-out duration. * * @since 2.1.4 - * @date 2020-12-05T0538+0100 * @var int */ const C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION = 'footnotes_inputfield_mouse_over_box_fade_out_duration'; @@ -834,7 +811,6 @@ class MCI_Footnotes_Settings { * Unicode-compliant browsers break URLs at slashes. * * @since 2.1.6 - * @date 2020-12-09T1606+0100 * @var str */ const C_STR_FOOTNOTE_URL_WRAP_ENABLED = 'footnote_inputfield_url_wrap_enabled'; @@ -848,7 +824,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/reference-container-in-elementor/ * * @since 2.2.0 - * @date 2020-12-13T2056+0100 * @var str */ const C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE = 'footnote_inputfield_reference_container_position_shortcode'; @@ -859,7 +834,6 @@ class MCI_Footnotes_Settings { * - Update: Dashboard: Custom CSS: unearth text area and migrate to dedicated tab as designed. * * @since 2.2.2 - * @date 2020-12-15T0520+0100 * @var str */ const C_STR_CUSTOM_CSS_NEW = 'footnote_inputfield_custom_css_new'; @@ -868,13 +842,11 @@ class MCI_Footnotes_Settings { * Settings container key to enable display of legacy Custom CSS metaboxes. * * @since 2.2.2 - * @date 2020-12-15T0520+0100 * @var str * * - Bugfix: Dashboard: Custom CSS: swap migration Boolean, meaning 'show legacy' instead of 'migration complete', due to storage data structure constraints. * * @since 2.3.0 - * @date 2020-12-27T1233+0100 * * The Boolean must be false if its setting is contained in the container to be hidden, * because when saving, all missing constants are emptied, and to_bool() converts empty to false. @@ -885,7 +857,6 @@ class MCI_Footnotes_Settings { * Settings container key for alternative tooltip position. * * @since 2.2.5 - * @date 2020-12-17T0746+0100 * @var str * * Fixed width is for alternative tooltips, cannot reuse max-width nor offsets. @@ -896,7 +867,6 @@ class MCI_Footnotes_Settings { * Settings container key for alternative tooltip x offset. * * @since 2.2.5 - * @date 2020-12-17T0746+0100 * @var int */ const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X = 'footnotes_inputfield_alternative_mouse_over_box_offset_x'; @@ -905,7 +875,6 @@ class MCI_Footnotes_Settings { * Settings container key for alternative tooltip y offset. * * @since 2.2.5 - * @date 2020-12-17T0746+0100 * @var int */ const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y = 'footnotes_inputfield_alternative_mouse_over_box_offset_y'; @@ -914,7 +883,6 @@ class MCI_Footnotes_Settings { * Settings container key for alternative tooltip width. * * @since 2.2.5 - * @date 2020-12-17T0746+0100 * @var int */ const C_INT_FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH = 'footnotes_inputfield_alternative_mouse_over_box_width'; @@ -929,7 +897,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ * * @since 2.2.5 - * @date 2020-12-18T1509+0100 * @var str */ const C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT = 'footnotes_inputfield_reference_container_label_element'; @@ -943,7 +910,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ * * @since 2.2.5 - * @date 2020-12-18T1509+0100 * @var str */ const C_STR_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER = 'footnotes_inputfield_reference_container_label_bottom_border'; @@ -957,7 +923,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/borders-25/ * * @since 2.2.10 - * @date 2020-12-25T2311+0100 * @var str */ const C_STR_REFERENCE_CONTAINER_ROW_BORDERS_ENABLE = 'footnotes_inputfield_reference_container_row_borders_enable'; @@ -971,7 +936,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/reference-container-in-elementor/#post-13786635 * * @since 2.3.0 - * @date 2020-12-29T0914+0100 * @var int */ const C_INT_REFERENCE_CONTAINER_TOP_MARGIN = 'footnotes_inputfield_reference_container_top_margin'; @@ -985,7 +949,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/reference-container-in-elementor/#post-13786635 * * @since 2.3.0 - * @date 2020-12-29T0914+0100 * @var int */ const C_INT_REFERENCE_CONTAINER_BOTTOM_MARGIN = 'footnotes_inputfield_reference_container_bottom_margin'; @@ -1002,7 +965,6 @@ class MCI_Footnotes_Settings { * @link https://wordpress.org/support/topic/footnotes-is-not-amp-compatible/ * * @since 2.3.0 - * @date 2020-12-29T0914+0100 * @var str * * When the alternative reference container is enabled, hard links are too. @@ -1013,7 +975,6 @@ class MCI_Footnotes_Settings { * Settings container key for the fragment ID slug in referrers. * * @since 2.3.0 - * @date 2020-12-29T0914+0100 * @var str */ const C_STR_REFERRER_FRAGMENT_ID_SLUG = 'footnotes_inputfield_referrer_fragment_id_slug'; @@ -1022,7 +983,6 @@ class MCI_Footnotes_Settings { * Settings container key for the fragment ID slug in footnotes. * * @since 2.3.0 - * @date 2020-12-29T0914+0100 * @var str */ const C_STR_FOOTNOTE_FRAGMENT_ID_SLUG = 'footnotes_inputfield_footnote_fragment_id_slug'; @@ -1031,7 +991,6 @@ class MCI_Footnotes_Settings { * Settings container key for the ID separator in fragment IDs. * * @since 2.3.0 - * @date 2020-12-29T0914+0100 * @var str */ const C_STR_HARD_LINK_IDS_SEPARATOR = 'footnotes_inputfield_hard_link_ids_separator'; @@ -1040,7 +999,6 @@ class MCI_Footnotes_Settings { * Settings container key to enable shortcode syntax validation. * * @since 2.4.0 - * @date 2021-01-01T0616+0100 * @var str */ const C_STR_FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE = 'footnotes_inputfield_shortcode_syntax_validation_enable'; @@ -1247,7 +1205,7 @@ class MCI_Footnotes_Settings { * @var array * * Edited. - * 2.2.2 added tab for Custom CSS 2020-12-15T0740+0100 + * 2.2.2 added tab for Custom CSS * * These are the storage container names, one per dashboard tab. */ @@ -1588,7 +1546,6 @@ class MCI_Footnotes_Settings { * @since 2.2.0 this function is not called any longer when deleting the plugin, * to protect user data against loss, since manually updating a plugin is safer * done by deleting and reinstalling (see the warning about database backup). - * 2020-12-13T1353+0100 */ public function clear_all() { // Iterate through each Settings Container. diff --git a/class/task.php b/class/task.php index d895f27..b272245 100644 --- a/class/task.php +++ b/class/task.php @@ -6,8 +6,6 @@ * @package footnotes * @since 1.5.0 * - * @lastmodified 2021-02-20T0438+0100 - * * @since 2.0.0 Bugfix: various. * @since 2.0.4 Bugfix: Referrers and backlinks: remove hard links to streamline browsing history, thanks to @theroninjedi47 bug report. * @since 2.0.5 Bugfix: Reference container: fix relative position through priority level, thanks to @june01 @imeson @spaceling bug reports, thanks to @spaceling code contribution. @@ -16,7 +14,7 @@ * @since 2.0.6 Bugfix: Priority level back to PHP_INT_MAX (ref container positioning not this plugin’s responsibility). * @since 2.0.6 Bugfix: Reference container: fix line breaking behavior in footnote number clusters. * @since 2.0.7 BUGFIX: Hooks: Default-disable 'the_post', thanks to @spaceling @markcheret @nyamachi @whichgodsaves @spiralofhope2 @mmallett @andreasra @widecast @ymorin007 @tashi1es bug reports. - * @since 2.0.9 Bugfix: Remove the_post hook 2020-11-08T1839+0100. + * @since 2.0.9 Bugfix: Remove the_post hook. * @since 2.1.0 Adding: Tooltips: Read-on button: Label: configurable instead of localizable, thanks to @rovanov example provision. * @since 2.1.1 Bugfix: Referrers, reference container: Combining identical footnotes: fix dead links and ensure referrer-backlink bijectivity, thanks to @happyches bug report. * @since 2.1.1 Bugfix: Reference container: fix start pages by making its display optional, thanks to @dragon013 bug report. @@ -149,7 +147,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/reset-footnotes-to-1/#post-13662830 * * @since 2.2.9 - * @date 2020-12-25T0338+0100 * @var int Incremented every time after a reference container is inserted. * * This ID disambiguates multiple reference containers in a page @@ -222,7 +219,6 @@ class MCI_Footnotes_Task { * - Bugfix: Scroll offset: make configurable to fix site-dependent issues related to fixed headers. * * @since 2.1.4 - * @date 2020-12-05T0538+0100 * * - Bugfix: Scroll offset: initialize to safer one third window height for more robustness, thanks to @lukashuggenberg bug report. * @@ -230,8 +226,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/2-2-6-breaks-all-footnotes/#post-13857922 * * @since 2.4.0 - * @date 2021-01-03T2055+0100 - * @date 2021-01-04T0504+0100 * @var int * * Websites may use high fixed headers not contracting at scroll. @@ -254,8 +248,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/update-2-1-3/#post-13704194 * * @since 2.1.4 - * @date 2020-11-25T1306+0100 - * @date 2020-11-26T1051+0100 * * - Adding: Referrers and backlinks: optional hard links for AMP compatibility, thanks to @psykonevro issue report, thanks to @martinneumannat issue report and code contribution. * @@ -266,7 +258,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/footnotes-is-not-amp-compatible/ * * @since 2.3.0 - * @date 2020-12-30T2313+0100 * * Although widely used for that purpose, hyperlinks are disliked for footnote linking. * Browsers may need to be prevented from logging these clicks in the browsing history, @@ -320,7 +311,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/change-tooltip-text/ * * @since 2.5.2 - * @date 2021-01-19T2223+0100 * * Tooltips can display another content than the footnote entry * in the reference container. The trigger is a shortcode in @@ -394,7 +384,6 @@ class MCI_Footnotes_Task { * - Adding: Footnote delimiters: syntax validation for balanced footnote start and end tag short codes. * * @since 2.4.0 - * @date 2021-01-01T0227+0100 * * @var bool * @@ -418,7 +407,7 @@ class MCI_Footnotes_Task { * @since 2.0.5 Update: Hooks: Default-enable all hooks to prevent footnotes from seeming broken in some parts. * @since 2.0.6 Bugfix: Priority level back to PHP_INT_MAX (ref container positioning not this plugin’s responsibility). * @since 2.0.7 BUGFIX: Hooks: Default-disable 'the_post', thanks to @spaceling @markcheret @nyamachi @whichgodsaves @spiralofhope2 @mmallett @andreasra @widecast @ymorin007 @tashi1es bug reports. - * @since 2.0.7 Bugfix: Set priority level back to 10 assuming it is unproblematic 2020-11-06T1344+0100. + * @since 2.0.7 Bugfix: Set priority level back to 10 assuming it is unproblematic. * @since 2.0.8 Bugfix: Priority level back to PHP_INT_MAX (need to get in touch with other plugins). * @since 2.1.0 UPDATE: Hooks: remove 'the_post', the plugin stops supporting this hook. * @since 2.1.1 Bugfix: Dashboard: priority level setting for the_content hook, thanks to @imeson bug report. @@ -468,7 +457,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/#post-13864859 * * @since 2.5.0 - * @date 2021-01-05T1402+0100 * * Category pages can have rich HTML content in a term description with article status. * For this to happen, WordPress’ built-in partial HTML blocker needs to be disabled. @@ -485,7 +473,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/footnotes-use-in-popup-maker/ * * @since 2.5.1 - * @date 2021-01-18T2038+0100 */ add_filter( 'pum_popup_content', array( $this, 'footnotes_in_content' ), $l_int_the_content_priority ); } @@ -561,7 +548,6 @@ class MCI_Footnotes_Task { * - UPDATE: Hooks: remove 'the_post', the plugin stops supporting this hook. * * @since 2.1.0 - * @date 2020-11-08T1839+0100 * @accountable @pewgeuges */ @@ -617,7 +603,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/in-line-superscript-ref-rides-to-high/ * * @since 2.5.4 - * @date 2021-02-12T1631+0100 * * Cannot be included in external stylesheet, as it is only optional. * The scope is variable too: referrers only, or all superscript elements. @@ -675,8 +660,7 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/how-do-i-eliminate-the-horizontal-line-beneath-the-reference-container-heading/ * * @since 2.2.5 - * @date 2020-12-18T1447+0100 - */ + */ if ( MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER ) ) ) { echo '.footnote_container_prepare > '; echo MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_LABEL_ELEMENT ); @@ -692,7 +676,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/borders-25/ * * @since 2.2.10 - * @date 2020-12-25T2304+0100 * Moving this internal CSS to external using `wp_add_inline_style()` is * discouraged, because that screws up support, and it is pointless from * a performance point of view. Moreover, that would cause cache busting @@ -788,7 +771,6 @@ class MCI_Footnotes_Task { * - Bugfix: Styling: Tooltips: fix font size issue by adding font size to settings with legacy as default. * * @since 2.1.4 - * @date 2020-12-03T0954+0100 */ echo ' font-size: '; if ( MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_MOUSE_OVER_BOX_FONT_SIZE_ENABLED ) ) ) { @@ -855,12 +837,10 @@ class MCI_Footnotes_Task { * - Bugfix: Tooltips: make display delays and fade durations configurable to conform to website style. * * @since 2.1.4 - * @date 2020-12-06T1320+0100 * * - Update: Tooltips: Alternative tooltips: connect to position/timing settings (for themes not supporting jQuery tooltips). * * @since 2.2.5 - * @date 2020-12-18T1113+0100 */ if ( ! MCI_Footnotes::$a_bool_alternative_tooltips_enabled && ! MCI_Footnotes::$a_bool_amp_enabled ) { @@ -954,7 +934,7 @@ class MCI_Footnotes_Task { * Alternative tooltips. * * To streamline internal CSS, immutable rules are in external stylesheet. - * + * * @see dev-tooltips-alternative.css. */ } else { @@ -978,7 +958,6 @@ class MCI_Footnotes_Task { * - Bugfix: Custom CSS: insert new CSS in the public page header element after existing CSS. * * @since 2.2.3 - * @date 2020-12-15T1128+0100 * * Set custom CSS to override settings, not conversely. * Legacy Custom CSS is used until it’s set to disappear after dashboard tab migration. @@ -1029,7 +1008,6 @@ class MCI_Footnotes_Task { * * @since 1.5.0 * @since 2.2.0 More options. - * @date 2020-12-11T0506+0100 */ public function footnotes_output_footer() { if ( 'footer' === MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION ) ) { @@ -1355,7 +1333,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/reference-container-in-elementor/ * * @since 2.2.0 - * @date 2020-12-13T2057+0100 * * - Bugfix: Reference container: delete position shortcode if unused because position may be widget or footer, thanks to @hamshe bug report. * @@ -1363,7 +1340,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/reference-container-in-elementor/#post-13784126 * * @since 2.2.5 - * @date 2020-12-18T1434+0100 */ // Append the reference container or insert at shortcode. $l_str_reference_container_position_shortcode = MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE ); @@ -1522,7 +1498,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/ * * @since 2.5.0 - * @date 2021-01-07T0824+0100 * If footnotes short codes are unbalanced, and syntax validation is not disabled, * prepend a warning to the content; displays de facto beneath the post title. */ @@ -1779,13 +1754,11 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/footnotes-on-mobile-phones/ * * @since 2.1.3 - * @date 2020-11-23 - * + * * - Bugfix: Reference container, tooltips: fix line wrapping of URLs (hyperlinked or not) based on pattern, not link element. * * @since 2.1.4 - * @date 2020-11-25T0837+0100 - * @link https://wordpress.org/support/topic/footnotes-on-mobile-phones/#post-13710682 + * @link https://wordpress.org/support/topic/footnotes-on-mobile-phones/#post-13710682 * * - Bugfix: Reference container, tooltips: URL wrap: exclude image source too, thanks to @bjrnet21 bug report. * @@ -1800,23 +1773,20 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/broken-layout-starting-version-2-1-4/ * * @since 2.1.6 - * @date 2020-12-09T1921+0100 - * - * Even ARIA labels may take a URL as value, so use \w=[\'"] as a catch-all 2020-12-10T1005+0100 + * + * Even ARIA labels may take a URL as value, so use \w=[\'"] as a catch-all * * - Bugfix: Dashboard: URL wrap: add option to properly enable/disable URL wrap. * * @since 2.1.6 - * @date 2020-12-09T1606+0100 - * + * * - Bugfix: Reference container, tooltips: URL wrap: make the quotation mark optional wrt query parameters, thanks to @spiralofhope2 bug report. * * @reporter @spiralofhope2 * @link https://wordpress.org/support/topic/two-links-now-breaks-footnotes-with-blogtext/ * * @since 2.2.6 - * @date 2020-12-23T0409+0100 - * + * * - Bugfix: Reference container, tooltips: URL wrap: remove a bug introduced in the regex, thanks to @rjl20 @spaceling @lukashuggenberg @klusik @friedrichnorth @bernardzit bug reports. * * @reporter @rjl20 @@ -1838,38 +1808,32 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/footnotes-dont-show-after-update-to-2-2-6/#post-13826029 * * @since 2.2.7 - * @date 2020-12-23T1046+0100 - * + * * - Bugfix: Reference container, tooltips: URL wrap: correctly make the quotation mark optional wrt query parameters, thanks to @spiralofhope2 bug report. * * @reporter @spiralofhope2 * @link https://wordpress.org/support/topic/two-links-now-breaks-footnotes-with-blogtext/ * * @since 2.2.8 - * @date 2020-12-23T1107+0100 - * Correct is duplicating the negative lookbehind w/o quotes: '(?get( MCI_Footnotes_Settings::C_STR_FOOTNOTES_TOOLTIP_READON_LABEL ); @@ -2055,7 +2017,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/wp_debug-php-notice/ * * @since 2.4.0 - * @date 2021-01-04T1622+0100 * If no hyperlink nor offset anchor is needed, initialize as empty. */ $l_str_footnote_link_argument = ''; @@ -2267,7 +2228,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/update-2-1-3/#post-13704194 * * @since 2.1.4 - * @date 2020-11-28T1048+0100 * Initially an appended comma was hard-coded in this algorithm for enumerations. * The comma in enumerations is not universally preferred. */ @@ -2338,7 +2298,6 @@ class MCI_Footnotes_Task { * - Bugfix: Reference container: Backlinks: fix stacked enumerations by adding optional line breaks. * * @since 2.1.4 - * @date 2020-11-28T1049+0100 * * The backlinks of combined footnotes are generally preferred in an enumeration. * But when few footnotes are identical, stacking the items in list form is better. @@ -2362,8 +2321,7 @@ class MCI_Footnotes_Task { * - Bugfix: Reference container: option to restore pre-2.0.0 layout with the backlink symbol in an extra column. * * @since 2.1.1 - * @date 2020-11-16T2024+0100 - */ + */ $l_bool_combine_identical_footnotes = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_COMBINE_IDENTICAL_FOOTNOTES ) ); // AMP compatibility requires a full set of AMP compatible table row templates. @@ -2431,7 +2389,6 @@ class MCI_Footnotes_Task { * - Bugfix: Reference container: option to append symbol (prepended by default), thanks to @spaceling code contribution. * * @since 2.1.1 - * @date 2020-11-16T2024+0100 * * @contributor @spaceling * @link https://wordpress.org/support/topic/change-the-position-5/#post-13615994 @@ -2440,7 +2397,6 @@ class MCI_Footnotes_Task { * - Bugfix: Reference container: Backlink symbol: support for appending when combining identicals is on. * * @since 2.1.4 - * @date 2020-11-26T1633+0100 */ $l_bool_symbol_switch = MCI_Footnotes_Convert::to_bool( MCI_Footnotes_Settings::instance()->get( MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH ) ); @@ -2530,7 +2486,6 @@ class MCI_Footnotes_Task { * @link https://wordpress.org/support/topic/custom-css-for-jumbled-references/ * * @since 2.1.1 - * @date 2020-11-14T2233+0100 * Prepare to have single footnotes, where the click event and * optional hard link need to be set to cover the table cell, * for better usability and UX. @@ -2563,7 +2518,7 @@ class MCI_Footnotes_Task { /* * The click event goes in the table cell if footnote remains single. */ - // Reverted wrong linting 2021-03-20T0032+0100. + // Reverted wrong linting. $l_str_backlink_event = ' onclick="footnote_moveToAnchor_'; $l_str_backlink_event .= self::$a_int_post_id; @@ -2642,7 +2597,7 @@ class MCI_Footnotes_Task { $l_str_footnote_backlinks .= ' class="footnote_backlink"'; - // Reverted wrong linting 2021-03-20T0032+0100. + // Reverted wrong linting. $l_str_footnote_backlinks .= ' onclick="footnote_moveToAnchor_'; $l_str_footnote_backlinks .= self::$a_int_post_id; @@ -2746,7 +2701,6 @@ class MCI_Footnotes_Task { * @reporter @lukashuggenberg * * @since 2.4.0 - * @date 2021-01-04T0504+0100 * Themes may drop-cap a first letter of initial paragraphs, like this label. * In case of empty label that would apply to the left half button character. * Hence the point in setting an empty label to U+202F NARROW NO-BREAK SPACE. diff --git a/class/template.php b/class/template.php index 1e68163..7bf970f 100644 --- a/class/template.php +++ b/class/template.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 10:58 * * @since 2.2.6 Adding: Templates: support for custom templates in sibling folder, thanks to @misfist issue report. * @since 2.5.0 Adding: Templates: Enable template location stack, thanks to @misfist issue report and code contribution. @@ -71,7 +70,6 @@ class MCI_Footnotes_Template { * - Adding: Templates: support for custom templates in sibling folder, thanks to @misfist issue report. * * @since 2.2.6 - * @date 2020-12-19T0606+0100 * * @reporter @misfist * @link https://wordpress.org/support/topic/template-override-filter/ diff --git a/class/widgets/base.php b/class/widgets/base.php index 6618f28..d45e234 100644 --- a/class/widgets/base.php +++ b/class/widgets/base.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 14:30 * * @since 1.6.4 Update: replace deprecated function WP_Widget() with recommended __construct(), thanks to @dartiss code contribution. */ diff --git a/class/widgets/reference-container.php b/class/widgets/reference-container.php index 9a9a137..082b90f 100644 --- a/class/widgets/reference-container.php +++ b/class/widgets/reference-container.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 14:26 */ /** @@ -41,7 +40,7 @@ class MCI_Footnotes_Widget_Reference_Container extends MCI_Footnotes_Widget_Base * @since 1.5.0 * @return string * - * Edit: curly quotes 2.2.0 2020-12-12T2130+0100 + * Edit: curly quotes 2.2.0 */ protected function get_description() { return __( 'The widget defines the position of the reference container if set to “widget area”.', 'footnotes' ); @@ -54,7 +53,7 @@ class MCI_Footnotes_Widget_Reference_Container extends MCI_Footnotes_Widget_Base * @param mixed $instance The instance of the widget. * @return void * - * Edit: curly quotes 2.2.0 2020-12-12T2130+0100 + * Edit: curly quotes 2.2.0 */ public function form( $instance ) { echo __( 'The widget defines the position of the reference container if set to “widget area”.', 'footnotes' ); diff --git a/class/wysiwyg.php b/class/wysiwyg.php index 6ee2c11..3579e3c 100644 --- a/class/wysiwyg.php +++ b/class/wysiwyg.php @@ -5,7 +5,6 @@ * @filesource * @package footnotes * @since 1.5.0 - * @date 14.09.14 17:30 */ /** diff --git a/css/dev-common.css b/css/dev-common.css index 332d90c..712a4c9 100644 --- a/css/dev-common.css +++ b/css/dev-common.css @@ -21,7 +21,6 @@ * @link https://wordpress.org/support/topic/simply-speed-optimisation/ * * @since 2.5.5 - * @date 2021-02-14T1543+0100 * * Six development stylesheets are concatenated to 12 unified stylesheets. * The unminified development stylesheets are distributed for reference. diff --git a/css/dev-layout-entry-content.css b/css/dev-layout-entry-content.css index d33feb9..491b025 100644 --- a/css/dev-layout-entry-content.css +++ b/css/dev-layout-entry-content.css @@ -9,11 +9,9 @@ * * Since v2.1.4 of Footnotes * - * Modified for 2.2.2 2020-12-15T1004+0100 - * Modified for 2.2.5 2020-12-16T1321+0100 - * Modified for 2.3.0 2020-12-29T0207+0100 - * - * Last modified: 2020-12-29T0210+0100 + * Modified for 2.2.2 + * Modified for 2.2.5 + * Modified for 2.3.0 * * The enqueuing of this stylesheet is optional and can be * enabled in the dashboard under General settings > diff --git a/css/dev-layout-main-content.css b/css/dev-layout-main-content.css index 6eb75f8..f3498b4 100644 --- a/css/dev-layout-main-content.css +++ b/css/dev-layout-main-content.css @@ -9,8 +9,7 @@ * * Since v2.1.4 of Footnotes * - * Last modified for v2.2.2 2020-12-15T1004+0100 - * Last modified for v2.2.4 2020-12-16T0625+0100 + * Last modified for v2.2.4 * * The enqueuing of this stylesheet is optional and can be * enabled in the Reference container settings. diff --git a/css/dev-layout-reference-container.css b/css/dev-layout-reference-container.css index 78021e1..8768559 100644 --- a/css/dev-layout-reference-container.css +++ b/css/dev-layout-reference-container.css @@ -9,7 +9,7 @@ * * Since v2.1.4 of Footnotes * - * Last modified for v2.2.4 2020-12-16T0624+0100 + * Last modified for v2.2.4 * * The enqueuing of this stylesheet is optional and can be * enabled in the Reference container settings. diff --git a/css/dev-tooltips.css b/css/dev-tooltips.css index fdd2a6f..d8b5ee4 100644 --- a/css/dev-tooltips.css +++ b/css/dev-tooltips.css @@ -1,15 +1,8 @@ /*").attr("id",j.maskId),a("body").append(e));var l=c();return e.css({position:"absolute",top:0,left:0,width:l[0],height:l[1],display:"none",opacity:j.startOpacity,zIndex:j.zIndex}),j.color&&e.css("backgroundColor",j.color),!1===d(j.onBeforeLoad)?this:(j.closeOnEsc&&a(document).on("keydown.mask",(function(b){27===b.keyCode&&a.mask.close(b)})),j.closeOnClick&&e.on("click.mask",(function(b){a.mask.close(b)})),a(window).on("resize.mask",(function(){a.mask.fit()})),k&&k.length&&(i=k.eq(0).css("zIndex"),a.each(k,(function(){var b=a(this);/relative|absolute|fixed/i.test(b.css("position"))||b.css("position","relative")})),f=k.css({zIndex:Math.max(j.zIndex+1,"auto"===i?0:i)})),e.css({display:"block"}).fadeTo(j.loadSpeed,j.opacity,(function(){a.mask.fit(),d(j.onLoad),g="full"})),g=!0,this)},close:function(){if(g){if(!1===d(h.onBeforeClose))return this;e.fadeOut(h.closeSpeed,(function(){d(h.onClose),f&&f.css({zIndex:i}),g=!1})),a(document).off("keydown.mask"),e.off("click.mask"),a(window).off("resize.mask")}return this},fit:function(){if(g){var a=c();e.css({width:a[0],height:a[1]})}},getMask:function(){return e},isLoaded:function(a){return a?"full"===g:g},getConf:function(){return h},getExposed:function(){return f}},a.fn.mask=function(b){return a.mask.load(b),this},a.fn.expose=function(b){return a.mask.load(b,this),this}}(jQuery),function(){var a=document.all,b="http://www.adobe.com/go/getflashplayer",c="function"===typeof jQuery,d=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,e={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};function f(a,b){if(b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function g(a,b){var c=[];for(var d in a)a.hasOwnProperty(d)&&(c[d]=b(a[d]));return c}window.attachEvent&&window.attachEvent("onbeforeunload",(function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}})),window.flashembed=function(a,b,c){if("string"===typeof a&&(a=document.getElementById(a.replace("#",""))),a)return"string"===typeof b&&(b={src:b}),new j(a,f(f({},e),b),c)};var h=f(window.flashembed,{conf:e,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(c){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&a.GetVariable("$version")}catch(e){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&a.GetVariable("$version")}catch(f){}}}return(b=d.exec(b))?[b[1],b[3]]:[0,0]},asString:function(a){if(null===a)return null;var b=typeof a;switch("object"===b&&a.push&&(b="array"),b){case"string":return'"'+(a=(a=a.replace(new RegExp('(["\\\\])',"g"),"\\$1")).replace(/^\s?(\d+\.?\d*)%/,"$1pct"))+'"';case"array":return"["+g(a,(function(a){return h.asString(a)})).join(",")+"]";case"function":return'"function()"';case"object":var c=[];for(var d in a)a.hasOwnProperty(d)&&c.push('"'+d+'":'+h.asString(a[d]));return"{"+c.join(",")+"}"}return String(a).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(b,c){var d=''),b.width=b.height=b.id=b.w3c=b.src=null,b.onFail=b.version=b.expressInstall=null,b)b[e]&&(d+='');var g="";if(c){for(var i in c)if(c[i]){var j=c[i];g+=i+"="+encodeURIComponent(/function|object/.test(typeof j)?h.asString(j):j)+"&"}d+='"}return d+=""},isSupported:function(a){return i[0]>a[0]||i[0]===a[0]&&i[1]>=a[1]}}),i=h.getVersion();function j(c,d,e){if(h.isSupported(d.version))c.innerHTML=h.getHTML(d,e);else if(d.expressInstall&&h.isSupported([6,65]))c.innerHTML=h.getHTML(f(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else if(c.innerHTML.replace(/\s/g,"")||(c.innerHTML="

Flash version "+d.version+" or greater is required

"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"

"+("A"===c.tagName?"

Click here to download latest version

":"

Download latest version from here

"),"A"===c.tagName&&(c.onclick=function(){location.href=b})),d.onFail){var g=d.onFail.call(this);"string"===typeof g&&(c.innerHTML=g)}a&&(window[d.id]=document.getElementById(d.id)),f(this,{getRoot:function(){return c},getOptions:function(){return d},getConf:function(){return e},getApi:function(){return c.firstChild}})}c&&(jQuery.tools=jQuery.tools||{version:"v1.2.7"},jQuery.tools.flashembed={conf:e},jQuery.fn.flashembed=function(a,b){return this.each((function(){jQuery(this).data("flashembed",flashembed(this,a,b))}))})}(),function(a){var b,c,d,e;function f(a){if(a){var b=c.contentWindow.document;b.open().close(),b.location.hash=a}}a.tools=a.tools||{version:"v1.2.7"},a.tools.history={init:function(g){e||(setInterval((function(){var c=location.hash;c!==b&&a(window).trigger("hash",c)}),100),d=d?d.add(g):g,g.click((function(b){var d=a(this).attr("href");if("#"!=d.slice(0,1))return location.href="#"+d,b.preventDefault()})),e=!0)}},a(window).on("hash",(function(c,e){e?d.filter((function(){var b=a(this).attr("href");return b===e||b===e.replace("#","")})).trigger("history",[e]):d.eq(0).trigger("history",[e]),b=e})),a.fn.history=function(b){return a.tools.history.init(this),this.on("history",b)}}(jQuery),function(a){a.fn.mousewheel=function(a){return this[a?"on":"trigger"]("wheel",a)},a.event.special.wheel={setup:function(){a.event.add(this,b,c,{})},teardown:function(){a.event.remove(this,b,c)}};var b="mousewheel";function c(b){switch(b.type){case"mousemove":return a.extend(b.data,{clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY});case"DOMMouseScroll":a.extend(b,b.data),b.delta=-b.detail/3;break;case"mousewheel":b.delta=b.wheelDelta/120}return b.type="wheel",a.event.handle.call(this,b,b.delta)}}(jQuery),function(a){a.tools=a.tools||{version:"v1.2.7"},a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"
",tipClass:"tooltip"},addEffect:function(a,c,d){b[a]=[c,d]}};var b={toggle:[function(a){var b=this.getConf(),c=this.getTip(),d=b.opacity;d<1&&c.css({opacity:d}),c.show(),a.call()},function(a){this.getTip().hide(),a.call()}],fade:[function(b){var c=this.getConf();this.getTip().fadeTo(c.fadeInSpeed,c.opacity,b)},function(b){var c=this.getConf();this.getTip().fadeOut(c.fadeOutSpeed,b)}]};function c(b,c,d){var e=d.relative?b.position().top:b.offset().top,f=d.relative?b.position().left:b.offset().left,g=d.position[0];e-=c.outerHeight()-d.offset[0],f+=b.outerWidth()+d.offset[1],/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var h=c.outerHeight()+b.outerHeight();"center"===g&&(e+=h/2),"bottom"===g&&(e+=h),g=d.position[1];var i=c.outerWidth()+b.outerWidth();return"center"===g&&(f-=i/2),"left"===g&&(f-=i),{top:e,left:f}}function d(d,e){var f=this,g=d.add(f),h,i=0,j=0,k=d.attr("title"),l=d.attr("data-tooltip"),m=b[e.effect],n,o=d.is(":input"),p=o&&d.is(":checkbox, :radio, select, :button, :submit"),q=d.attr("type"),r=e.events[q]||e.events[o?p?"widget":"input":"def"];if(!m)throw'Nonexistent effect "'+e.effect+'"';if(2!=(r=r.split(/,\s*/)).length)throw"Tooltip: bad events configuration for "+q;d.on(r[0],(function(a){clearTimeout(i),e.predelay?j=setTimeout((function(){f.show(a)}),e.predelay):f.show(a)})).on(r[1],(function(a){clearTimeout(j),e.delay?i=setTimeout((function(){f.hide(a)}),e.delay):f.hide(a)})),k&&e.cancelDefault&&(d.removeAttr("title"),d.data("title",k)),a.extend(f,{show:function(b){if(!h&&(l?h=a(l):e.tip?h=a(e.tip).eq(0):k?h=a(e.layout).addClass(e.tipClass).appendTo(document.body).hide().append(k):(h=d.next()).length||(h=d.parent().next()),!h.length))throw"Cannot find tooltip for "+d;if(f.isShown())return f;h.stop(!0,!0);var o=c(d,h,e);if(e.tip&&h.html(d.data("title")),(b=a.Event()).type="onBeforeShow",g.trigger(b,[o]),b.isDefaultPrevented())return f;o=c(d,h,e),h.css({position:"absolute",top:o.top,left:o.left}),n=!0,m[0].call(f,(function(){b.type="onShow",n="full",g.trigger(b)}));var p=e.events.tooltip.split(/,\s*/);return h.data("__set")||(h.off(p[0]).on(p[0],(function(){clearTimeout(i),clearTimeout(j)})),p[1]&&!d.is("input:not(:checkbox, :radio), textarea")&&h.off(p[1]).on(p[1],(function(a){a.relatedTarget!=d[0]&&d.trigger(r[1].split(" ")[0])})),e.tip||h.data("__set",!0)),f},hide:function(c){return h&&f.isShown()?((c=a.Event()).type="onBeforeHide",g.trigger(c),c.isDefaultPrevented()?void 0:(n=!1,b[e.effect][1].call(f,(function(){c.type="onHide",g.trigger(c)})),f)):f},isShown:function(a){return a?"full"===n:n},getConf:function(){return e},getTip:function(){return h},getTrigger:function(){return d}}),a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),(function(b,c){typeof(e[c])==="function"&&a(f).on(c,e[c]),f[c]=function(b){return b&&a(f).on(c,b),f}}))}a.fn.tooltip=function(b){var c=this.data("tooltip");return c||("string"===typeof(b=a.extend(!0,{},a.tools.tooltip.conf,b)).position&&(b.position=b.position.split(/,?\s/)),this.each((function(){c=new d(a(this),b),a(this).data("tooltip",c)})),b.api?c:this)}}(jQuery),function(a){var b=a.tools.tooltip;function c(b){var c=a(window),d=c.width()+c.scrollLeft(),e=c.height()+c.scrollTop();return[b.offset().top<=c.scrollTop(),d<=b.offset().left+b.width(),e<=b.offset().top+b.height(),c.scrollLeft()>=b.offset().left]}function d(a){for(var b=a.length;b--;)if(a[b])return!1;return!0}b.dynamic={conf:{classNames:"top right bottom left"}},a.fn.dynamic=function(e){"number"===typeof e&&(e={speed:e}),e=a.extend({},b.dynamic.conf,e);var f=a.extend(!0,{},e),g=e.classNames.split(/\s/),h;return this.each((function(){var b=a(this).tooltip().onBeforeShow((function(b,e){var i=this.getTip(),j=this.getConf();h||(h=[j.position[0],j.position[1],j.offset[0],j.offset[1],a.extend({},j)]),a.extend(j,h[4]),j.position=[h[0],h[1]],j.offset=[h[2],h[3]],i.css({visibility:"hidden",position:"absolute",top:e.top,left:e.left}).show();var k=a.extend(!0,{},f),l=c(i);d(l)||(l[2]&&(a.extend(j,k.top),j.position[0]="top",i.addClass(g[0])),l[3]&&(a.extend(j,k.right),j.position[1]="right",i.addClass(g[1])),l[0]&&(a.extend(j,k.bottom),j.position[0]="bottom",i.addClass(g[2])),l[1]&&(a.extend(j,k.left),j.position[1]="left",i.addClass(g[3])),(l[0]||l[2])&&(j.offset[0]*=-1),(l[1]||l[3])&&(j.offset[1]*=-1)),i.css({visibility:"visible"}).hide()}));b.onBeforeShow((function(){var a=this.getConf(),b=this.getTip();setTimeout((function(){a.position=[h[0],h[1]],a.offset=[h[2],h[3]]}),0)})),b.onHide((function(){var a;this.getTip().removeClass(e.classNames)})),ret=b})),e.api?ret:this}}(jQuery),function(a){var b=a.tools.tooltip;a.extend(b.conf,{direction:"up",bounce:!1,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!0});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.addEffect("slide",(function(a){var b=this.getConf(),d=this.getTip(),e=b.slideFade?{opacity:b.opacity}:{},f=c[b.direction]||c.up;e[f[1]]=f[0]+"="+b.slideOffset,b.slideFade&&d.css({opacity:0}),d.show().animate(e,b.slideInSpeed,a)}),(function(b){var d=this.getConf(),e=d.slideOffset,f=d.slideFade?{opacity:0}:{},g=c[d.direction]||c.up,h=""+g[0];d.bounce&&(h="+"===h?"-":"+"),f[g[1]]=h+"="+e,this.getTip().animate(f,d.slideOutSpeed,(function(){a(this).hide(),b.call()}))}))}(jQuery); diff --git a/js/wysiwyg-editor.js b/js/wysiwyg-editor.js index 89ff9a8..c54c7b3 100644 --- a/js/wysiwyg-editor.js +++ b/js/wysiwyg-editor.js @@ -1,7 +1,7 @@ /** * Created by Stefan on 24.05.14. * - * Edit: be careful to maintain version number near EOF 2020-12-11T1225+0100 + * Edit: be careful to maintain version number near EOF */ (function() { @@ -60,7 +60,7 @@ * * @return {Object} Name/value array containing information about the plugin. * - * Edit: needs updating the version number manually 2020-12-11T1224+0100 + * Edit: needs updating the version number manually */ getInfo : function() { return {