update for urgent bugfix, this: 2.5.1d0

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2458511 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
pewgeuges 2021-01-18 20:09:43 +00:00
parent 1c7debbaf5
commit c3c0515308
7 changed files with 155 additions and 98 deletions

View file

@ -6,7 +6,7 @@
* @author Stefan Herndler * @author Stefan Herndler
* @since 1.5.0 14.09.14 14:47 * @since 1.5.0 14.09.14 14:47
* *
* Last modified: 2021-01-07T2207+0100 * Last modified: 2021-01-18T2102+0100
* *
* Edited: * Edited:
* @since 2.0.4 restore arrow settings 2020-11-01T0509+0100 * @since 2.0.4 restore arrow settings 2020-11-01T0509+0100
@ -350,8 +350,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
* @see <https://wordpress.org/support/topic/add-support-for-ibid-notation/> * @see <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 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 removed the HTML comment tag option 2021-01-02T2325+0100
* @since 2.5.0 Shortcode syntax validation: add more information around the setting, thanks to @andreasra * @since 2.5.0 Shortcode syntax validation: add more information around the setting, thanks to @andreasra
* @see <https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/> * @see <https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/>
*/ */
public function StartEnd() { public function StartEnd() {
// footnotes start tag short code options: // footnotes start tag short code options:
@ -636,7 +636,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
* *
* Edited: * Edited:
* @since 2.2.0 5 parts to address increased settings number * @since 2.2.0 5 parts to address increased settings number
* @since 2.2.5 added position settings for the alternative tooltips * @since 2.2.5 position settings for alternative tooltips
*/ */
public function MouseOverBox() { public function MouseOverBox() {
// options for Yes/No select box: // options for Yes/No select box:
@ -653,7 +653,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
"label-enable" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, __("Display tooltips:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)), "label-enable" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, __("Display tooltips:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
"enable" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, $l_arr_Enabled), "enable" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED, $l_arr_Enabled),
"notice-enable" => __("Formatted text boxes allowing hyperlinks, displayed on mouse-over or on tap and hold.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "notice-enable" => __("Formatted text boxes allowing hyperlinks, displayed on mouse-over or tap and hold.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
"label-alternative" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, __("Display alternative tooltips:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)), "label-alternative" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, __("Display alternative tooltips:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
"alternative" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, $l_arr_Enabled), "alternative" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE, $l_arr_Enabled),
@ -888,7 +888,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
* 2020-12-09T1113+0100 * 2020-12-09T1113+0100
* *
* @since 2.2.2 migrate Custom CSS to a dedicated tab 2020-12-15T0506+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.3.0 say 'copy-paste' instead of 'cut and paste' since cutting is not needed 2020-12-27T1257+0100
* @since 2.5.1 mention validity while visible, thanks to @rkupadhya feedback
*/ */
public function CustomCSS() { public function CustomCSS() {
// load template file // load template file
@ -898,7 +899,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
array( array(
"label-css" => $this->addLabel(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS, __("Your existing Custom CSS code:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)), "label-css" => $this->addLabel(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS, __("Your existing Custom CSS code:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
"css" => $this->addTextArea(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS), "css" => $this->addTextArea(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS),
"description-css" => __('Custom CSS migrates to a dedicated tab. This text area is intended to keep your data safe. Please copy-paste the content into the new text area under the new tab.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "description-css" => __('Custom CSS migrates to a dedicated tab. This text area is intended to keep your data safe, and the code remains valid while visible. Please copy-paste the content into the new text area under the new tab.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
// CSS classes are listed in the template. // CSS classes are listed in the template.
// Localized notices are dropped to ease translators task. // Localized notices are dropped to ease translators task.
@ -935,7 +936,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
array( array(
"label-css" => $this->addLabel(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS, __("Your existing Custom CSS code:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)), "label-css" => $this->addLabel(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS, __("Your existing Custom CSS code:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
"css" => $this->addTextArea(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS), "css" => $this->addTextArea(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS),
"description-css" => __('Custom CSS migrates to a dedicated tab. This text area is intended to keep your data safe. Please copy-paste the content into the new text area below.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "description-css" => __('Custom CSS migrates to a dedicated tab. This text area is intended to keep your data safe, and the code remains valid while visible. Please copy-paste the content into the new text area below. Set Show legacy to No. Save twice.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
"label-show-legacy" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, "Show legacy Custom CSS settings containers:"), "label-show-legacy" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, "Show legacy Custom CSS settings containers:"),
"show-legacy" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, $l_arr_Enabled), "show-legacy" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_LEGACY_ENABLE, $l_arr_Enabled),

View file

@ -114,8 +114,11 @@
* @since 2.5.0 Shortcode syntax validation: limit length of quoted string to 300 characters, thanks to @andreasra * @since 2.5.0 Shortcode syntax validation: limit length of quoted string to 300 characters, thanks to @andreasra
* @see <https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/> * @see <https://wordpress.org/support/topic/warning-unbalanced-footnote-start-tag-short-code-before/>
* *
* @since 2.5.0 Hooks: support the term_description hook, thanks to @vitaefit (bug report) and @misfist (hook name) * @since 2.5.0 Hooks: support for footnotes on category pages, thanks to @vitaefit bug report, thanks to @misfist code contribution
* @see <https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/> * @see <https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/>
*
* @since 2.5.1 Hooks: support for footnotes in Popup Maker popups, thanks to @squatcher bug report
* @see <https://wordpress.org/support/topic/footnotes-use-in-popup-maker/>
*/ */
// If called directly, abort: // If called directly, abort:
@ -306,6 +309,10 @@ class MCI_Footnotes_Task {
* @since 2.5.0 support for the term_description hook, thanks to @vitaefit bug report, thanks to @misfist code contribution * @since 2.5.0 support for the term_description hook, thanks to @vitaefit bug report, thanks to @misfist code contribution
* @see <https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/> * @see <https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/>
* *
* Popup Maker popups:
* @since 2.5.1 support for the pum_popup_content hook, thanks to @squatcher bug report
* @see <https://wordpress.org/support/topic/footnotes-use-in-popup-maker/>
*
* Priority level: * Priority level:
* @since 2.0.5 through v2.0.7 changes to priority 2020-11-02T0330+0100..2020-11-06T1344+0100 * @since 2.0.5 through v2.0.7 changes to priority 2020-11-02T0330+0100..2020-11-06T1344+0100
* @since 2.1.1 add setting for the_content * @since 2.1.1 add setting for the_content
@ -352,11 +359,17 @@ class MCI_Footnotes_Task {
// custom priority level for reference container relative positioning; default 98: // custom priority level for reference container relative positioning; default 98:
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_CONTENT))) { if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_CONTENT))) {
add_filter('the_content', array($this, "the_content"), $p_int_TheContentPriority); add_filter('the_content', array($this, "the_content"), $p_int_TheContentPriority);
// HOOK FOR CATEGORY PAGES: // HOOK FOR CATEGORY PAGES:
// 2021-01-05T1402+0100 // 2021-01-05T1402+0100
// see <https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/#post-13866617> // see <https://wordpress.org/support/topic/footnote-doesntwork-on-category-page/#post-13866617>
add_filter('term_description', array($this, "the_content"), $p_int_TheContentPriority); add_filter('term_description', array($this, "the_content"), $p_int_TheContentPriority);
// HOOK FOR POPUP MAKER POPUPS:
// 2021-01-18T2038+0100
// see <https://wordpress.org/support/topic/footnotes-use-in-popup-maker/>
add_filter('pum_popup_content', array($this, "the_content"), $p_int_TheContentPriority);
} }
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_EXCERPT))) { if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_EXCERPT))) {

View file

@ -4,43 +4,38 @@
* 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.6.0
*
* Last modified: 2021-01-14T2351+0100
*
*
* Classes added to public.css may be added to the
* list documenting CSS classes for Custom CSS if
* recommended for general use.
* List in templates/dashboard/customize-css-new.html
*
*
* Edited for 2.0.0
*
* @since 2.0.1 enforced borderless table cells with !important property, thanks to @ragonesi bug report
* @see <https://wordpress.org/support/topic/box-around-c-references-container/>
*
* @since 2.1.1 line height 0 for (superscript) referrers, thanks to @cwbayer bug report
* @see <https://wordpress.org/support/topic/footnote-number-in-text-superscript-disrupts-leading/>
*
* @since 2.1.6 set z-index to maximum 2147483647 to address display issues with overlay content, thanks to @russianicons feedback
* @see <https://wordpress.org/support/topic/counter-styles-not-working/>
*
* @since 2.3.0 offset anchors for optional hard links, thanks to @psychonevro @martinneumannat bug reports
* @see <https://wordpress.org/support/topic/making-it-amp-compatible/>
* @see <https://wordpress.org/support/topic/footnotes-is-not-amp-compatible/>
*
* @since 2.4.0 validation error warning box
* @since 2.5.0 validation error warning box more paragraphs
*/ */
/* Version: 2.5.1
Last modified: 2021-01-18T2051+0100
Classes recommended for Custom CSS are listed in
templates/dashboard/customize-css-new.html
Edited:
@since 2.0.0 Referrers: vertical align: lower from top: 0.4em to top: 0.6em
@since 2.0.0 Tooltips: Font size: set to inherit instead of 13px
@since 2.0.0 Tooltips: Continue button: apply distinctive font color and font style
@since 2.0.0 Tooltips: fix bug displaying content inline when page is printed, thanks to @gernsheim bug report
@since 2.0.0 Reference container: Collapse button: fix text decoration
@since 2.0.1 enforce borderless table cells through !important property, thanks to @ragonesi bug report
@since 2.1.1 Referrers: line height 0 to fix superscript, thanks to @cwbayer bug report
@since 2.1.6 set z-index to maximum 2147483647 to address display issues with overlay content, thanks to @russianicons feedback
@since 2.3.0 offset anchors for optional hard links, thanks to @psychonevro @martinneumannat bug reports
@since 2.4.0 validation error warning box
@since 2.5.0 validation error warning box more paragraphs
*/
/***************************************************** /*****************************************************
MCI Footnotes logo MCI Footnotes logo
The classes with 'heading' fix display in dashboard, The classes with 'heading' fix display in dashboard,
where since WordPress 5.5 settings box labels with where since WordPress 5.5 settings box labels with
spans are displayed as justified and not last line. spans are displayed as justified and not last line.
class/config.php class/config.php
@ -53,10 +48,12 @@ css/settings.css
text-decoration: none; text-decoration: none;
font-weight: normal; font-weight: normal;
} }
.footnotes_logo_part1, .footnotes_logo_part1,
.footnotes_logo_part1_heading { .footnotes_logo_part1_heading {
color: #2bb975; color: #2bb975;
} }
.footnotes_logo_part2, .footnotes_logo_part2,
.footnotes_logo_part2_heading { .footnotes_logo_part2_heading {
color: #545f5a; color: #545f5a;
@ -70,7 +67,7 @@ significantly alters the post display and may cause an
issue with missing content or footnotes, while it may issue with missing content or footnotes, while it may
be hard to detect in long posts and under deadline. be hard to detect in long posts and under deadline.
A validation check displays a warning box below the A validation check displays a warning box below the
post title, populated with 300 characters of contente post title, populated with 300 characters of contente
preceded by the first unbalanced start tag short code. preceded by the first unbalanced start tag short code.
@ -80,8 +77,8 @@ preceded by the first unbalanced start tag short code.
.footnotes_validation_error { .footnotes_validation_error {
border: 4px solid red; border: 4px solid red;
padding: 20px 40px; padding: 20px 40px;
margin: 20px 0; margin: 20px 0;
background: #ff000055; background: #ff000055;
text-align: start; text-align: start;
} }
@ -110,8 +107,8 @@ preceded by the first unbalanced start tag short code.
Long URLs in Unicode-non-compliant user agents Long URLs in Unicode-non-compliant user agents
Unicode recommends to break URLs at slashes, but Unicode recommends to break URLs at slashes, but
some browsers dont, so we need to prevent URLs some browsers dont, so we need to prevent URLs
from expanding the reference container in mobile view, from expanding the reference container in mobile view,
or from hanging out of the tooltip even on desktop. or from hanging out of the tooltip even on desktop.
Based on pattern, not link element, since some URLs Based on pattern, not link element, since some URLs
@ -136,6 +133,10 @@ word-break: break-all;
Optional hard links Optional hard links
Anchors with scroll offset Anchors with scroll offset
@since 2.3.0 offset anchors for optional hard links, thanks to @psychonevro @martinneumannat bug reports
@see <https://wordpress.org/support/topic/making-it-amp-compatible/>
@see <https://wordpress.org/support/topic/footnotes-is-not-amp-compatible/>
*/ */
.footnote_item_base, .footnote_item_base,
@ -159,6 +160,9 @@ Classes:
.footnote_referrer = enclosing <span> .footnote_referrer = enclosing <span>
.footnote_plugin_tooltip_text = inner <sup> .footnote_plugin_tooltip_text = inner <sup>
.footnote_tooltip = inner <span> .footnote_tooltip = inner <span>
@since 2.1.1 Referrers: line height 0 to fix superscript, thanks to @cwbayer bug report
@see <https://wordpress.org/support/topic/footnote-number-in-text-superscript-disrupts-leading/>
*/ */
.footnote_referrer, .footnote_referrer,
@ -191,8 +195,9 @@ Classes:
tooltips tooltips
@since 2.1.6 set z-index to maximum 2147483647 to address display issues with overlay content, thanks to @russianicons @since 2.1.6 set z-index to maximum 2147483647 to address display issues with overlay content, thanks to @russianicons
@see <https://wordpress.org/support/topic/counter-styles-not-working/> @see <https://wordpress.org/support/topic/counter-styles-not-working/#post-13767299>
*/ */
.footnote_tooltip { .footnote_tooltip {
display: none; display: none;
z-index: 2147483647 !important; z-index: 2147483647 !important;
@ -207,9 +212,11 @@ tooltips
/* /*
alternative tooltip implementation alternative tooltip implementation
*/ */
.footnote_referrer.relative { .footnote_referrer.relative {
position: relative; position: relative;
} }
.footnote_tooltip.position { .footnote_tooltip.position {
display: unset; display: unset;
position: absolute; position: absolute;
@ -217,9 +224,11 @@ alternative tooltip implementation
left: -50px; left: -50px;
width: 400px; width: 400px;
} }
/* /*
fade-in parameters fade-in parameters
*/ */
.footnote_tooltip.shown { .footnote_tooltip.shown {
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;
@ -231,9 +240,11 @@ property values of settings are inline CSS
transition-duration: 200ms; transition-duration: 200ms;
*/ */
} }
/* /*
fade-out parameters fade-out parameters
*/ */
.footnote_tooltip.hidden { .footnote_tooltip.hidden {
visibility: hidden; visibility: hidden;
opacity: 0; opacity: 0;
@ -249,6 +260,7 @@ property values of settings are inline CSS
/* /*
Read-on button Read-on button
*/ */
.footnote_tooltip_continue { .footnote_tooltip_continue {
font-style: italic; font-style: italic;
color: green; color: green;
@ -256,6 +268,7 @@ Read-on button
cursor: pointer; cursor: pointer;
white-space: nowrap; white-space: nowrap;
} }
.footnote_tooltip_continue:hover { .footnote_tooltip_continue:hover {
color: blue; color: blue;
text-decoration: underline !important; text-decoration: underline !important;
@ -299,10 +312,12 @@ Classes:
/* /*
label label
*/ */
.footnote_container_prepare { .footnote_container_prepare {
display: block !important; display: block !important;
padding-top: 24px !important; padding-top: 24px !important;
} }
.footnote_container_prepare > p { .footnote_container_prepare > p {
line-height: 1.3 !important; line-height: 1.3 !important;
margin-top: 1em !important; margin-top: 1em !important;
@ -318,6 +333,7 @@ label
text-align: left !important; text-align: left !important;
vertical-align: middle; vertical-align: middle;
} }
.footnote_container_prepare > p > span:first-child { .footnote_container_prepare > p > span:first-child {
text-align: left !important; text-align: left !important;
font-size: 1.5em !important; font-size: 1.5em !important;
@ -327,6 +343,7 @@ label
collapse button collapse button
fully clickable, not sign only fully clickable, not sign only
*/ */
.footnote_reference_container_collapse_button { .footnote_reference_container_collapse_button {
cursor: pointer; cursor: pointer;
padding: 0 0.5em; padding: 0 0.5em;
@ -334,6 +351,7 @@ fully clickable, not sign only
vertical-align: 2px; vertical-align: 2px;
text-decoration: none !important; text-decoration: none !important;
} }
h2 > .footnote_reference_container_collapse_button, h2 > .footnote_reference_container_collapse_button,
h3 > .footnote_reference_container_collapse_button, h3 > .footnote_reference_container_collapse_button,
h4 > .footnote_reference_container_collapse_button, h4 > .footnote_reference_container_collapse_button,
@ -341,6 +359,7 @@ h5 > .footnote_reference_container_collapse_button,
h6 > .footnote_reference_container_collapse_button { h6 > .footnote_reference_container_collapse_button {
font-size: inherit !important; font-size: inherit !important;
} }
.footnote_container_prepare > p > span:last-child a, .footnote_container_prepare > p > span:last-child a,
.footnote_reference_container_collapse_button a { .footnote_reference_container_collapse_button a {
text-decoration: none !important; text-decoration: none !important;
@ -349,6 +368,7 @@ h6 > .footnote_reference_container_collapse_button {
/* /*
table table
*/ */
.footnote-reference-container, .footnote-reference-container,
.footnotes_table { .footnotes_table {
width: 100%; width: 100%;
@ -358,10 +378,12 @@ table
/* /*
footnotes footnotes
enforced borderless table cells with !important property, thanks to @ragonesi @since 2.0.0 borderless table cells, thanks to @ragonesi bug report
@since 2.0.1 @see <https://wordpress.org/support/topic/thin-box-around-notes-in-reference-container/>
@since 2.0.1 enforce borderless text cells through !important property, thanks to @ragonesi bug report
@see <https://wordpress.org/support/topic/box-around-c-references-container/> @see <https://wordpress.org/support/topic/box-around-c-references-container/>
*/ */
.footnote_plugin_index, .footnote_plugin_index,
.footnote_plugin_index_combi, .footnote_plugin_index_combi,
.footnote_plugin_symbol, .footnote_plugin_symbol,
@ -371,6 +393,7 @@ enforced borderless table cells with !important property, thanks to @ragonesi
vertical-align: top !important; vertical-align: top !important;
padding: 5px 6px 10px 0 !important; padding: 5px 6px 10px 0 !important;
} }
.footnote_backlink, .footnote_backlink,
.footnote_backlink:link, .footnote_backlink:link,
.footnote_plugin_link, .footnote_plugin_link,
@ -382,6 +405,7 @@ enforced borderless table cells with !important property, thanks to @ragonesi
text-decoration: none !important; text-decoration: none !important;
border-bottom: none !important; border-bottom: none !important;
} }
.footnote_backlink, .footnote_backlink,
.footnote_plugin_link { .footnote_plugin_link {
white-space: nowrap; white-space: nowrap;
@ -402,6 +426,7 @@ when hovered in some themes, not in others:
.footnote_plugin_index.pointer:hover, .footnote_plugin_index.pointer:hover,
.footnote_plugin_index_combi.pointer:hover, .footnote_plugin_index_combi.pointer:hover,
*/ */
.footnote_backlink:hover, .footnote_backlink:hover,
.footnote_plugin_link:hover, .footnote_plugin_link:hover,
.footnote_plugin_text a:hover { .footnote_plugin_text a:hover {
@ -422,15 +447,19 @@ By default, the backlink column is auto-expanding to fit widest.
Not using 'max-content' as that causes no-wrap and overflows. Not using 'max-content' as that causes no-wrap and overflows.
These are overridden if settings are enabled. These are overridden if settings are enabled.
*/ */
.footnote_plugin_index, .footnote_plugin_index,
.footnote_plugin_index_combi { .footnote_plugin_index_combi {
max-width: 100px; max-width: 100px;
width: 2.5em; width: 2.5em;
} }
/* /*
Responsive Responsive
*/ */
@media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) {
.footnote_plugin_index, .footnote_plugin_index,
.footnote_plugin_index_combi { .footnote_plugin_index_combi {
max-width: 80px; max-width: 80px;
@ -441,11 +470,16 @@ Responsive
/**************************************************************** /****************************************************************
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 inside,
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
just after the reference container headline.
UI elements - expand button, arrows - are hidden in print; UI elements (expand/collapse button, backlink arrows) are hidden.
link styling is reverted so as to not gray out referrers/numbers.
Link color set to inherit, so referrers/numbers are not grayed out.
@since 2.0.0 Tooltips: fix bug displaying content inline when page is printed, thanks to @gernsheim bug report
@see <https://wordpress.org/support/topic/printing-pdf-with-footnotes-generated-by-footnotes/>
*/ */
.footnotes_reference_container { .footnotes_reference_container {
@ -453,20 +487,25 @@ link styling is reverted so as to not gray out referrers/numbers.
} }
@media print { @media print {
.footnote_tooltip, .footnote_tooltip,
.footnote_reference_container_collapse_button, .footnote_reference_container_collapse_button,
.footnote_index_arrow { .footnote_index_arrow {
display: none; display: none;
} }
.footnote_plugin_tooltip_text { .footnote_plugin_tooltip_text {
color: inherit; color: inherit;
} }
.footnote_plugin_index a, .footnote_plugin_index a,
.footnote_plugin_index_combi a { .footnote_plugin_index_combi a {
color: inherit; color: inherit;
text-decoration: none !important; text-decoration: none !important;
} }
div.post-meta-edit-link-wrapper { /*Edit button in WP2020*/
display: none; /*(added as a service)*/ /* Edit button in WP2020 (added as a service) */
div.post-meta-edit-link-wrapper {
display: none;
} }
} }

View file

@ -5,9 +5,9 @@
* Created-Time: 16:21 * Created-Time: 16:21
* Since: 1.0 * Since: 1.0
* *
* Version: 2.6.0 * Version: 2.5.1
* *
* Last modified: 2021-01-14T2350+0100 * Last modified: 2021-01-18T2051+0100
*/ */

View file

@ -4,12 +4,12 @@
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.6.0d0 Version: 2.5.1d0
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
*/ */
define( 'FOOTNOTES_VERSION', '2.6.0d0' ); define( 'FOOTNOTES_VERSION', '2.5.1d0' );
/* /*
Copyright 2020 Mark Cheret (email: mark@cheret.de) Copyright 2020 Mark Cheret (email: mark@cheret.de)

View file

@ -79,10 +79,13 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
== Changelog == == Changelog ==
= 2.6.0 = = 2.5.1 =
- Bugfix: Hooks: support for footnotes in Popup Maker popups, thanks to @squatcher bug report
- Bugfix: Reference container: click on label expands but also collapses, thanks to @ahmadword bug report
- Bugfix: Dashboard: Custom CSS: mention validity of legacy while visible, thanks to @rkupadhya feedback
- Bugfix: Dashboard: Custom CSS: make class list column formatting effective again
- Update: Readme/documentation: add new contributors in the file headers Contributors field - Update: Readme/documentation: add new contributors in the file headers Contributors field
- Update: Readme/documentation: update or fix URLs in Download, Support and Development sections - Update: Readme/documentation: update or fix URLs in Download, Support and Development sections
- Bugfix: Dashboard: Custom CSS: make class list column formatting effective again
= 2.5.0 = = 2.5.0 =
- Add: Customization: Enable template location stack, thanks to @misfist source file contribution - Add: Customization: Enable template location stack, thanks to @misfist source file contribution
@ -224,7 +227,7 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
- Bugfix: Styling: Tooltips: raise settings priority to override theme style sheets - Bugfix: Styling: Tooltips: raise settings priority to override theme style sheets
= 2.1.2 = = 2.1.2 =
- Bugfix: Layout: Reference container: Backlinks: no underline on hover cell when combining identicals is on - Bugfix: Reference container: Backlinks: no underline on hover cell when combining identicals is on
- Bugfix: Dashboard: priority level settings for all other hooks, thanks to @nikelaos feedback - Bugfix: Dashboard: priority level settings for all other hooks, thanks to @nikelaos feedback
- Update: Dashboard: WordPress documentation URLs of the hooks - Update: Dashboard: WordPress documentation URLs of the hooks
- Update: Dashboard: feature description for the hooks priority level settings, thanks to @nikelaos feedback - Update: Dashboard: feature description for the hooks priority level settings, thanks to @nikelaos feedback
@ -235,23 +238,23 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
- Update: Libraries: jQuery Tools: complete minification - Update: Libraries: jQuery Tools: complete minification
- Bugfix: Libraries: made script loads depend on tooltip implementation option - Bugfix: Libraries: made script loads depend on tooltip implementation option
- Bugfix: Libraries: jQuery UI: properly pick the libraries registered by WordPress needed for tooltips - Bugfix: Libraries: jQuery UI: properly pick the libraries registered by WordPress needed for tooltips
- Bugfix: UI: Tooltips: optional alternative JS implementation with CSS animation to fix site issues - Bugfix: Tooltips: optional alternative JS implementation with CSS animation to fix site issues
- Bugfix: UI: Tooltips: add delay (400ms) before fade-out to fix UX wrt links and Read-on button - Bugfix: Tooltips: add delay (400ms) before fade-out to fix UX wrt links and Read-on button
- Bugfix: UI: Tooltips: fix line breaking for hyperlinked URLs in Unicode-non-compliant user agents - Bugfix: Tooltips: fix line breaking for hyperlinked URLs in Unicode-non-compliant user agents
- Bugfix: Layout: Footnote referrers: select box to make superscript optional wrt themes w/o support, thanks to @cwbayer bug report - Bugfix: Footnote referrers: select box to make superscript optional, thanks to @cwbayer bug report
- Bugfix: Layout: Reference container: fix relative positioning by priority level setting, thanks to june01 @spaceling @imeson bug reports - Bugfix: Footnote referrers: line height 0 to fix superscript, thanks to @cwbayer bug report
- Bugfix: Layout: Reference container: Backlink symbol: select box to disable instead of space character - Bugfix: Reference container: fix relative positioning by priority level setting, thanks to june01 @spaceling @imeson bug reports
- Bugfix: Layout: Reference container: Footnote number links: disable bottom border for theme compatibility - Bugfix: Reference container: Backlink symbol: select box to disable instead of space character
- Bugfix: Layout: Reference container: option to restore 3-column layout when combined are turned off - Bugfix: Reference container: Footnote number links: disable bottom border for theme compatibility
- Bugfix: Layout: Reference container: option to APpend symbol in 2-column when combined are turned off - Bugfix: Reference container: option to restore 3-column layout when combined are turned off
- Bugfix: Layout: Reference container: fix start pages by an option to hide the reference container - Bugfix: Reference container: option to APpend symbol in 2-column when combined are turned off
- Bugfix: Layout: Reference container: Table rows: fix top and bottom padding - Bugfix: Reference container: fix start pages by an option to hide the reference container
- Bugfix: Layout: Footnote referrers: new fix for line height - Bugfix: Reference container: Table rows: fix top and bottom padding
- Bugfix: Formatting: disable overline showing in some themes on hovered backlinks - Bugfix: Formatting: disable overline showing in some themes on hovered backlinks
= 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: 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: Dashboard: Layout: added named selectors to limit applicability of styles - Bugfix: Dashboard: Layout: added named selectors to limit applicability of styles
- UPDATE: REMOVED the_post hook, the plugin stopped supporting this hook - UPDATE: REMOVED the_post hook, the plugin stopped supporting this hook
@ -267,16 +270,16 @@ 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: Footnote referrers: deleted vertical align tweaks, for cross-theme and user agent compatibility
- Bugfix: Layout: Reference container: fixed line breaking behavior in footnote # clusters - Bugfix: Reference container: fixed line breaking behavior in footnote # clusters
- Bugfix: Layout: Reference container: auto-extending column to fit widest, to fix display with short note texts - Bugfix: 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: Reference container: IDs: slightly increased left padding
- Bugfix: Translations: fixed spelling error and erroneously changed word in en_GB and en_US - Bugfix: Translations: fixed spelling error and erroneously changed word in en_GB and en_US
- Update: Typesetting: discarded the dot after footnote numbers as not localizable (should be optional) - Update: Typesetting: discarded the dot after footnote numbers as not localizable (should be optional)
- Bugfix: UI: Reference container: Collapse button fully clickable, not sign only - Bugfix: Reference container: Collapse button fully clickable, not sign only
- Bugfix: UI: Reference container: Collapse button 'collapse' with minus sign not hyphen-minus - Bugfix: Reference container: Collapse button 'collapse' with minus sign not hyphen-minus
- Update: UX: Tooltip: set display predelay to 0 for responsiveness (was 800 since 2.0.0, 400 before) - Update: Tooltips: set display predelay to 0 for responsiveness (was 800 since 2.0.0, 400 before)
- Update: UX: Tooltip: set fade duration to 200ms both ways (was 200 in and 2000 out since 2.0.0, 0 in and 100 out before) - Update: Tooltips: set fade duration to 200ms both ways (was 200 in and 2000 out since 2.0.0, 0 in and 100 out before)
- BUGFIX: Priority level back to PHP_INT_MAX (ref container positioning not this plugins responsibility) - BUGFIX: Priority level back to PHP_INT_MAX (ref container positioning not this plugins responsibility)
- Update: Scroll offset: raise percentage from 12% to a safer 20% inner window height, by lack of configurability - Update: Scroll offset: raise percentage from 12% to a safer 20% inner window height, by lack of configurability
@ -285,27 +288,27 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
- Bugfix: Public style sheet: Reference container: unset width of text column to fix site issues - Bugfix: Public style sheet: Reference container: unset width of text column to fix site issues
- Update: Enable all hooks by default to prevent footnotes from seeming broken in post titles - Update: Enable all hooks by default to prevent footnotes from seeming broken in post titles
- Bugfix: Restore cursor shape pointer over 'Continue reading' button after hyperlink removal - Bugfix: Restore cursor shape pointer over 'Continue reading' button after hyperlink removal
- Bugfix: Settings style sheet unenqueued to fix input boxes on public pages (enqueued for 2.0.4) - Bugfix: Settings style sheet: unenqueue to fix input boxes on public pages (enqueued for 2.0.4)
= 2.0.4 = = 2.0.4 =
- Update: Restored arrow settings to customize or disable the now prepended arrow symbol - Update: Restore arrow settings to customize or disable the now prepended arrow symbol
- Update: GDPR: Added jQuery UI from WordPress instead of third party - Update: GDPR: Add jQuery UI from WordPress instead of third party
- Bugfix: UX: Removed hyperlink addresses from referrers and backlinks wrt browsing history - Bugfix: UX: Remove hyperlink addresses from referrers and backlinks wrt browsing history
- Bugfix: Reference container: layout: removed inconvenient left/right cellpadding - Bugfix: Reference container: remove inconvenient left/right cellpadding
- Bugfix: Tooltip infobox: improved layout with inherited font size by lower line height - Bugfix: Tooltips: improve layout with inherited font size by lower line height
- Bugfix: Tooltip infobox: 'Continue reading' button: disabled default underline - Bugfix: Tooltips: 'Continue reading' button: disable default underline
- Bugfix: Translations: reviewed all locales (en, de, es, fr), synced ref line # with edited code - Bugfix: Translations: review all locales (en, de, es, fr), synced ref line # with edited code
- Bugfix: Dashboard: fix display of two headings containing the logo - Bugfix: Dashboard: fix display of two headings containing the logo
= 2.0.3 = = 2.0.3 =
- Bugfix: Layout: Self-adjusting width of ID column but hidden overflow - Bugfix: Reference container: Self-adjusting width of ID column but hidden overflow
- Update: Prepended transitional up arrow to backlinking footnote numbers after a user complaint about missing backlinking semantics of the footnote number - Update: Reference container: clarify backlink semantics by prepended transitional up arrow, thanks to bug report
- Bugfix: Fragment IDs: Prepended post ID to footnote number - Bugfix: Fragment IDs: Prepended post ID to footnote number
- Bugfix: Feed plugin version in style sheet query string for cache busting - Bugfix: Feed plugin version in style sheet query string for cache busting
- Bugfix: Print style: prevent a page break just after the reference container label - Bugfix: Print style: prevent a page break just after the reference container label
- Bugfix: Print style: Hide reference collapse button - Bugfix: Print style: Hide reference collapse button
- Update: Layout: Removed padding before reference container label - Update: Reference container: Headline: remove padding before reference container label
- Update: Scroll offset: raise percentage from 5% to a safer 12% inner window height, by lack of configurability - Update: Scroll offset: raise percentage from 5% to a safer 12% inner window height, by lack of setting
= 2.0.2 = = 2.0.2 =
- Bugfix: Restored expand/collapse button of reference container - Bugfix: Restored expand/collapse button of reference container
@ -314,8 +317,8 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
- Bugfix: Disabled underline in footnote anchors, underline only on hover - Bugfix: Disabled underline in footnote anchors, underline only on hover
= 2.0.1 = = 2.0.1 =
- Bugfix: enforced borderless table cells with !important property, thanks to @ragonesi - Bugfix: enforce borderless table cells through !important property, thanks to @ragonesi bug report
- Update: Language fr_FR along with es_ES, de_AT, de_DE, en_GB, en_US for 2.0 - Update: Translations: revised fr_FR
= 2.0.0 = = 2.0.0 =
- Major contributions taken from WordPress user pewgeuges, all details here https://github.com/media-competence-institute/footnotes/blob/master/README.md: - Major contributions taken from WordPress user pewgeuges, all details here https://github.com/media-competence-institute/footnotes/blob/master/README.md:
@ -330,6 +333,7 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
- Update: Adjusted scrolling time and offset - Update: Adjusted scrolling time and offset
- Bugfix: No borders around footnotes in the container - Bugfix: No borders around footnotes in the container
- Bugfix: Mouse-over box display timing - Bugfix: Mouse-over box display timing
- Update: Translations: revised de_AT, de_DE, en_GB, en_US, es_ES
= 1.6.6 = = 1.6.6 =
- Beginning of translation to French - Beginning of translation to French

View file

@ -6,7 +6,7 @@
><[[element]] ><[[element]]
><span ><span
class="footnote_reference_container_label" class="footnote_reference_container_label"
onclick="footnote_expand_reference_container_[[post_id]]_[[container_id]]();" onclick="footnote_expand_collapse_reference_container_[[post_id]]_[[container_id]]();"
>[[name]]</span >[[name]]</span
><span ><span
class="footnote_reference_container_collapse_button" class="footnote_reference_container_collapse_button"