From fa5b3536b03a7da7a4d9490747a5997a68b77539 Mon Sep 17 00:00:00 2001
From: pewgeuges <73141620+pewgeuges@users.noreply.github.com>
Date: Thu, 5 Nov 2020 18:05:49 +0000
Subject: [PATCH] =?UTF-8?q?Releasing=20v2.0.6=20only=20obvious=20and=20dir?=
=?UTF-8?q?ely=20needed=20edits=20cannot=20wait=20with=20respect=20to=20us?=
=?UTF-8?q?ers,=20cannot=20keep=20responding=20to=20users=20without=20prov?=
=?UTF-8?q?iding=20this.=20May=20we=20please=20do=20the=20more=20extensive?=
=?UTF-8?q?=20testing=20when=20bigger=20edits=20are=20at=20stake.=20Thank?=
=?UTF-8?q?=20you.=20=E2=80=94=20For=20consistency,=20tags/2.0.5=20is=20in?=
=?UTF-8?q?cluded=20as-is=20because=20it=20was=20actually=20delivered=20to?=
=?UTF-8?q?=20our=20users=20only=20because=20the=20readme.txt=20was=20up-t?=
=?UTF-8?q?o-date=20too=20soon.=20So,=20that=20code=20is=20actually=20stil?=
=?UTF-8?q?l=20on=20part=20of=20our=20users=20machines=20and=20I=20cannot?=
=?UTF-8?q?=20hide=20away=20the=20priority=20level=20changes.=20See=20Chan?=
=?UTF-8?q?gelog=20section.=20Sorry=20for=20that!?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/2.0.5@2413466 b8457f37-d9ea-0310-8a92-e5e31aec5664
---
class/init.php | 8 +-
class/settings.php | 742 +++++++++---------
class/task.php | 96 +--
css/public.css | 72 +-
footnotes.php | 2 +-
languages/en_GB.mo | Bin 9608 -> 9607 bytes
languages/en_GB.po | 4 +-
languages/en_US.mo | Bin 9600 -> 9599 bytes
languages/en_US.po | 4 +-
readme.txt | 18 +-
templates/public/footnote.html | 15 +-
.../public/reference-container-body.html | 15 +-
templates/public/reference-container.html | 90 +--
templates/public/tooltip.html | 14 +-
14 files changed, 510 insertions(+), 570 deletions(-)
diff --git a/class/init.php b/class/init.php
index cd8242c..e4bc45a 100644
--- a/class/init.php
+++ b/class/init.php
@@ -12,7 +12,7 @@
* Edited for v2.0.3: Added style sheet versioning 2020-10-29T1413+0100
* Edited for v2.0.4: Added jQuery UI from WordPress 2020-11-01T1902+0100
*
- * Last modified: 2020-11-05T0638+0100
+ * Last modified: 2020-11-02T2003+0100
*/
@@ -70,8 +70,8 @@ class MCI_Footnotes {
*
* Contributed by Felipe Lavín Z. Thankfully acknowledged.
*
- * create_function() was deprecated in PHP 7.2:
- *
+ * Deprecated in PHP 7.2
+ * See
* See also:
*/
public function initializeWidgets() {
@@ -126,6 +126,6 @@ class MCI_Footnotes {
wp_enqueue_script('mci-footnotes-js-jquery-tools', plugins_url('../js/jquery.tools.min.js', __FILE__));
// IMPORTANT: up-to-date plugin version number for cache busting.
- wp_enqueue_style('mci-footnotes-css-public', plugins_url('../css/public.css', __FILE__), '', '2.0.5rc1');
+ wp_enqueue_style('mci-footnotes-css-public', plugins_url('../css/public.css', __FILE__), '', '2.0.5');
}
}
diff --git a/class/settings.php b/class/settings.php
index ec2e764..03b8af4 100644
--- a/class/settings.php
+++ b/class/settings.php
@@ -6,7 +6,7 @@
* @author Stefan Herndler
* @since 1.5.0 14.09.14 10:43
*
- * Edited for v2.0.4 2020-11-02T2115+0100
+ * Edited for v2.0.4 2020-11-01T0333+0100
*/
@@ -20,104 +20,104 @@
*/
class MCI_Footnotes_Settings {
- /**
- * Settings Container Key for the label of the reference container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_REFERENCE_CONTAINER_NAME = "footnote_inputfield_references_label";
+ /**
+ * Settings Container Key for the label of the reference container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_REFERENCE_CONTAINER_NAME = "footnote_inputfield_references_label";
- /**
- * Settings Container Key to collapse the reference container by default.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var bool
- */
- const C_BOOL_REFERENCE_CONTAINER_COLLAPSE = "footnote_inputfield_collapse_references";
+ /**
+ * Settings Container Key to collapse the reference container by default.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var bool
+ */
+ const C_BOOL_REFERENCE_CONTAINER_COLLAPSE = "footnote_inputfield_collapse_references";
- /**
- * Settings Container Key for the positioning of the reference container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_REFERENCE_CONTAINER_POSITION = "footnote_inputfield_reference_container_place";
+ /**
+ * Settings Container Key for the positioning of the reference container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_REFERENCE_CONTAINER_POSITION = "footnote_inputfield_reference_container_place";
- /**
- * Settings Container Key to combine identical footnotes.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var bool
- */
- const C_BOOL_COMBINE_IDENTICAL_FOOTNOTES = "footnote_inputfield_combine_identical";
+ /**
+ * Settings Container Key to combine identical footnotes.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var bool
+ */
+ const C_BOOL_COMBINE_IDENTICAL_FOOTNOTES = "footnote_inputfield_combine_identical";
- /**
- * Settings Container Key for the start of the footnotes short code.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_SHORT_CODE_START = "footnote_inputfield_placeholder_start";
+ /**
+ * Settings Container Key for the start of the footnotes short code.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_SHORT_CODE_START = "footnote_inputfield_placeholder_start";
- /**
- * Settings Container Key for the end of the footnotes short code.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_SHORT_CODE_END = "footnote_inputfield_placeholder_end";
+ /**
+ * Settings Container Key for the end of the footnotes short code.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_SHORT_CODE_END = "footnote_inputfield_placeholder_end";
- /**
- * Settings Container Key for the user defined start of the footnotes short code.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED = "footnote_inputfield_placeholder_start_user_defined";
+ /**
+ * Settings Container Key for the user defined start of the footnotes short code.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED = "footnote_inputfield_placeholder_start_user_defined";
- /**
- * Settings Container Key for the user defined end of the footnotes short code.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED = "footnote_inputfield_placeholder_end_user_defined";
+ /**
+ * Settings Container Key for the user defined end of the footnotes short code.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED = "footnote_inputfield_placeholder_end_user_defined";
- /**
- * Settings Container Key for the counter style of the footnotes.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_COUNTER_STYLE = "footnote_inputfield_counter_style";
+ /**
+ * Settings Container Key for the counter style of the footnotes.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_COUNTER_STYLE = "footnote_inputfield_counter_style";
- /**
- * Settings Container Key for the 'I love footnotes' text.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_LOVE = "footnote_inputfield_love";
+ /**
+ * Settings Container Key for the 'I love footnotes' text.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_LOVE = "footnote_inputfield_love";
- /**
- * Settings Container Key to look for footnotes in post excerpts.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_BOOL_FOOTNOTES_IN_EXCERPT = "footnote_inputfield_search_in_excerpt";
+ /**
+ * Settings Container Key to look for footnotes in post excerpts.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_BOOL_FOOTNOTES_IN_EXCERPT = "footnote_inputfield_search_in_excerpt";
/**
* Settings Container Key for the Expert mode.
@@ -128,32 +128,32 @@ class MCI_Footnotes_Settings {
*/
const C_BOOL_FOOTNOTES_EXPERT_MODE = "footnote_inputfield_enable_expert_mode";
- /**
- * Settings Container Key for the styling before the footnotes index.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_STYLING_BEFORE = "footnote_inputfield_custom_styling_before";
+ /**
+ * Settings Container Key for the styling before the footnotes index.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_STYLING_BEFORE = "footnote_inputfield_custom_styling_before";
- /**
- * Settings Container Key for the styling after the footnotes index.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_FOOTNOTES_STYLING_AFTER = "footnote_inputfield_custom_styling_after";
+ /**
+ * Settings Container Key for the styling after the footnotes index.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_FOOTNOTES_STYLING_AFTER = "footnote_inputfield_custom_styling_after";
- /**
- * Settings Container Key for the mouse-over box to be enabled.
- *
- * @author Stefan Herndler
- * @since 1.5.2
- * @var string
- */
- const C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED = "footnote_inputfield_custom_mouse_over_box_enabled";
+ /**
+ * Settings Container Key for the mouse-over box to be enabled.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.2
+ * @var string
+ */
+ const C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED = "footnote_inputfield_custom_mouse_over_box_enabled";
/**
* Settings Container Key for the mouse-over box to display only an excerpt.
@@ -173,32 +173,32 @@ class MCI_Footnotes_Settings {
*/
const C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH = "footnote_inputfield_custom_mouse_over_box_excerpt_length";
- /**
- * Settings Container Key for the mouse-over box to define the positioning.
- *
- * @author Stefan Herndler
- * @since 1.5.7
- * @var string
- */
- const C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION = "footnote_inputfield_custom_mouse_over_box_position";
+ /**
+ * Settings Container Key for the mouse-over box to define the positioning.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.7
+ * @var string
+ */
+ const C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION = "footnote_inputfield_custom_mouse_over_box_position";
- /**
- * Settings Container Key for the mouse-over box to define the offset (x).
- *
- * @author Stefan Herndler
- * @since 1.5.7
- * @var string
- */
- const C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X = "footnote_inputfield_custom_mouse_over_box_offset_x";
+ /**
+ * Settings Container Key for the mouse-over box to define the offset (x).
+ *
+ * @author Stefan Herndler
+ * @since 1.5.7
+ * @var string
+ */
+ const C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X = "footnote_inputfield_custom_mouse_over_box_offset_x";
- /**
- * Settings Container Key for the mouse-over box to define the offset (y).
- *
- * @author Stefan Herndler
- * @since 1.5.7
- * @var string
- */
- const C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y = "footnote_inputfield_custom_mouse_over_box_offset_y";
+ /**
+ * Settings Container Key for the mouse-over box to define the offset (y).
+ *
+ * @author Stefan Herndler
+ * @since 1.5.7
+ * @var string
+ */
+ const C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y = "footnote_inputfield_custom_mouse_over_box_offset_y";
/**
* Settings Container Key for the mouse-over box to define the color.
@@ -254,41 +254,41 @@ class MCI_Footnotes_Settings {
*/
const C_INT_FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH = "footnote_inputfield_custom_mouse_over_box_max_width";
- /**
- * Settings Container Key for the mouse-over box to define the box-shadow color.
- *
- * @author Stefan Herndler
- * @since 1.5.8
- * @var string
- */
- const C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR = "footnote_inputfield_custom_mouse_over_box_shadow_color";
+ /**
+ * Settings Container Key for the mouse-over box to define the box-shadow color.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.8
+ * @var string
+ */
+ const C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR = "footnote_inputfield_custom_mouse_over_box_shadow_color";
- /**
- * Settings Container Key for the Hyperlink arrow.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_HYPERLINK_ARROW = "footnote_inputfield_custom_hyperlink_symbol";
+ /**
+ * Settings Container Key for the Hyperlink arrow.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_HYPERLINK_ARROW = "footnote_inputfield_custom_hyperlink_symbol";
- /**
- * Settings Container Key for the user defined Hyperlink arrow.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_HYPERLINK_ARROW_USER_DEFINED = "footnote_inputfield_custom_hyperlink_symbol_user";
+ /**
+ * Settings Container Key for the user defined Hyperlink arrow.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_HYPERLINK_ARROW_USER_DEFINED = "footnote_inputfield_custom_hyperlink_symbol_user";
- /**
- * Settings Container Key for the user defined styling.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var string
- */
- const C_STR_CUSTOM_CSS = "footnote_inputfield_custom_css";
+ /**
+ * Settings Container Key for the user defined styling.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var string
+ */
+ const C_STR_CUSTOM_CSS = "footnote_inputfield_custom_css";
/**
* Settings Container Key the activation of the_title hook.
@@ -344,71 +344,71 @@ class MCI_Footnotes_Settings {
*/
const C_BOOL_EXPERT_LOOKUP_THE_POST = "footnote_inputfield_expert_lookup_the_post";
- /**
- * Stores a singleton reference of this class.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var MCI_Footnotes_Settings
- */
- private static $a_obj_Instance = null;
+ /**
+ * Stores a singleton reference of this class.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var MCI_Footnotes_Settings
+ */
+ private static $a_obj_Instance = null;
- /**
- * Contains all Settings Container names.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var array
- */
- private $a_arr_Container = array("footnotes_storage", "footnotes_storage_custom", "footnotes_storage_expert");
+ /**
+ * Contains all Settings Container names.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var array
+ */
+ private $a_arr_Container = array("footnotes_storage", "footnotes_storage_custom", "footnotes_storage_expert");
- /**
- * Contains all Default Settings for each Settings Container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var array
- */
- private $a_arr_Default = array(
- "footnotes_storage" => array(
- self::C_STR_REFERENCE_CONTAINER_NAME => 'References',
- self::C_BOOL_REFERENCE_CONTAINER_COLLAPSE => '',
- self::C_STR_REFERENCE_CONTAINER_POSITION => 'post_end',
- // Identical footnotes should not be combined by default
- // as long as the feature raises criticism for malfunctioning:
- //
- self::C_BOOL_COMBINE_IDENTICAL_FOOTNOTES => '',
- self::C_STR_FOOTNOTES_SHORT_CODE_START => '((',
- self::C_STR_FOOTNOTES_SHORT_CODE_END => '))',
- self::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED => '',
- self::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED => '',
- self::C_STR_FOOTNOTES_COUNTER_STYLE => 'arabic_plain',
- self::C_STR_FOOTNOTES_LOVE => 'no',
- self::C_BOOL_FOOTNOTES_IN_EXCERPT => 'yes',
+ /**
+ * Contains all Default Settings for each Settings Container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var array
+ */
+ private $a_arr_Default = array(
+ "footnotes_storage" => array(
+ self::C_STR_REFERENCE_CONTAINER_NAME => 'References',
+ self::C_BOOL_REFERENCE_CONTAINER_COLLAPSE => '',
+ self::C_STR_REFERENCE_CONTAINER_POSITION => 'post_end',
+ // Identical footnotes should not be combined by default
+ // as long as the feature raises criticism for malfunctioning:
+ //
+ self::C_BOOL_COMBINE_IDENTICAL_FOOTNOTES => '',
+ self::C_STR_FOOTNOTES_SHORT_CODE_START => '((',
+ self::C_STR_FOOTNOTES_SHORT_CODE_END => '))',
+ self::C_STR_FOOTNOTES_SHORT_CODE_START_USER_DEFINED => '',
+ self::C_STR_FOOTNOTES_SHORT_CODE_END_USER_DEFINED => '',
+ self::C_STR_FOOTNOTES_COUNTER_STYLE => 'arabic_plain',
+ self::C_STR_FOOTNOTES_LOVE => 'no',
+ self::C_BOOL_FOOTNOTES_IN_EXCERPT => 'yes',
self::C_BOOL_FOOTNOTES_EXPERT_MODE => 'no'
- ),
- "footnotes_storage_custom" => array(
- self::C_STR_FOOTNOTES_STYLING_BEFORE => '',
- self::C_STR_FOOTNOTES_STYLING_AFTER => ')',
- self::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED => 'yes',
+ ),
+ "footnotes_storage_custom" => array(
+ self::C_STR_FOOTNOTES_STYLING_BEFORE => '',
+ self::C_STR_FOOTNOTES_STYLING_AFTER => ')',
+ self::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED => 'yes',
self::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED => 'no',
self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH => 150,
- self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION => 'top right',
- self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X => 10,
- self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y => 10,
+ self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION => 'top right',
+ self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X => 10,
+ self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y => 10,
self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR => '',
self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND => '#fff7a7',
self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH => 1,
self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR => '#cccc99',
self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS => 3,
self::C_INT_FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH => 0,
- self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR => '#666666',
- self::C_STR_HYPERLINK_ARROW => '↑',
- self::C_STR_HYPERLINK_ARROW_USER_DEFINED => '',
- self::C_STR_CUSTOM_CSS => ''
- ),
- // These should all be enabled by default.
- // See
+ self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR => '#666666',
+ self::C_STR_HYPERLINK_ARROW => '↑',
+ self::C_STR_HYPERLINK_ARROW_USER_DEFINED => '',
+ self::C_STR_CUSTOM_CSS => ''
+ ),
+ // These should all be enabled by default.
+ // See
"footnotes_storage_expert" => array(
self::C_BOOL_EXPERT_LOOKUP_THE_TITLE => 'yes',
self::C_BOOL_EXPERT_LOOKUP_THE_CONTENT => 'yes',
@@ -417,54 +417,54 @@ class MCI_Footnotes_Settings {
self::C_BOOL_EXPERT_LOOKUP_WIDGET_TEXT => 'yes',
self::C_BOOL_EXPERT_LOOKUP_THE_POST => 'yes'
)
- );
+ );
- /**
- * Contains all Settings from each Settings container as soon as this class is initialized.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @var array
- */
- private $a_arr_Settings = array();
+ /**
+ * Contains all Settings from each Settings container as soon as this class is initialized.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @var array
+ */
+ private $a_arr_Settings = array();
- /**
- * Class Constructor. Loads all Settings from each WordPress Settings container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- */
- private function __construct() {
- $this->loadAll();
- }
+ /**
+ * Class Constructor. Loads all Settings from each WordPress Settings container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ */
+ private function __construct() {
+ $this->loadAll();
+ }
- /**
- * Returns a singleton of this class.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @return MCI_Footnotes_Settings
- */
- public static function instance() {
- // no instance defined yet, load it
- if (self::$a_obj_Instance === null) {
- self::$a_obj_Instance = new self();
- }
- // return a singleton of this class
- return self::$a_obj_Instance;
- }
+ /**
+ * Returns a singleton of this class.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @return MCI_Footnotes_Settings
+ */
+ public static function instance() {
+ // no instance defined yet, load it
+ if (self::$a_obj_Instance === null) {
+ self::$a_obj_Instance = new self();
+ }
+ // return a singleton of this class
+ return self::$a_obj_Instance;
+ }
- /**
- * Returns the name of a specified Settings Container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @param int $p_int_Index Settings Container Array Key Index.
- * @return string Settings Container name.
- */
- public function getContainer($p_int_Index) {
- return $this->a_arr_Container[$p_int_Index];
- }
+ /**
+ * Returns the name of a specified Settings Container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @param int $p_int_Index Settings Container Array Key Index.
+ * @return string Settings Container name.
+ */
+ public function getContainer($p_int_Index) {
+ return $this->a_arr_Container[$p_int_Index];
+ }
/**
* Returns the default values of a specific Settings Container.
@@ -478,114 +478,114 @@ class MCI_Footnotes_Settings {
return $this->a_arr_Default[$this->a_arr_Container[$p_int_Index]];
}
- /**
- * Loads all Settings from each Settings container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- */
- private function loadAll() {
- // clear current settings
- $this->a_arr_Settings = array();
- for ($i = 0; $i < count($this->a_arr_Container); $i++) {
- // load settings
- $this->a_arr_Settings = array_merge($this->a_arr_Settings, $this->Load($i));
- }
- }
+ /**
+ * Loads all Settings from each Settings container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ */
+ private function loadAll() {
+ // clear current settings
+ $this->a_arr_Settings = array();
+ for ($i = 0; $i < count($this->a_arr_Container); $i++) {
+ // load settings
+ $this->a_arr_Settings = array_merge($this->a_arr_Settings, $this->Load($i));
+ }
+ }
- /**
- * Loads all Settings from specified Settings Container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @param int $p_int_Index Settings Container Array Key Index.
- * @return array Settings loaded from Container of Default Settings if Settings Container is empty (first usage).
- */
- private function Load($p_int_Index) {
- // load all settings from container
- $l_arr_Options = get_option($this->getContainer($p_int_Index));
- // load all default settings
- $l_arr_Default = $this->a_arr_Default[$this->getContainer($p_int_Index)];
+ /**
+ * Loads all Settings from specified Settings Container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @param int $p_int_Index Settings Container Array Key Index.
+ * @return array Settings loaded from Container of Default Settings if Settings Container is empty (first usage).
+ */
+ private function Load($p_int_Index) {
+ // load all settings from container
+ $l_arr_Options = get_option($this->getContainer($p_int_Index));
+ // load all default settings
+ $l_arr_Default = $this->a_arr_Default[$this->getContainer($p_int_Index)];
- // no settings found, set them to their default value
- if (empty($l_arr_Options)) {
- return $l_arr_Default;
- }
- // iterate through all available settings ( = default values)
- foreach($l_arr_Default as $l_str_Key => $l_str_Value) {
- // available setting not found in the container
- if (!array_key_exists($l_str_Key, $l_arr_Options)) {
- // define the setting with its default value
- $l_arr_Options[$l_str_Key] = $l_str_Value;
- }
- }
- // iterate through each setting in the container
- foreach($l_arr_Options as $l_str_Key => $l_str_Value) {
- // remove all whitespace at the beginning and end of a setting
- //$l_str_Value = trim($l_str_Value);
- // write the sanitized value back to the setting container
- $l_arr_Options[$l_str_Key] = $l_str_Value;
- }
- // return settings loaded from Container
- return $l_arr_Options;
- }
+ // no settings found, set them to their default value
+ if (empty($l_arr_Options)) {
+ return $l_arr_Default;
+ }
+ // iterate through all available settings ( = default values)
+ foreach($l_arr_Default as $l_str_Key => $l_str_Value) {
+ // available setting not found in the container
+ if (!array_key_exists($l_str_Key, $l_arr_Options)) {
+ // define the setting with its default value
+ $l_arr_Options[$l_str_Key] = $l_str_Value;
+ }
+ }
+ // iterate through each setting in the container
+ foreach($l_arr_Options as $l_str_Key => $l_str_Value) {
+ // remove all whitespace at the beginning and end of a setting
+ //$l_str_Value = trim($l_str_Value);
+ // write the sanitized value back to the setting container
+ $l_arr_Options[$l_str_Key] = $l_str_Value;
+ }
+ // return settings loaded from Container
+ return $l_arr_Options;
+ }
- /**
- * Updates a whole Settings container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @param int $p_int_Index Index of the Settings container.
- * @param array $p_arr_newValues new Settings.
- * @return bool
- */
- public function saveOptions($p_int_Index, $p_arr_newValues) {
- if (update_option($this->getContainer($p_int_Index), $p_arr_newValues)) {
- $this->loadAll();
- return true;
- }
- return false;
- }
+ /**
+ * Updates a whole Settings container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @param int $p_int_Index Index of the Settings container.
+ * @param array $p_arr_newValues new Settings.
+ * @return bool
+ */
+ public function saveOptions($p_int_Index, $p_arr_newValues) {
+ if (update_option($this->getContainer($p_int_Index), $p_arr_newValues)) {
+ $this->loadAll();
+ return true;
+ }
+ return false;
+ }
- /**
- * Returns the value of specified Settings name.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- * @param string $p_str_Key Settings Array Key name.
- * @return mixed Value of the Setting on Success or Null in Settings name is invalid.
- */
- public function get($p_str_Key) {
- return array_key_exists($p_str_Key, $this->a_arr_Settings) ? $this->a_arr_Settings[$p_str_Key] : null;
- }
+ /**
+ * Returns the value of specified Settings name.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ * @param string $p_str_Key Settings Array Key name.
+ * @return mixed Value of the Setting on Success or Null in Settings name is invalid.
+ */
+ public function get($p_str_Key) {
+ return array_key_exists($p_str_Key, $this->a_arr_Settings) ? $this->a_arr_Settings[$p_str_Key] : null;
+ }
- /**
- * Deletes each Settings Container and loads the default values for each Settings Container.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- */
- public function ClearAll() {
- // iterate through each Settings Container
- for ($i = 0; $i < count($this->a_arr_Container); $i++) {
- // delete the settings container
- delete_option($this->getContainer($i));
- }
- // set settings back to the default values
- $this->a_arr_Settings = $this->a_arr_Default;
- }
+ /**
+ * Deletes each Settings Container and loads the default values for each Settings Container.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ */
+ public function ClearAll() {
+ // iterate through each Settings Container
+ for ($i = 0; $i < count($this->a_arr_Container); $i++) {
+ // delete the settings container
+ delete_option($this->getContainer($i));
+ }
+ // set settings back to the default values
+ $this->a_arr_Settings = $this->a_arr_Default;
+ }
- /**
- * Register all Settings Container for the Plugin Settings Page in the Dashboard.
- * Settings Container Label will be the same as the Settings Container Name.
- *
- * @author Stefan Herndler
- * @since 1.5.0
- */
- public function RegisterSettings() {
- // register all settings
- for ($i = 0; $i < count($this->a_arr_Container); $i++) {
- register_setting($this->getContainer($i), $this->getContainer($i));
- }
- }
+ /**
+ * Register all Settings Container for the Plugin Settings Page in the Dashboard.
+ * Settings Container Label will be the same as the Settings Container Name.
+ *
+ * @author Stefan Herndler
+ * @since 1.5.0
+ */
+ public function RegisterSettings() {
+ // register all settings
+ for ($i = 0; $i < count($this->a_arr_Container); $i++) {
+ register_setting($this->getContainer($i), $this->getContainer($i));
+ }
+ }
}
diff --git a/class/task.php b/class/task.php
index 5586204..c91bff1 100644
--- a/class/task.php
+++ b/class/task.php
@@ -8,10 +8,7 @@
*
* Edited for v2.0.0 and following.
*
- * Edited for v2.0.5: Autoload / infinite scroll support added thanks to code from
- * @docteurfitness
- *
- * Last modified 2020-11-05T0524+0100
+ * Last modified 2020-11-02T1147+0100
*/
// If called directly, abort:
@@ -57,43 +54,40 @@ class MCI_Footnotes_Task {
*
* @author Stefan Herndler
* @since 1.5.0
- *
- * Edited for v2.0.5 2020-11-02T0330+0100 2020-11-04T2006+0100
- *
- * Explicitly setting all priority to (default) "10" instead of lowest "PHP_INT_MAX",
- * especially for the_content, makes the footnotes reference container display
- * beneath the content and above other features added by other plugins.
- * Requested by users:
- * Documentation:
- *
- * But then, the blog engine calls this plugin in the editor, as reported in:
- *
- *
+ *
+ * Edited for v2.0.5 2020-11-02T0330+0100
+ *
+ * Explicitly set all priority to default "10" instead of lowest "PHP_INT_MAX",
+ * especially for the_content, or footnotes won’t display beneath the content but
+ * below other features added by other plugins.
+ * Although the default, 10 seems to suffice.
+ * Requested by users:
+ * Documentation:
*/
public function registerHooks() {
// append custom css to the header
- add_filter('wp_head', array($this, "wp_head"), PHP_INT_MAX);
+ add_filter('wp_head', array($this, "wp_head"), 10);
// append the love and share me slug to the footer
- add_filter('wp_footer', array($this, "wp_footer"), PHP_INT_MAX);
+ add_filter('wp_footer', array($this, "wp_footer"), 10);
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_TITLE))) {
- add_filter('the_title', array($this, "the_title"), PHP_INT_MAX);
+ add_filter('the_title', array($this, "the_title"), 10);
}
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"), PHP_INT_MAX);
+ add_filter('the_content', array($this, "the_content"), 10);
}
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_EXCERPT))) {
- add_filter('the_excerpt', array($this, "the_excerpt"), PHP_INT_MAX);
+ add_filter('the_excerpt', array($this, "the_excerpt"), 10);
}
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TITLE))) {
- add_filter('widget_title', array($this, "widget_title"), PHP_INT_MAX);
+ add_filter('widget_title', array($this, "widget_title"), 10);
}
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_WIDGET_TEXT))) {
- add_filter('widget_text', array($this, "widget_text"), PHP_INT_MAX);
+ add_filter('widget_text', array($this, "widget_text"), 10);
}
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_EXPERT_LOOKUP_THE_POST))) {
- add_filter('the_post', array($this, "the_post"), PHP_INT_MAX);
+ add_filter('the_post', array($this, "the_post"), 10);
}
// reset stored footnotes when displaying the header
self::$a_arr_Footnotes = array();
@@ -325,9 +319,8 @@ class MCI_Footnotes_Task {
* @return string
*/
public function search($p_str_Content, $p_bool_ConvertHtmlChars, $p_bool_HideFootnotesText) {
- // post ID to make everything unique wrt archive view and infinite scroll
- global $l_int_PostID;
- $l_int_PostID = get_the_id();
+ // prepare prepending post ID to make footnote IDs unique wrt archive view:
+ self::$a_str_Prefix = get_the_id() . '_';
// contains the index for the next footnote on this page
$l_int_FootnoteIndex = count(self::$a_arr_Footnotes) + 1;
// contains the starting position for the lookup of a footnote
@@ -392,36 +385,31 @@ class MCI_Footnotes_Task {
$l_str_DummyText = strip_tags($l_str_FootnoteText);
if (is_int($l_int_MaxLength) && strlen($l_str_DummyText) > $l_int_MaxLength) {
$l_str_ExcerptText = substr($l_str_DummyText, 0, $l_int_MaxLength);
- $l_str_ExcerptText = substr($l_str_ExcerptText, 0, strrpos($l_str_ExcerptText, ' '));
- // Removed hyperlink navigation on user request, but left element for style.
- $l_str_ExcerptText .= ' … ' . sprintf(__("%scontinue%s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), '', '');
+ $l_str_ExcerptText = substr($l_str_ExcerptText, 0, strrpos($l_str_ExcerptText, ' '));
+ // Removed hyperlink navigation on user request, but left element for style.
+ $l_str_ExcerptText .= ' … ' . sprintf(__("%scontinue%s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), '', '');
}
}
- // fill the footnotes template templates/public/footnote.html
+ // fill the footnotes template
$l_obj_Template->replace(
array(
- "post_id" => $l_int_PostID,
- "id" => $l_str_Index,
- "before" => MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_BEFORE),
- "index" => $l_str_Index,
- "after" => MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_AFTER),
- "text" => MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED)) ? $l_str_ExcerptText : "",
+ "id" => self::$a_str_Prefix . $l_str_Index,
+ "index" => $l_str_Index,
+ "text" => MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED)) ? $l_str_ExcerptText : "",
+ "before" => MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_BEFORE),
+ "after" => MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_AFTER)
)
);
$l_str_FootnoteReplaceText = $l_obj_Template->getContent();
-
// reset the template
$l_obj_Template->reload();
if (MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_FOOTNOTES_MOUSE_OVER_BOX_ENABLED))) {
$l_int_OffsetY = intval(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y));
$l_int_OffsetX = intval(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X));
-
- // fill in the tooltip template templates/public/tooltip.html
$l_obj_TemplateTooltip->replace(
array(
- "post_id" => $l_int_PostID,
- "id" => $l_str_Index,
+ "id" => self::$a_str_Prefix . $l_str_Index,
"position" => MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_POSITION),
"offset-y" => !empty($l_int_OffsetY) ? $l_int_OffsetY : 0,
"offset-x" => !empty($l_int_OffsetX) ? $l_int_OffsetX : 0
@@ -457,9 +445,6 @@ class MCI_Footnotes_Task {
* @return string
*/
public function ReferenceContainer() {
- // post ID to make everything unique wrt archive view and infinite scroll
- global $l_int_PostID;
- $l_int_PostID = get_the_id();
// no footnotes has been replaced on this page
if (empty(self::$a_arr_Footnotes)) {
return "";
@@ -505,14 +490,13 @@ class MCI_Footnotes_Task {
}
}
}
- // replace all placeholders in the template templates/public/reference-container-body.html
+ // replace all placeholders in the template
$l_obj_Template->replace(
array(
- "post_id" => $l_int_PostID,
- "id" => MCI_Footnotes_Convert::Index($l_str_FirstFootnoteIndex, MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE)),
- "arrow" => $l_str_Arrow,
- "index" => $l_str_FootnoteIndex,
- "text" => $l_str_FootnoteText
+ "index" => $l_str_FootnoteIndex,
+ "id" => self::$a_str_Prefix . MCI_Footnotes_Convert::Index($l_str_FirstFootnoteIndex, MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_FOOTNOTES_COUNTER_STYLE)),
+ "arrow" => $l_str_Arrow,
+ "text" => $l_str_FootnoteText
)
);
// extra line breaks for page source legibility:
@@ -522,15 +506,15 @@ class MCI_Footnotes_Task {
$l_obj_Template->reload();
}
- // load template file templates/public/reference-container.html
+ // load template file
$l_obj_TemplateContainer = new MCI_Footnotes_Template(MCI_Footnotes_Template::C_STR_PUBLIC, "reference-container");
$l_obj_TemplateContainer->replace(
array(
- "post_id" => $l_int_PostID,
- "label" => MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_NAME),
+ "label" => MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_NAME),
"button-style" => !MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE)) ? 'display: none;' : '',
- "style" => MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE)) ? 'display: none;' : '',
- "content" => $l_str_Body
+ "id" => "footnote_references_container",
+ "style" => MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE)) ? 'display: none;' : '',
+ "content" => $l_str_Body
)
);
diff --git a/css/public.css b/css/public.css
index 64c0ff8..6bd9d97 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.0.6
+ * Version: 2.0.5
*
- * Last modified: 2020-11-04T2131+0100
+ * Last modified: 2020-11-02T2050+0100
*/
@@ -38,6 +38,9 @@
*/
.footnote_plugin_tooltip_text {
+ vertical-align: top !important;
+ position: relative !important;
+ top: 0.6em !important;
cursor: pointer;
z-index: 1;
}
@@ -71,6 +74,11 @@ span.footnote_tooltip {
/* Footnotes reference container
*/
+.footnote-reference-container {
+ width: 100%;
+ border: none;
+}
+
/* label */
.footnote_container_prepare {
display: block !important;
@@ -99,41 +107,30 @@ span.footnote_tooltip {
}
/* collapse button */
-/* fully clickable, not sign only */
-.footnote_reference_container_collapse_button {
+#footnote_reference_container_collapse_button {
cursor: pointer;
}
.footnote_container_prepare > p > span:last-child a {
- text-decoration: none !important;
+ text-decoration: none;
}
.footnote_container_prepare > p > span:last-child a:hover {
text-decoration: underline;
color: #008800;
}
-/* Table starts here */
-.footnote-reference-container {
- width: 100%;
- border: none;
-}
-
-/* footnotes
- * class footnote_plugin_link is for backcompat.
- * Used in reference-container-body.html
- * See
-.footnote_plugin_link, */
+/* footnotes */
.footnote_plugin_index,
.footnote_plugin_text {
border:none !important;
- text-align: left !important;
- vertical-align: top !important;
- padding: 10px 5px 5px 0 !important;
+ text-align: left;
+ vertical-align: top;
+ padding: 10px 3px 5px 0;
}
.footnote_plugin_index a,
.footnote_plugin_text a {
- text-decoration: none !important;
+ text-decoration: none;
}
-.footnote_plugin_index:hover,
+.footnote_plugin_index a:hover,
.footnote_plugin_text a:hover {
text-decoration: underline !important;
}
@@ -144,37 +141,44 @@ span.footnote_tooltip {
word-wrap: normal !important;
word-break: unset;
word-break: keep-all !important;
- max-width: 140px;
- width: 1px; /*auto-extending column to fit widest*/
white-space: nowrap;
+ max-width: 140px;
overflow: hidden;
}
-.footnote_plugin_text {
- width: unset; /*unset width of text column to fix site issues*/
-}
-
-/* Responsive*/
@media only screen and (max-width: 768px) {
.footnote_plugin_index {
max-width: 100px;
}
}
+.footnote_plugin_text {
+ width: unset; /*unset width of text column to fix site issues*/
+}
/* 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 (button, arrows) and link styling are removed.
+ * but it takes a wrapper to avoid a page break before the table
*/
.footnote_container_overall_wrapper {
page-break-inside: avoid;
}
-
+.footnote_container_prepare {
+ page-break-after: avoid;
+}
+table.footnote_reference_container td {
+ display: block;
+}
+table.footnote_reference_container {
+ page-break-before: avoid;
+ page-break-inside: auto;
+}
+table.footnote_reference_container tr {
+ page-break-before: auto;
+}
@media print {
.footnote_tooltip,
- .footnote_reference_container_collapse_button,
+ .footnote_reference_container_collapse_button_outfit,
.footnote_plugin_index_arrow {
display: none;
}
@@ -185,7 +189,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 { /*hides the Edit button in WP2020*/
display: none; /*(added as a service)*/
}
}
diff --git a/footnotes.php b/footnotes.php
index a3f4c54..4353864 100755
--- a/footnotes.php
+++ b/footnotes.php
@@ -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.0.4
+ Version: 2.0.5
Author URI: http://cheret.de/plugins/footnotes-2/
Text Domain: footnotes
Domain Path: /languages
diff --git a/languages/en_GB.mo b/languages/en_GB.mo
index 14ad81398048c222bc5f6efeae3740939ce7ce41..a1289db53de35302ae60e97a73e26aaf71c14705 100755
GIT binary patch
delta 478
zcmXZXze_@46vpvWVg9NvDXAgEHH(M~r6uCvU?3t`LnH(dw6wI<*mQ%28id5PA)?lx
zxZ&b;4xGfH#*mtfcM#4NqyrXf$vdA5fFL;1qVfy64sJ
zI8OfyxA7bG-6km_xP=zhQ3G7y3f`fCZ>T{(O5WuY3p9Rk8BGpNSV2v=i$Od?Vpxf|n(Ng~cMs7LgQDK?s74jfJ3{)glO57>L+f
zh-fR~A{H8JA(dEYDM8Rie}nIkZO(IMm~)u#sCZnweTw*b5y@F1eYlPzxQz)s3_Zhc
z>Pzgz8yvs~jA8?I{tb1mi8lUW8ha^Hm`8oTggRfc#TSRm28}VSp?-Le(^$t*{KXZF
zXGCUj6T9#f^}}-<#%t8Y>Zo(CsKJb^NIMSV6sB+zy{zBbaF<4sMiqPT3N^_c#_>6<
z8)5y92K_Hw#&6Vj1yc0mBIa-nHNXK*;02oaf*SP04KJTKPvZy2(dN*E9%{le#;}6A
e&=wBiUa%isFgpsX&g`5MJSI\n"
"Language: en_GB\n"
@@ -348,7 +348,7 @@ msgstr "Vertical offset downwards"
#: class/dashboard/subpage-main.php:335
msgid "Offset (Y axis) in px (may be negative)"
-msgstr "pixels; negative value for an upwards offset"
+msgstr "pixels; negative value for a upwards offset"
#: class/dashboard/subpage-main.php:337
msgid "Color"
diff --git a/languages/en_US.mo b/languages/en_US.mo
index bdadec49319d9ea0bb300f9c21689e73379c4675..a1ad81a716cd94ac77899a73a3fcd6219e0c8016 100644
GIT binary patch
delta 478
zcmXZXu}eZx6vy#HVlOj$WTZwA+AAU+R4*bDMBdU+34#hOEp7TA6b-LIP+S`#YHbK2
zf@f1f;3N(;N(i;oAJL@WLvOjCdk*Jb&hO%Ic<}TZ_G}Tc(jqfh#CbfyX*>^XVU+qB
zC-4qu@evK|pw9PD=RPrmzqo(~MG7s{_c_%0y^MIW#ic@H85^h{KHvtnaS?y8jG-lw
zO+3O$Y@&X6iAlUgU962d*F_EXharqwBI{`48s;tUf5R$`1dTez@CG%>Jx<|sPT{(+~Cs3T^irGf+-G7m`6>xj}a`PE_94@
YSo6<}oH_1PoSkjQe@WCMzMFQ#BPe4uoB#j-
delta 480
zcmXZXu}eZx6vy#nX=<5Tq9s9S&j?8>wIHH+P7PKdSkThqW<$FWyat7$wIRgTh9C+a
zw$ulaV9?w>qXMnsH+$QYI|jui~zvEw<8P&d(s
z*BHS&^kN5f{sndJ9h3NjQ|P0Z#1!iL4b=I~q*#*UvPUC@r>Gy^;v%+j8o#lO?irCK
z+{a-&L;dgqC-4e&u{P>l7d6-~4r0I%S->!+(KM|84XZR_G#WUHEz~487{CXo?l|=;
z4$%L=ZTv)imm$SCuHiiHpa!Vn9A07wpHYMM3eM#XS806VEXFxBp^2KXh<+@iE_8rV
bJhW@x_0Z7rZZ5l$w;yA5zw5|069vy7$elGr
diff --git a/languages/en_US.po b/languages/en_US.po
index 8c26f64..6f745ba 100755
--- a/languages/en_US.po
+++ b/languages/en_US.po
@@ -5,7 +5,7 @@ msgstr ""
"Project-Id-Version: footnotes\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/footnotes\n"
"POT-Creation-Date: 2014-10-18 20:59+0100\n"
-"PO-Revision-Date: 2020-11-04T2153+0100\n"
+"PO-Revision-Date: 2020-11-01T1641+0100\n"
"Last-Translator: @pewgeuges\n"
"Language-Team: SHE \n"
"Language: en_US\n"
@@ -348,7 +348,7 @@ msgstr "Vertical offset downwards"
#: class/dashboard/subpage-main.php:335
msgid "Offset (Y axis) in px (may be negative)"
-msgstr "pixels; negative value for an upwards offset"
+msgstr "pixels; negative value for a upwards offset"
#: class/dashboard/subpage-main.php:337
msgid "Color"
diff --git a/readme.txt b/readme.txt
index 2a07fa2..d4c685b 100755
--- a/readme.txt
+++ b/readme.txt
@@ -4,14 +4,12 @@ Tags: footnote, footnotes, bibliography, formatting, notes, Post, posts, referen
Requires at least: 3.9
Tested up to: 5.5
Requires PHP: 5.6
-Stable Tag: 2.0.4
+Stable Tag: 2.0.5
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
== Description ==
-**footnotes** is now continually improved. Please feel free to check our current release candidate v2.0.5rc1, available at the bottom of the [Advanced view](https://wordpress.org/plugins/footnotes/advanced/).
-
Featured on wpmudev: http://premium.wpmudev.org/blog/12-surprisingly-useful-wordpress-plugins-you-dont-know-about/
Cheers for the review, folks!
@@ -82,19 +80,12 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
== Changelog ==
-= 2.0.5rc1 =
-- Update: Autoload / infinite scroll support added thanks to @docteurfitness
-- Bugfix: Settings style sheet unenqueued to fix input boxes on public pages (enqueued for 2.0.4)
-- Bugfix: Public style sheet: Footnote referrers: deleted vertical align tweaks for cross-theme and user agent compatibility
-- Bugfix: Public style sheet: Reference container: auto-extending column to fit widest, to fix display with short note texts
-- Bugfix: Public style sheet: Reference container: IDs: slightly increased left padding
+= 2.0.5 =
+- Bugfix: Input boxes on public pages
+- Bugfix: Get references container close to content, not below all other features
- 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
- Bugfix: Restore cursor shape pointer over 'Continue reading' button after hyperlink removal
-- Update: Tooltip infobox: set display predelay to 0 for responsiveness (was 800 since 2.0.0, 400 before)
-- Bugfix: Reference container: collapse button fully clickable, not sign only
-- Bugfix: Reference container: collapse button 'collapse' with minus sign not hyphen-minus
-- Bugfix: Translations: Spelling error in en_GB and en_US
= 2.0.4 =
- Update: Restored arrow settings to customize or disable the now prepended arrow symbol
@@ -103,7 +94,6 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
- Bugfix: Reference container: layout: removed inconvenient left/right cellpadding
- Bugfix: Tooltip infobox: improved layout with inherited font size by lower line height
- Bugfix: Tooltip infobox: 'Continue reading' button: disabled default underline
-- Bugfix: Translations: reviewed all locales (en, de, es, fr), synced ref line # with edited code
- Bugfix: Fixed display of 2 dashboard headings
= 2.0.3 =
diff --git a/templates/public/footnote.html b/templates/public/footnote.html
index 6b55a17..d7fab35 100755
--- a/templates/public/footnote.html
+++ b/templates/public/footnote.html
@@ -1,13 +1,2 @@
-
-
+
+
diff --git a/templates/public/reference-container-body.html b/templates/public/reference-container-body.html
index b47e714..ea61748 100755
--- a/templates/public/reference-container-body.html
+++ b/templates/public/reference-container-body.html
@@ -1,15 +1,4 @@
-
-
+
+
diff --git a/templates/public/reference-container.html b/templates/public/reference-container.html
index e2f6f3a..d0f21b0 100644
--- a/templates/public/reference-container.html
+++ b/templates/public/reference-container.html
@@ -1,51 +1,47 @@
diff --git a/templates/public/tooltip.html b/templates/public/tooltip.html
index da2e4db..9a7d10d 100644
--- a/templates/public/tooltip.html
+++ b/templates/public/tooltip.html
@@ -1,13 +1 @@
-
+