From 75558d98ac3cd3ded4b101ad2003bcbd4c86077f Mon Sep 17 00:00:00 2001
From: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
Date: Tue, 1 Dec 2020 12:59:28 +0000
Subject: [PATCH] development update 2.1.4d6 for testing and sharing
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2429410 b8457f37-d9ea-0310-8a92-e5e31aec5664
---
class/dashboard/layout.php | 23 +++++++++--
class/dashboard/subpage-main.php | 40 +++++++------------
class/init.php | 12 +++---
css/public.css | 4 +-
css/settings.css | 12 +++---
footnotes.php | 4 +-
readme.txt | 9 +++--
.../dashboard/customize-hyperlink-arrow.html | 12 ------
.../settings-reference-container.html | 18 ++++++---
9 files changed, 70 insertions(+), 64 deletions(-)
delete mode 100644 templates/dashboard/customize-hyperlink-arrow.html
diff --git a/class/dashboard/layout.php b/class/dashboard/layout.php
index 7910c3b..e4d77eb 100644
--- a/class/dashboard/layout.php
+++ b/class/dashboard/layout.php
@@ -6,10 +6,13 @@
* @author Stefan Herndler
* @since 1.5.0 12.09.14 10:56
*
- * 2.1.2 added version # of settings.css for cache busting 2020-11-19T1456+0100
- * 2.1.4 automated version number update 2020-11-30T0648+0100
- *
- * Last modified: 2020-11-30T0649+0100
+ * Edited:
+ * 2.1.2 add versioning of settings.css for cache busting 2020-11-19T1456+0100
+ * 2.1.4 automate passing version number for cache busting 2020-11-30T0648+0100
+ * 2.1.4 fix punctuation issue in dashboard labels 2020-12-01T0211+0100
+ * ########## this fix reverted for now; restore when updating strings and translations
+ *
+ * Last modified: 2020-12-01T0439+0100
*/
@@ -381,12 +384,24 @@ abstract class MCI_Footnotes_LayoutEngine {
* @param string $p_str_SettingName Name of the Settings key to connect the Label with the input/select field.
* @param string $p_str_Caption Label caption.
* @return string
+ *
+ * Edited 2020-12-01T0159+0100
+ * @since 2.1.4 no colon
*/
protected function addLabel($p_str_SettingName, $p_str_Caption) {
if (empty($p_str_Caption)) {
return "";
}
+ // remove the colon causing localization issues with French,
+ // and with languages not using punctuation at all,
+ // and with languages using other punctuation marks instead of colon,
+ // e.g. Greek using a raised dot.
+ // In French, colon is preceded by a space, forcibly non-breaking,
+ // and narrow per new school.
+ // Eventually add colon to label strings for inclusion in localization.
+ // Else drop colons after labels.
return sprintf('', $p_str_SettingName, $p_str_Caption);
+ // ^ here deleted colon 2020-12-01T0156+0100
}
/**
diff --git a/class/dashboard/subpage-main.php b/class/dashboard/subpage-main.php
index d7f460d..cb432eb 100644
--- a/class/dashboard/subpage-main.php
+++ b/class/dashboard/subpage-main.php
@@ -94,8 +94,9 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
// Leave intact since this is not localized:
$this->addMetaBox("settings", "love", MCI_Footnotes_Config::C_STR_PLUGIN_HEADING_NAME . ' ' . MCI_Footnotes_Config::C_STR_LOVE_SYMBOL_HEADING, "Love"),
- // This is restored to meet user demand for arrow symbol semantics:
- $this->addMetaBox("customize", "hyperlink-arrow", __("Hyperlink symbol in the Reference container", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "HyperlinkArrow"),
+ // 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.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"),
@@ -155,17 +156,21 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
"label-collapse" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, __("Collapse references by default", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
"collapse" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, $l_arr_Enabled),
- "label-symbol" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, __("Display a backlink symbol", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
- "symbol" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, $l_arr_Enabled),
-
"label-startpage" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_START_PAGE_ENABLE, __("Display on start page too", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
"startpage" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_START_PAGE_ENABLE, $l_arr_Enabled),
- "label-3column" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, __("Three-column layout", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
- "3column" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, $l_arr_Enabled),
+ "label-symbol" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, __("Display a backlink symbol", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
+ "symbol-enable" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE, $l_arr_Enabled),
+ "symbol-options" => $this->addSelectBox(MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW, MCI_Footnotes_Convert::getArrow()),
+ "symbol-custom" => $this->addTextBox(MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW_USER_DEFINED),
+ "symbol-comment" => __("Your input overrides the selection", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
"label-switch" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, __("Symbol appended, not prepended", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
- "switch" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, $l_arr_Enabled),
+ "switch" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH, $l_arr_Enabled),
+
+ "label-3column" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, __("Backlink symbol in an extra column", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
+ "3column" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE, $l_arr_Enabled),
+ "3column-comment" => __("This legacy layout is available if identical footnotes are not combined.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
"label-position" => $this->addLabel(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, __("Where shall the reference container appear", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
"position" => $this->addSelectBox(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, $l_arr_Positions),
@@ -455,24 +460,9 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
* The former 'hyperlink arrow', incompatible with combined identical footnotes,
* became 'prepended arrow' in v2.0.3 after a user complaint about missing backlinking semantics
* of the footnote number.
+ *
+ * @since 2.1.4 moved to Settings > Reference container > Display a backlink symbol
*/
- public function HyperlinkArrow() {
- // load template file
- $l_obj_Template = new MCI_Footnotes_Template(MCI_Footnotes_Template::C_STR_DASHBOARD, "customize-hyperlink-arrow");
- // replace all placeholders
- $l_obj_Template->replace(
- array(
- "label-symbol" => $this->addLabel(MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW, __("Hyperlink symbol", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
- "symbol" => $this->addSelectBox(MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW, MCI_Footnotes_Convert::getArrow()),
-
- "label-user-defined" => $this->addLabel(MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW_USER_DEFINED, __("or enter a user defined symbol", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
- "user-defined" => $this->addTextBox(MCI_Footnotes_Settings::C_STR_HYPERLINK_ARROW_USER_DEFINED),
- "comment" => __("if set it overrides the hyperlink symbol above", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)
- )
- );
- // display template with replaced placeholders
- echo $l_obj_Template->getContent();
- }
/**
* Displays the custom css box.
diff --git a/class/init.php b/class/init.php
index 8b4c318..c3b6ee4 100644
--- a/class/init.php
+++ b/class/init.php
@@ -7,13 +7,13 @@
* @since 1.5.0 12.09.14 10:56
*
* Edited:
- * 1.6.5: Replaced deprecated function create_function()
- * 2.0.0: Added jQueryUI from Cloudflare 2020-10-26T1907+0100
- * 2.0.3: Added style sheet versioning 2020-10-29T1413+0100
- * 2.0.4: Added jQuery UI from WordPress 2020-11-01T1902+0100
- * 2.1.4: Automated update of version number for cache busting 2020-11-30T0646+0100
+ * 1.6.5 replace deprecated function create_function()
+ * 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.1.4 automate passing version number for cache busting 2020-11-30T0646+0100
*
- * Last modified: 2020-11-30T0646+0100
+ * Last modified: 2020-12-01T0146+0100
*/
diff --git a/css/public.css b/css/public.css
index ba327eb..d40d844 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.1.4d5
+ * Version: 2.1.4d6
*
- * Last modified: 2020-11-30T0712+0100
+ * Last modified: 2020-12-01T0450+0100
*/
diff --git a/css/settings.css b/css/settings.css
index ee9564a..a2d4167 100755
--- a/css/settings.css
+++ b/css/settings.css
@@ -4,9 +4,9 @@
* Created-Date: 15.05.14
* Created-Time: 16:21
* Since: 1.0
- * Version: 2.1.4d5
+ * Version: 2.1.4d6
*
- * Last modified: 2020-11-30T0712+0100
+ * Last modified: 2020-12-01T0450+0100
*/
@@ -42,23 +42,25 @@
On User Request: limited to a number of IDs to not affect all dashboards
[[label-symbol]] | -[[symbol]] | -
[[label-user-defined]] | -[[user-defined]] [[comment]] |
-