diff --git a/class/init.php b/class/init.php index 86eca9e..cba5582 100644 --- a/class/init.php +++ b/class/init.php @@ -2,17 +2,20 @@ /** * Includes the main Class of the Plugin. * - * IMPORTANT: In registerPublic(), keep plugin version # up to date for cache busting. + * *********************************************************************************************** + * IMPORTANT: In registerPublic() line 134: keep plugin version # up to date for cache busting. * + * *********************************************************************************************** * * @filesource * @author Stefan Herndler * @since 1.5.0 12.09.14 10:56 * + * Edited for v1.6.5: Replaced deprecated function create_function() * Edited for v2.0.0: Added jQueryUI from CDN 2020-10-26T1907+0100 * Edited for v2.0.3: Added style sheet versioning 2020-10-29T1413+0100 * Edited for v2.0.4: Added jQuery UI from WordPress 2020-11-01T1902+0100 * - * Last modified: 2020-11-06T1511+0100 + * Continual update of version number. */ @@ -130,7 +133,7 @@ class MCI_Footnotes { 'mci-footnotes-css-public', plugins_url('../css/public.css', __FILE__), '', - '2.0.8' + '2.0.9d0' ); } diff --git a/css/public.css b/css/public.css index cebe253..eb4b36c 100755 --- a/css/public.css +++ b/css/public.css @@ -4,9 +4,9 @@ * Created-Date: 15.05.14 * Created-Time: 16:21 * Since: 1.0 - * Version: 2.0.8 + * Version: 2.0.9d0 * - * Last modified: 2020-11-06T1511+0100 + * Last modified: 2020-11-07T1424+0100 */ @@ -34,19 +34,21 @@ /* Inline footnote referrers * aka superscript footnote anchors * - * Class footnote_plugin_tooltip_text is the referrer and surroundings + * referrer and surroundings: + * .footnote_referrer = enclosing + * .footnote_plugin_tooltip_text = inner */ +.footnote_referrer, .footnote_plugin_tooltip_text { + text-decoration: none !important; cursor: pointer; z-index: 1; } -.footnote_plugin_tooltip_text { - display: inline-block; - text-decoration: none; -} +.footnote_referrer:hover, .footnote_plugin_tooltip_text:hover { text-decoration: underline; + font-weight: inherit; } /* tooltip infobox */ @@ -102,12 +104,14 @@ span.footnote_tooltip { /* fully clickable, not sign only */ .footnote_reference_container_collapse_button { cursor: pointer; + font-size: 1.2em !important; + padding-left: .5em; } .footnote_container_prepare > p > span:last-child a { text-decoration: none !important; } .footnote_container_prepare > p > span:last-child a:hover { - text-decoration: underline; + text-decoration: underline !important; color: #008800; } @@ -138,7 +142,7 @@ span.footnote_tooltip { text-decoration: underline !important; } .footnote_plugin_index { - cursor: pointer; + cursor: pointer; overflow-wrap: unset; word-wrap: unset; word-wrap: normal !important; @@ -149,7 +153,7 @@ span.footnote_tooltip { overflow: hidden; } .footnote_index_item { - white-space: nowrap; + white-space: nowrap; } .footnote_plugin_text { width: unset; /*unset width of text column to fix site issues*/ @@ -167,10 +171,11 @@ span.footnote_tooltip { * Printing a table, browsers tend to avoid page breaks, * but it takes a wrapper to avoid a page break before the table. * - * UI elements (button, arrows) and link styling are removed. + * UI elements - expand button, arrows - are hidden in print; + * link styling is reverted so as to not gray out referrers/numbers. */ -.footnote_container_overall_wrapper { +.footnote_container_wrapper { page-break-inside: avoid; } diff --git a/css/settings.css b/css/settings.css index 7d86001..05f1e32 100755 --- a/css/settings.css +++ b/css/settings.css @@ -4,8 +4,8 @@ * Created-Date: 15.05.14 * Created-Time: 16:21 * Since: 1.0 - * Version: 2.0.4 - * Last modified: 2020-11-01T0415+0100 + * Version: 2.0.9 + * Last modified: 2020-11-06T2321+0100 */ @@ -41,7 +41,6 @@ input[type=text], input[type=password], textarea, select { padding-left: 8px !important; padding-right: 8px !important; - width: 80% !important; } textarea { diff --git a/footnotes.php b/footnotes.php index eed9552..6e42b1b 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.0.8 + Version: 2.0.9d0 Author URI: http://cheret.de/plugins/footnotes-2/ Text Domain: footnotes Domain Path: /languages diff --git a/readme.txt b/readme.txt index b3f97b9..3167166 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen Requires at least: 3.9 Tested up to: 5.5 Requires PHP: 5.6 -Stable Tag: 2.0.8 +Stable Tag: 2.0.9d0 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -80,11 +80,14 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest** == Changelog == += 2.0.9d0 = +- Bugfix: Layout: Footnote referrers: more efficiently disable underline unless hovered + = 2.0.8 = - BUGFIX: Priority level back to PHP_INT_MAX (need to get in touch with other plugins) = 2.0.7 = -- BUGFIX: Disabled hook "the_post" **Any related code in the plugin shall disappear next** +- BUGFIX: Disabled hook "the_post" **Any related code in the plugin shall disappear** - Update: Set priority level back to 10 assuming it is unproblematic - Update: Added backwards compatible support for legacy arrow and index placeholders in template - Update: Settings defaults adjusted for better and more up-to-date tooltip layout diff --git a/templates/NOTE-FOR-WEBMASTERS.txt b/templates/NOTE-FOR-WEBMASTERS.txt index ca224da..67ba988 100644 --- a/templates/NOTE-FOR-WEBMASTERS.txt +++ b/templates/NOTE-FOR-WEBMASTERS.txt @@ -1,6 +1,7 @@ MCI Footnotes WordPress plugin NOTE FOR WEBMASTERS +‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ Added: 2020-11-06T0424+0100 Last modified: 2020-11-06T0431+0100 @@ -8,12 +9,17 @@ Last modified: 2020-11-06T0431+0100 About the public templates -Template "reference-container-body.html" +## Template "reference-container-body.html" + ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ + > class/task.php(481) + > css/public.css -class/task.php(481) -css/public.css +* Elements: -Supported placeholders: + Present for styling. + + +* Supported placeholders: [[post_id]] makes the footnote ID unique for infinite scroll [[id]] footnote number (1-based integer) diff --git a/templates/public/footnote.html b/templates/public/footnote.html index 6b55a17..421a5df 100755 --- a/templates/public/footnote.html +++ b/templates/public/footnote.html @@ -1,4 +1,5 @@ -
-

+

[[label]]   [[ + ]

+
+ - -
-
[[content]]