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:
parent
18305dee4f
commit
6c776388c9
6 changed files with 88 additions and 73 deletions
|
@ -140,7 +140,7 @@ class MCI_Footnotes {
|
|||
// <https://wordpress.org/support/topic/tooltip-hover-not-showing/#post-13456762>:
|
||||
// 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'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
114
css/public.css
114
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 <a>
|
||||
* .footnote_plugin_tooltip_text = inner <sup>
|
||||
Inline footnote referrers
|
||||
aka superscript footnote anchors
|
||||
|
||||
referrer and surroundings:
|
||||
.footnote_referrer = enclosing <a>
|
||||
.footnote_plugin_tooltip_text = inner <sup>
|
||||
*/
|
||||
|
||||
.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 <https://wordpress.org/support/topic/change-the-position-5/#post-13617988>
|
||||
*/
|
||||
.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)*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
10
readme.txt
10
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 <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: auto-extending column to fit widest, to fix display with short note texts
|
||||
- Bugfix: Layout: Reference container: IDs: slightly increased left padding
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
<tr>
|
||||
<td
|
||||
id="footnote_plugin_reference_[[post_id]]_[[id]]"
|
||||
class="footnote_plugin_index footnote_plugin_link"
|
||||
id="footnote_plugin_reference_[[post_id]]_[[id]]"
|
||||
class="footnote_plugin_index"
|
||||
onclick="footnote_moveToAnchor_[[post_id]]('footnote_plugin_tooltip_[[post_id]]_[[id]]');"
|
||||
><a
|
||||
>[[arrow-index]]</a
|
||||
><a
|
||||
class="footnote_plugin_link"
|
||||
>[[arrow-index]]</a
|
||||
></td>
|
||||
<td
|
||||
class="footnote_plugin_text"
|
||||
|
|
Reference in a new issue