prerelease 2.1.4: this is 2.1.4 just without the tag 2.1.4; 2.2.0 will need localization, yet that implies a lot of extra changes and work. The overdue bugfixes need to be released today. Scheduled for this evening if no problems.

git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2432631 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
pewgeuges 2020-12-06 16:30:14 +00:00
parent ec116d10a2
commit 9dba60cd48
12 changed files with 85 additions and 81 deletions

View file

@ -8,14 +8,13 @@
*
* Edited:
* 2.1.2 add versioning of settings.css for cache busting 2020-11-19T1456+0100
* 2.2.0 automate passing version number for cache busting 2020-11-30T0648+0100
* 2.2.0 optional step argument and support for floating in numbox 2020-12-05T0540+0100
*
* 2.1.4 automate passing version number for cache busting 2020-11-30T0648+0100
* 2.1.4 optional step argument and support for floating in numbox 2020-12-05T0540+0100
*
* ########## fix punctuation-related localization issue in dashboard labels 2020-12-01T0211+0100
* ########## this fix reverted for now; restore when updating strings and translations, line 400
*
* Last modified: 2020-12-05T2008+0100
* Last modified: 2020-12-06T1654+0100
*/
@ -508,7 +507,7 @@ abstract class MCI_Footnotes_LayoutEngine {
* @return string
*
* Edited:
* @since 2.2.0 step argument and number_format() to allow decimals 2020-12-03T0631+0100..2020-12-05T2006+0100
* @since 2.1.4 step argument and number_format() to allow decimals 2020-12-03T0631+0100..2020-12-05T2006+0100
*/
protected function addNumBox($p_str_SettingName, $p_in_Min, $p_int_Max, $p_bool_Deci = false ) {
// collect data for given settings field

View file

@ -10,9 +10,9 @@
* 2.0.4 restore arrow settings 2020-11-01T0509+0100
* 2.1.0 read-on button label 2020-11-08T2148+0100
* 2.1.1 options for ref container and alternative tooltips 2020-11-16T2152+0100
* 2.2.0 settings for ref container, tooltips and scrolling 2020-12-03T0950+0100
* 2.1.4 settings for ref container, tooltips and scrolling 2020-12-03T0950+0100
*
* Last modified: 2020-12-06T1321+0100
* Last modified: 2020-12-06T1653+0100
*/
/**
@ -95,7 +95,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
// The HyperlinkArrow meta box ceased for 2.0.0
// The HyperlinkArrow meta box was restored for 2.0.4 to meet user demand for arrow symbol semantics
// The HyperlinkArrow meta box ceased for 2.2.0 as its content is moved to Settings > Reference container > Display a backlink symbol
// The HyperlinkArrow meta box ceased for 2.1.4 as its content is moved to Settings > Reference container > Display a backlink symbol
$this->addMetaBox("customize", "superscript", __("Superscript layout", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Superscript"),
$this->addMetaBox("customize", "mouse-over-box", __("Mouse-over box", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBox"),
$this->addMetaBox("customize", "custom-css", __("Add custom CSS to the public page", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "CustomCSS"),
@ -114,7 +114,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
* @since 1.5.0
*
* Completed:
* @since 2.2.0: layout and typography options 2020-11-30T0548+0100
* @since 2.1.4: layout and typography options 2020-11-30T0548+0100
*/
public function ReferenceContainer() {
// options for the positioning of the reference container
@ -540,7 +540,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
* became 'prepended arrow' in v2.0.3 after a user complaint about missing backlinking semantics
* of the footnote number.
*
* @since 2.2.0 moved to Settings > Reference container > Display a backlink symbol
* @since 2.1.4 moved to Settings > Reference container > Display a backlink symbol
*/
/**
@ -585,7 +585,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
*
* Edited for:
* 2.1.1 add priority level setting for the_content 2020-11-16T2152+0100
* 2.2.0 add priority level settings for the other hooks 2020-11-19T1421+0100
* 2.1.4 add priority level settings for the other hooks 2020-11-19T1421+0100
*/
public function lookupHooks() {
// load template file

View file

@ -11,10 +11,10 @@
* 2.0.0 add jQueryUI from Cloudflare 2020-10-26T1907+0100
* 2.0.3 add versioning of public.css for cache busting 2020-10-29T1413+0100
* 2.0.4 add jQuery UI from WordPress 2020-11-01T1902+0100
* 2.2.0 automate passing version number for cache busting 2020-11-30T0646+0100
* 2.2.0 optionally enqueue an extra style sheet 2020-12-04T2231+0100
* 2.1.4 automate passing version number for cache busting 2020-11-30T0646+0100
* 2.1.4 optionally enqueue an extra style sheet 2020-12-04T2231+0100
*
* Last modified: 2020-12-05T1418+0100
* Last modified: 2020-12-06T1655+0100
*/
@ -161,7 +161,7 @@ class MCI_Footnotes {
wp_enqueue_style( 'mci-footnotes-public', plugins_url('footnotes/css/public.css'), array(), FOOTNOTES_VERSION, 'all' );
// optional layout fix by lack of layout support:
// since 2.2.0 2020-12-05T1417+0100
// since 2.1.4 2020-12-05T1417+0100
$l_str_LayoutOption = MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT);
if ($l_str_LayoutOption != 'none') {
wp_enqueue_style( 'mci-footnotes-layout-' . $l_str_LayoutOption, plugins_url('footnotes/css/layout-' . $l_str_LayoutOption . '.css'), array(), FOOTNOTES_VERSION, 'all' );

View file

@ -17,9 +17,9 @@
* 2.1.1 fix ref container by option restoring 3-column layout
* 2.1.1 fix ref container by option to switch index/symbol 2020-11-16T2022+0100
* 2.1.3 fix ref container positioning by priority level 2020-11-17T0205+0100
* 2.2.0 more settings container keys 2020-12-03T0955+0100
* 2.1.4 more settings container keys 2020-12-03T0955+0100
*
* Last modified: 2020-12-06T1321+0100
* Last modified: 2020-12-06T1653+0100
*/
@ -176,7 +176,7 @@ class MCI_Footnotes_Settings {
/**
* Settings Container Key for alternative tooltip implementation
*
* @since 2.2.0
* @since 2.1.4
* @var string
*
* 2020-11-11T1817+0100
@ -411,7 +411,7 @@ class MCI_Footnotes_Settings {
* Settings Container Keys for scroll offset and duration
* Settings Container Keys for tooltip display durations
*
* @since 2.2.0
* @since 2.1.4
* @var string|bool|int
*
* 2020-11-26T1002+0100
@ -593,9 +593,9 @@ class MCI_Footnotes_Settings {
self::C_INT_MOUSE_OVER_BOX_FADE_OUT_DELAY => 400,
self::C_INT_MOUSE_OVER_BOX_FADE_OUT_DURATION => 200,
// tooltip font size reset to legacy by default since 2.2.0;
// tooltip font size reset to legacy by default since 2.1.4;
// was set to inherit since 2.1.1 as it overrode custom CSS,
// is moved to settings since 2.2.0 2020-12-04T1023+0100
// is moved to settings since 2.1.4 2020-12-04T1023+0100
self::C_BOOL_MOUSE_OVER_BOX_FONT_SIZE_ENABLED => 'yes',
self::C_FLO_MOUSE_OVER_BOX_FONT_SIZE_SCALAR => 13,
self::C_STR_MOUSE_OVER_BOX_FONT_SIZE_UNIT => 'px',

View file

@ -17,16 +17,16 @@
* 2.1.1 options fixing ref container layout and referrer vertical alignment 2020-11-16T2024+0100
* 2.1.1 option fixing ref container relative position 2020-11-17T0254+0100
* 2.1.2 options for the other hooks 2020-11-19T1849+0100
* 2.2.0 fix line wrapping of URLs based on pattern, not link element 2020-11-25T0837+0100
* 2.2.0 fix issues with link elements by making them optional 2020-11-26T1051+0100
* 2.2.0 support appending arrow when combining identicals is on 2020-11-26T1633+0100
* 2.2.0 disable or select backlink separator and terminator 2020-11-28T1048+0100
* 2.2.0 optional line breaks to stack enumerated backlinks 2020-11-28T1049+0100
* 2.2.0 ref container column width and tooltip font size settings 2020-12-03T0954+0100
* 2.2.0 scroll offset and duration settings 2020-12-05T0538+0100
* 2.2.0 tooltip display duration settings 2020-12-06T1320+0100
* 2.1.4 fix line wrapping of URLs based on pattern, not link element 2020-11-25T0837+0100
* 2.1.4 fix issues with link elements by making them optional 2020-11-26T1051+0100
* 2.1.4 support appending arrow when combining identicals is on 2020-11-26T1633+0100
* 2.1.4 disable or select backlink separator and terminator 2020-11-28T1048+0100
* 2.1.4 optional line breaks to stack enumerated backlinks 2020-11-28T1049+0100
* 2.1.4 ref container column width and tooltip font size settings 2020-12-03T0954+0100
* 2.1.4 scroll offset and duration settings 2020-12-05T0538+0100
* 2.1.4 tooltip display duration settings 2020-12-06T1320+0100
*
* Last modified: 2020-12-06T1321+0100
* Last modified: 2020-12-06T1652+0100
*/
// If called directly, abort:
@ -676,7 +676,7 @@ class MCI_Footnotes_Task {
* The link elements have been added and are present @since 2.0.0.
* Then the link addresses were removed @since 2.0.4.
* Then the presence of <a> elements was made optional
* @since 2.2.0
* @since 2.1.4
* 2020-11-25T1306+0100
*/
$l_str_LinkSpan = MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_LINK_ELEMENT_ENABLED)) ? 'a' : 'span';
@ -722,7 +722,7 @@ class MCI_Footnotes_Task {
*
* Initially a comma was appended in this algorithm for enumerations.
* The comma in enumerations is not generally preferred.
* @since 2.2.0 the separator is optional, has options, and is customizable:
* @since 2.1.4 the separator is optional, has options, and is customizable:
*/
// check if it is even enabled:
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_BACKLINKS_SEPARATOR_ENABLED))) {
@ -747,7 +747,7 @@ class MCI_Footnotes_Task {
* Initially a dot was appended in the table row template.
* @since 2.0.6 a dot after footnote numbers is discarded as not localizable;
* making it optional was envisaged.
* @since 2.2.0 the terminator is optional, has options, and is customizable:
* @since 2.1.4 the terminator is optional, has options, and is customizable:
*/
// check if it is even enabled:
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_BACKLINKS_TERMINATOR_ENABLED))) {

View file

@ -1,19 +1,21 @@
/**
* Footnotes Responsive Layout for the main element
* Basic responsive layout for the main element
*
* Based on Hello Elementor v2.3.0 Basic responsive layout
* themes/hello-elementor/theme.css:8..31
* licensed under GNU General Public License v3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* Since 2.2.0
* Version: 2.2.0d0
* Since v2.1.4 of Footnotes
*
* Last modified: 2020-12-05T1414+0100
*/
* Last modified: 2020-12-06T1722+0100
*
* The enqueuing of this style sheet is optional and can be
* enabled in the Reference container settings.
**/
/***********************************************************
Basic responsive layout
Rationale
In Hello Elementor Theme, this applies to .site-header, and
also to .site-main, which is a class of the <main> element,
@ -28,11 +30,7 @@ into the benefit of the basic responsive layout style rules
that would apply if the page were not built with Elementor.
This is mainly useful with Hello Elementor, but it might be
used also with another theme depriving the features from
other plugins of basic layout rules as applied to content.
The enqueuing of this style sheet is optional. The setting
is in the dashboard under Settings > Reference container.
used also with another theme.
*/
main, .main-content, .site-main {

View file

@ -1,19 +1,21 @@
/**
* Footnotes Responsive Layout for the main element
* Basic responsive layout for the page content div
*
* Based on Hello Elementor v2.3.0 Basic responsive layout
* themes/hello-elementor/theme.css:8..31
* licensed under GNU General Public License v3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* Since 2.2.0
* Version: 2.2.0d0
* Since v2.1.4 of Footnotes
*
* Last modified: 2020-12-05T1413+0100
*/
* Last modified: 2020-12-06T1722+0100
*
* The enqueuing of this style sheet is optional and can be
* enabled in the Reference container settings.
**/
/***********************************************************
Basic responsive layout
Rationale
In Hello Elementor Theme, this applies to .site-header, and
also to .site-main, which is a class of the <main> element,
@ -28,11 +30,7 @@ into the benefit of the basic responsive layout style rules
that would apply if the page were not built with Elementor.
This is mainly useful with Hello Elementor, but it might be
used also with another theme depriving the features from
other plugins of basic layout rules as applied to content.
The enqueuing of this style sheet is optional. The setting
is in the dashboard under Settings > Reference container.
used also with another theme.
*/
div.page-content {

View file

@ -1,19 +1,21 @@
/**
* Footnotes Responsive Layout for the reference container
* Basic responsive layout for the reference container
*
* Based on Hello Elementor v2.3.0 Basic responsive layout
* themes/hello-elementor/theme.css:8..31
* licensed under GNU General Public License v3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*
* Since 2.2.0
* Version: 2.2.0d0
* Since v2.1.4 of Footnotes
*
* Last modified: 2020-12-05T1413+0100
*/
* Last modified: 2020-12-06T1722+0100
*
* The enqueuing of this style sheet is optional and can be
* enabled in the Reference container settings.
**/
/***********************************************************
Basic responsive layout
Rationale
In Hello Elementor Theme, this applies to .site-header, and
also to .site-main, which is a class of the <main> element,
@ -28,11 +30,7 @@ into the benefit of the basic responsive layout style rules
that would apply if the page were not built with Elementor.
This is mainly useful with Hello Elementor, but it might be
used also with another theme depriving the features from
other plugins of basic layout rules as applied to content.
The enqueuing of this style sheet is optional. The setting
is in the dashboard under Settings > Reference container.
used also with another theme.
*/
.footnotes_reference_container {

View file

@ -5,9 +5,9 @@
* Created-Time: 16:21
* Since: 1.0
*
* Version: 2.2.0d2
* Version: 2.1.4
*
* Last modified: 2020-12-06T1326+0100
* Last modified: 2020-12-06T1649+0100
*/

View file

@ -5,9 +5,9 @@
* Created-Time: 16:21
* Since: 1.0
*
* Version: 2.2.0d2
* Version: 2.1.4
*
* Last modified: 2020-12-06T1325+0100
* Last modified: 2020-12-06T1649+0100
*/
@ -64,18 +64,29 @@ On User Request: limited to a number of IDs to not affect all dashboards
}
#footnote_inputfield_placeholder_start,
#footnote_inputfield_placeholder_end {
width: 180px;
#footnote_inputfield_placeholder_end,
#footnote_inputfield_custom_mouse_over_box_excerpt_length,
#footnote_inputfield_custom_mouse_over_box_position {
width: 180px;
}
#footnote_inputfield_placeholder_start_user_defined,
#footnote_inputfield_placeholder_end_user_defined {
width: 320px;
width: 320px;
}
#footnote_inputfield_combine_identical,
#footnotes_inputfield_scroll_offset,
#footnotes_inputfield_scroll_duration {
width: 80px;
#footnotes_inputfield_scroll_duration,
#footnote_inputfield_custom_mouse_over_box_offset_x,
#footnote_inputfield_custom_mouse_over_box_offset_y,
#footnote_inputfield_custom_mouse_over_box_max_width,
#footnotes_inputfield_mouse_over_box_fade_in_delay,
#footnotes_inputfield_mouse_over_box_fade_in_duration,
#footnotes_inputfield_mouse_over_box_fade_out_delay,
#footnotes_inputfield_mouse_over_box_fade_out_duration,
#footnote_inputfield_custom_mouse_over_box_border_width,
#footnote_inputfield_custom_mouse_over_box_border_radius {
width: 80px;
}
#footnote_inputfield_custom_hyperlink_symbol,

View file

@ -4,12 +4,12 @@
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.2.0d2
Version: 2.1.4
Author URI: http://cheret.de/plugins/footnotes-2/
Text Domain: footnotes
Domain Path: /languages
*/
define( 'FOOTNOTES_VERSION', '2.2.0d2' );
define( 'FOOTNOTES_VERSION', '2.1.4' );
/*
Copyright 2020 Mark Cheret (email: mark@cheret.de)

View file

@ -80,7 +80,7 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
== Changelog ==
= 2.2.0d2 =
= 2.1.4 =
- Add: Dashboard: Main settings: add settings for scroll offset and duration
- Add: Dashboard: Tooltip settings: add settings for display delays and fade durations
- Add: Styling: Tooltips: fix font size issue by adding font size to settings with legacy as default