diff --git a/class/init.php b/class/init.php index b08f45c..f0cb3ec 100644 --- a/class/init.php +++ b/class/init.php @@ -140,7 +140,7 @@ class MCI_Footnotes { // : // This was enabled in Footnotes v2.0.0 through v2.0.3. // Re-added for 2.0.9d1 / 2.1.1d0 to look whether it can fix a broken tooltip display. 2020-11-07T1601+0100/2020-11-08T2246+0100 - wp_register_script( 'jQueryUI', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', null, null, true ); + wp_register_script( 'jQueryUI', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js', null, null, false ); // in header 2020-11-09T2003+0100 wp_enqueue_script( 'jQueryUI' ); // Add jQuery Tools and finish adding jQueryUI: 2020-11-08T1638+0100/2020-11-08T2246+0100 @@ -154,7 +154,7 @@ class MCI_Footnotes { 'mci-footnotes-css-public', plugins_url('../css/public.css', __FILE__), '', - '2.1.1d0' + '2.1.1d1' ); } diff --git a/class/task.php b/class/task.php index 90648b4..e5abbfa 100644 --- a/class/task.php +++ b/class/task.php @@ -258,17 +258,17 @@ class MCI_Footnotes_Task { * @since 1.5.4 * @param array|WP_Post $p_mixed_Posts */ -// public function the_post(&$p_mixed_Posts) { -// // single WP_Post object received -// if (!is_array($p_mixed_Posts)) { -// $p_mixed_Posts = $this->replacePostObject($p_mixed_Posts); -// return; -// } -// // array of WP_Post objects received -// for($l_int_Index = 0; $l_int_Index < count($p_mixed_Posts); $l_int_Index++) { -// $p_mixed_Posts[$l_int_Index] = $this->replacePostObject($p_mixed_Posts[$l_int_Index]); -// } -// } + public function the_post(&$p_mixed_Posts) { + // single WP_Post object received + if (!is_array($p_mixed_Posts)) { + $p_mixed_Posts = $this->replacePostObject($p_mixed_Posts); + return; + } + // array of WP_Post objects received + for($l_int_Index = 0; $l_int_Index < count($p_mixed_Posts); $l_int_Index++) { + $p_mixed_Posts[$l_int_Index] = $this->replacePostObject($p_mixed_Posts[$l_int_Index]); + } + } /** * Replace all Footnotes in a WP_Post object. diff --git a/css/public.css b/css/public.css index a646577..ecd132b 100755 --- a/css/public.css +++ b/css/public.css @@ -4,17 +4,17 @@ * Created-Date: 15.05.14 * Created-Time: 16:21 * Since: 1.0 - * Version: 2.1.1d0 + * Version: 2.1.1d1 * - * Last modified: 2020-11-08T2243+0100 + * Last modified: 2020-11-09T1948+0100 */ -/* MCI Footnotes logo - * - * The classes with 'heading' fix display in dashboard - * See class/config.php and css/settings.css - */ +/* +MCI Footnotes logo +The classes with 'heading' fix display in dashboard +See class/config.php and css/settings.css +*/ .footnotes_logo, .footnotes_logo:hover, @@ -32,30 +32,33 @@ } /* - * Inline footnote referrers - * aka superscript footnote anchors - * - * referrer and surroundings: - * .footnote_referrer = enclosing - * .footnote_plugin_tooltip_text = inner +Inline footnote referrers +aka superscript footnote anchors + +referrer and surroundings: + .footnote_referrer = enclosing + .footnote_plugin_tooltip_text = inner */ - .footnote_referrer, - .main-content .footnote_referrer, - .footnote_plugin_tooltip_text { - text-decoration: none !important; - border-bottom: none !important; - cursor: pointer; - z-index: 1; - } - .footnote_referrer:hover, +.footnote_referrer, +.footnote_referrer:link, +.main-content .footnote_referrer, +.main-content .footnote_referrer:link, +.footnote_plugin_tooltip_text { + text-decoration: none !important; + border-bottom: none !important; + cursor: pointer; + z-index: 1; +} +.footnote_referrer:hover, .footnote_plugin_tooltip_text:hover { text-decoration: underline; font-weight: inherit; } -/* tooltip infobox - */ +/* +tooltip infobox +*/ span.footnote_tooltip { font-size: inherit; text-align: left; @@ -74,11 +77,13 @@ span.footnote_tooltip { } /* - * Footnote references container - */ +Footnote references container +reference-container.html +*/ -/* label - */ +/* +label +*/ .footnote_container_prepare { display: block !important; padding-top: 24px !important; @@ -105,32 +110,32 @@ span.footnote_tooltip { font-size: 1.5em !important; } -/* collapse button -/* fully clickable, not sign only - */ +/* +collapse button +fully clickable, not sign only +*/ .footnote_reference_container_collapse_button { cursor: pointer; padding-left: .5em; - font-size: 1.3em !important; - vertical-align: 2px; + font-size: 1.3em !important; + vertical-align: 2px; } .footnote_container_prepare > p > span:last-child a { text-decoration: none !important; } -/* table - */ +/* +table +*/ .footnote-reference-container { width: 100%; border: none; } -/* footnotes - * class footnote_plugin_link is for backcompat. - * Used in reference-container-body.html - * See - */ -.footnote_plugin_link, +/* +footnotes +reference-container-body.html +*/ .footnote_plugin_index, .footnote_plugin_text { border:none !important; @@ -138,9 +143,12 @@ span.footnote_tooltip { vertical-align: top !important; padding: 10px 6px 5px 0 !important; } -.footnote_plugin_index a, -.footnote_plugin_text a { +.footnote_plugin_link, +.footnote_plugin_link:link, +.main-content .footnote_plugin_link, +.main-content .footnote_plugin_link:link { text-decoration: none !important; + border-bottom: none !important; } .footnote_plugin_index:hover, .footnote_plugin_text a:hover { @@ -164,7 +172,9 @@ span.footnote_tooltip { width: unset; /*unset width of text column to fix site issues*/ } -/* Responsive*/ +/* +Responsive +*/ @media only screen and (max-width: 768px) { .footnote_plugin_index { max-width: 100px; @@ -172,13 +182,13 @@ span.footnote_tooltip { } /* - * Footnotes printing style rules - * - * Printing a table, browsers tend to avoid page breaks, - * but it takes a wrapper to avoid a page break before the table. - * - * UI elements - expand button, arrows - are hidden in print; - * link styling is reverted so as to not gray out referrers/numbers. +Footnotes printing style rules + +Printing a table, browsers tend to avoid page breaks, +but it takes a wrapper to avoid a page break before the table. + +UI elements - expand button, arrows - are hidden in print; +link styling is reverted so as to not gray out referrers/numbers. */ .footnote_container_wrapper { @@ -198,7 +208,7 @@ span.footnote_tooltip { color: inherit; text-decoration: none !important; } - div.post-meta-edit-link-wrapper { /* Edit button in WP2020*/ + div.post-meta-edit-link-wrapper { /*Edit button in WP2020*/ display: none; /*(added as a service)*/ } } diff --git a/footnotes.php b/footnotes.php index 4f0cf0c..07eca78 100755 --- a/footnotes.php +++ b/footnotes.php @@ -4,7 +4,7 @@ Plugin URI: https://wordpress.org/plugins/footnotes/ Description: time to bring footnotes to your website! footnotes are known from offline publishing and everybody takes them for granted when reading a magazine. Author: Mark Cheret - Version: 2.1.1d0 + Version: 2.1.1d1 Author URI: http://cheret.de/plugins/footnotes-2/ Text Domain: footnotes Domain Path: /languages diff --git a/readme.txt b/readme.txt index 05ca59a..b228e79 100755 --- a/readme.txt +++ b/readme.txt @@ -80,15 +80,19 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** == Changelog == += 2.1.1d1 = +- Bugfix: Libraries: jQuery UI: load in header not in footer in case it matters for fixing tooltips +- Bugfix: Layout: Ref container: Footnote numbers: disabled bottom border for theme compatibility + = 2.1.1d0 -- Bugfix: Libraries: Switched jQuery UI to third party to look whether it can fix a broken tooltip display 2020-11-07T1604+0100/2020-11-08T2242+0100 +- Bugfix: Libraries: jQuery UI: switched to third party to look whether it can fix a broken tooltip display 2020-11-07T1604+0100/2020-11-08T2242+0100 = 2.1.0 = - Add: UI: Tooltip: made 'Continue reading' button label customizable - Bugfix: Layout: Footnote referrers: disabled bottom border for theme compatibility - Update: Accessibility: added 'speaker-mute' class to reference container - Bugfix: Settings layout: added named selectors to limit applicability of styles -- UPDATE: DISABLED the_post hook, the plugin stopped supporting this hook +- UPDATE: REMOVED the_post hook, the plugin stopped supporting this hook = 2.0.8 = - BUGFIX: Priority level back to PHP_INT_MAX (need to get in touch with other plugins) @@ -101,7 +105,7 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** = 2.0.6 = - Update: Autoload / infinite scroll support thanks to @docteurfitness -- Bugfix: Layout: Footnote referrers: deleted vertical align tweaks for cross-theme and user agent compatibility +- Bugfix: Layout: Footnote referrers: deleted vertical align tweaks, for cross-theme and user agent compatibility - Bugfix: Layout: Reference container: fixed line break behavior in footnote # clusters - Bugfix: Layout: Reference container: auto-extending column to fit widest, to fix display with short note texts - Bugfix: Layout: Reference container: IDs: slightly increased left padding diff --git a/templates/public/reference-container-body.html b/templates/public/reference-container-body.html index b58a19a..eedad5c 100755 --- a/templates/public/reference-container-body.html +++ b/templates/public/reference-container-body.html @@ -1,10 +1,11 @@ [[arrow-index]][[arrow-index]]