development version 2.1.1d1: more bugfixes for Forum User

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2415401 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
pewgeuges 2020-11-09 19:09:54 +00:00
parent 18305dee4f
commit 6c776388c9
6 changed files with 88 additions and 73 deletions

View file

@ -140,7 +140,7 @@ class MCI_Footnotes {
// <https://wordpress.org/support/topic/tooltip-hover-not-showing/#post-13456762>: // <https://wordpress.org/support/topic/tooltip-hover-not-showing/#post-13456762>:
// This was enabled in Footnotes v2.0.0 through v2.0.3. // 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 // 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' ); wp_enqueue_script( 'jQueryUI' );
// Add jQuery Tools and finish adding jQueryUI: 2020-11-08T1638+0100/2020-11-08T2246+0100 // 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', 'mci-footnotes-css-public',
plugins_url('../css/public.css', __FILE__), plugins_url('../css/public.css', __FILE__),
'', '',
'2.1.1d0' '2.1.1d1'
); );
} }

View file

@ -258,17 +258,17 @@ class MCI_Footnotes_Task {
* @since 1.5.4 * @since 1.5.4
* @param array|WP_Post $p_mixed_Posts * @param array|WP_Post $p_mixed_Posts
*/ */
// public function the_post(&$p_mixed_Posts) { public function the_post(&$p_mixed_Posts) {
// // single WP_Post object received // single WP_Post object received
// if (!is_array($p_mixed_Posts)) { if (!is_array($p_mixed_Posts)) {
// $p_mixed_Posts = $this->replacePostObject($p_mixed_Posts); $p_mixed_Posts = $this->replacePostObject($p_mixed_Posts);
// return; return;
// } }
// // array of WP_Post objects received // array of WP_Post objects received
// for($l_int_Index = 0; $l_int_Index < count($p_mixed_Posts); $l_int_Index++) { 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]); $p_mixed_Posts[$l_int_Index] = $this->replacePostObject($p_mixed_Posts[$l_int_Index]);
// } }
// } }
/** /**
* Replace all Footnotes in a WP_Post object. * Replace all Footnotes in a WP_Post object.

View file

@ -4,16 +4,16 @@
* Created-Date: 15.05.14 * Created-Date: 15.05.14
* Created-Time: 16:21 * Created-Time: 16:21
* Since: 1.0 * 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 /*
* MCI Footnotes logo
* The classes with 'heading' fix display in dashboard The classes with 'heading' fix display in dashboard
* See class/config.php and css/settings.css See class/config.php and css/settings.css
*/ */
.footnotes_logo, .footnotes_logo,
@ -32,16 +32,18 @@
} }
/* /*
* Inline footnote referrers Inline footnote referrers
* aka superscript footnote anchors aka superscript footnote anchors
*
* referrer and surroundings: referrer and surroundings:
* .footnote_referrer = enclosing <a> .footnote_referrer = enclosing <a>
* .footnote_plugin_tooltip_text = inner <sup> .footnote_plugin_tooltip_text = inner <sup>
*/ */
.footnote_referrer, .footnote_referrer,
.footnote_referrer:link,
.main-content .footnote_referrer, .main-content .footnote_referrer,
.main-content .footnote_referrer:link,
.footnote_plugin_tooltip_text { .footnote_plugin_tooltip_text {
text-decoration: none !important; text-decoration: none !important;
border-bottom: none !important; border-bottom: none !important;
@ -54,7 +56,8 @@
font-weight: inherit; font-weight: inherit;
} }
/* tooltip infobox /*
tooltip infobox
*/ */
span.footnote_tooltip { span.footnote_tooltip {
font-size: inherit; font-size: inherit;
@ -74,10 +77,12 @@ span.footnote_tooltip {
} }
/* /*
* Footnote references container Footnote references container
reference-container.html
*/ */
/* label /*
label
*/ */
.footnote_container_prepare { .footnote_container_prepare {
display: block !important; display: block !important;
@ -105,8 +110,9 @@ span.footnote_tooltip {
font-size: 1.5em !important; font-size: 1.5em !important;
} }
/* collapse button /*
/* fully clickable, not sign only collapse button
fully clickable, not sign only
*/ */
.footnote_reference_container_collapse_button { .footnote_reference_container_collapse_button {
cursor: pointer; cursor: pointer;
@ -118,19 +124,18 @@ span.footnote_tooltip {
text-decoration: none !important; text-decoration: none !important;
} }
/* table /*
table
*/ */
.footnote-reference-container { .footnote-reference-container {
width: 100%; width: 100%;
border: none; border: none;
} }
/* footnotes /*
* class footnote_plugin_link is for backcompat. footnotes
* Used in reference-container-body.html reference-container-body.html
* See <https://wordpress.org/support/topic/change-the-position-5/#post-13617988>
*/ */
.footnote_plugin_link,
.footnote_plugin_index, .footnote_plugin_index,
.footnote_plugin_text { .footnote_plugin_text {
border:none !important; border:none !important;
@ -138,9 +143,12 @@ span.footnote_tooltip {
vertical-align: top !important; vertical-align: top !important;
padding: 10px 6px 5px 0 !important; padding: 10px 6px 5px 0 !important;
} }
.footnote_plugin_index a, .footnote_plugin_link,
.footnote_plugin_text a { .footnote_plugin_link:link,
.main-content .footnote_plugin_link,
.main-content .footnote_plugin_link:link {
text-decoration: none !important; text-decoration: none !important;
border-bottom: none !important;
} }
.footnote_plugin_index:hover, .footnote_plugin_index:hover,
.footnote_plugin_text a:hover { .footnote_plugin_text a:hover {
@ -164,7 +172,9 @@ span.footnote_tooltip {
width: unset; /*unset width of text column to fix site issues*/ width: unset; /*unset width of text column to fix site issues*/
} }
/* Responsive*/ /*
Responsive
*/
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
.footnote_plugin_index { .footnote_plugin_index {
max-width: 100px; max-width: 100px;
@ -172,13 +182,13 @@ span.footnote_tooltip {
} }
/* /*
* Footnotes printing style rules Footnotes printing style rules
*
* Printing a table, browsers tend to avoid page breaks, Printing a table, browsers tend to avoid page breaks,
* but it takes a wrapper to avoid a page break before the table. but it takes a wrapper to avoid a page break before the table.
*
* UI elements - expand button, arrows - are hidden in print; UI elements - expand button, arrows - are hidden in print;
* link styling is reverted so as to not gray out referrers/numbers. link styling is reverted so as to not gray out referrers/numbers.
*/ */
.footnote_container_wrapper { .footnote_container_wrapper {

View file

@ -4,7 +4,7 @@
Plugin URI: https://wordpress.org/plugins/footnotes/ 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. 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 Author: Mark Cheret
Version: 2.1.1d0 Version: 2.1.1d1
Author URI: http://cheret.de/plugins/footnotes-2/ Author URI: http://cheret.de/plugins/footnotes-2/
Text Domain: footnotes Text Domain: footnotes
Domain Path: /languages Domain Path: /languages

View file

@ -80,15 +80,19 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
== Changelog == == 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 = 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 = = 2.1.0 =
- Add: UI: Tooltip: made 'Continue reading' button label customizable - Add: UI: Tooltip: made 'Continue reading' button label customizable
- Bugfix: Layout: Footnote referrers: disabled bottom border for theme compatibility - Bugfix: Layout: Footnote referrers: disabled bottom border for theme compatibility
- Update: Accessibility: added 'speaker-mute' class to reference container - Update: Accessibility: added 'speaker-mute' class to reference container
- Bugfix: Settings layout: added named selectors to limit applicability of styles - 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 = = 2.0.8 =
- BUGFIX: Priority level back to PHP_INT_MAX (need to get in touch with other plugins) - 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 = = 2.0.6 =
- Update: Autoload / infinite scroll support thanks to @docteurfitness <https://wordpress.org/support/topic/auto-load-post-compatibility-update/> - Update: Autoload / infinite scroll support thanks to @docteurfitness <https://wordpress.org/support/topic/auto-load-post-compatibility-update/>
- 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: 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: auto-extending column to fit widest, to fix display with short note texts
- Bugfix: Layout: Reference container: IDs: slightly increased left padding - Bugfix: Layout: Reference container: IDs: slightly increased left padding

View file

@ -1,9 +1,10 @@
<tr> <tr>
<td <td
id="footnote_plugin_reference_[[post_id]]_[[id]]" id="footnote_plugin_reference_[[post_id]]_[[id]]"
class="footnote_plugin_index footnote_plugin_link" class="footnote_plugin_index"
onclick="footnote_moveToAnchor_[[post_id]]('footnote_plugin_tooltip_[[post_id]]_[[id]]');" onclick="footnote_moveToAnchor_[[post_id]]('footnote_plugin_tooltip_[[post_id]]_[[id]]');"
><a ><a
class="footnote_plugin_link"
>[[arrow-index]]</a >[[arrow-index]]</a
></td> ></td>
<td <td