prerelease 2.2.2 because 2.2.1 is a quick patch and cannot be kept
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2439670 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
54051772b1
commit
6c7854352b
14 changed files with 265 additions and 139 deletions
|
@ -16,8 +16,9 @@
|
||||||
* 2.1.6 remove expert mode setting as irrelevant 2020-12-09T2105+0100
|
* 2.1.6 remove expert mode setting as irrelevant 2020-12-09T2105+0100
|
||||||
* 2.2.0 add options, redistribute, update strings 2020-12-12T2135+0100
|
* 2.2.0 add options, redistribute, update strings 2020-12-12T2135+0100
|
||||||
* 2.2.0 shortcode for reference container custom position 2020-12-13T2055+0100
|
* 2.2.0 shortcode for reference container custom position 2020-12-13T2055+0100
|
||||||
|
* 2.2.2 Custom CSS settings container migration 2020-12-15T0709+0100
|
||||||
*
|
*
|
||||||
* Last modified: 2020-12-14T1404+0100
|
* Last modified: 2020-12-15T0928+0100
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,7 +80,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
$l_arr_Tabs = array();
|
$l_arr_Tabs = array();
|
||||||
$l_arr_Tabs[] = $this->addSection("settings", __("General settings", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), 0, true);
|
$l_arr_Tabs[] = $this->addSection("settings", __("General settings", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), 0, true);
|
||||||
$l_arr_Tabs[] = $this->addSection("customize", __("Referrers and tooltips", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), 1, true);
|
$l_arr_Tabs[] = $this->addSection("customize", __("Referrers and tooltips", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), 1, true);
|
||||||
$l_arr_Tabs[] = $this->addSection("expert", __("Priority and CSS", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), 2, true);
|
$l_arr_Tabs[] = $this->addSection("expert", __("Priority level", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), 2, true);
|
||||||
|
$l_arr_Tabs[] = $this->addSection("customcss", __("Custom CSS", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), 3, true);
|
||||||
$l_arr_Tabs[] = $this->addSection("how-to", __("Quick start guide", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), null, false);
|
$l_arr_Tabs[] = $this->addSection("how-to", __("Quick start guide", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), null, false);
|
||||||
return $l_arr_Tabs;
|
return $l_arr_Tabs;
|
||||||
}
|
}
|
||||||
|
@ -107,28 +109,36 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
* @since 2.1.6 / 2.2.0 tabs reordered and renamed
|
* @since 2.1.6 / 2.2.0 tabs reordered and renamed
|
||||||
*/
|
*/
|
||||||
protected function getMetaBoxes() {
|
protected function getMetaBoxes() {
|
||||||
return array(
|
$l_arr_MetaBoxes = array();
|
||||||
$this->addMetaBox("settings", "start-end", __("Footnote start and end short codes", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "StartEnd"),
|
|
||||||
$this->addMetaBox("settings", "numbering", __("Footnotes numbering", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Numbering"),
|
|
||||||
$this->addMetaBox("settings", "scrolling", __("Scrolling behavior", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Scrolling"),
|
|
||||||
$this->addMetaBox("settings", "reference-container", __("Reference container", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "ReferenceContainer"),
|
|
||||||
$this->addMetaBox("settings", "excerpts", __("Footnotes in excerpts", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Excerpts"),
|
|
||||||
$this->addMetaBox("settings", "love", MCI_Footnotes_Config::C_STR_PLUGIN_HEADING_NAME . ' ' . MCI_Footnotes_Config::C_STR_LOVE_SYMBOL_HEADING, "Love"),
|
|
||||||
|
|
||||||
$this->addMetaBox("customize", "superscript", __("Referrer typesetting and formatting", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Superscript"),
|
|
||||||
$this->addMetaBox("customize", "mouse-over-box", __("Tooltips", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBox"),
|
|
||||||
$this->addMetaBox("customize", "mouse-over-box-truncation", __("Tooltip truncation", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxTruncation"),
|
|
||||||
$this->addMetaBox("customize", "mouse-over-box-position", __("Tooltip position", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxPosition"),
|
|
||||||
$this->addMetaBox("customize", "mouse-over-box-timing", __("Tooltip timing", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxTiming"),
|
|
||||||
$this->addMetaBox("customize", "mouse-over-box-appearance", __("Tooltip appearance", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxAppearance"),
|
|
||||||
$this->addMetaBox("customize", "custom-css", __("Custom CSS", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "CustomCSS"),
|
|
||||||
|
|
||||||
$this->addMetaBox("expert", "lookup", __("WordPress hooks and priority levels", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "LookupHooks"),
|
$l_arr_MetaBoxes[] = $this->addMetaBox("settings", "start-end", __("Footnote start and end short codes", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "StartEnd");
|
||||||
$this->addMetaBox("expert", "custom-css", __("Custom CSS", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "CustomCSS"),
|
$l_arr_MetaBoxes[] = $this->addMetaBox("settings", "numbering", __("Footnotes numbering", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Numbering");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("settings", "scrolling", __("Scrolling behavior", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Scrolling");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("settings", "reference-container", __("Reference container", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "ReferenceContainer");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("settings", "excerpts", __("Footnotes in excerpts", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Excerpts");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("settings", "love", MCI_Footnotes_Config::C_STR_PLUGIN_HEADING_NAME . ' ' . MCI_Footnotes_Config::C_STR_LOVE_SYMBOL_HEADING, "Love");
|
||||||
|
|
||||||
$this->addMetaBox("how-to", "help", __("Brief introduction in how to use the plugin", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Help"),
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customize", "superscript", __("Referrer typesetting and formatting", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Superscript");
|
||||||
$this->addMetaBox("how-to", "donate", __("Help us to improve our Plugin", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Donate")
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customize", "mouse-over-box", __("Tooltips", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBox");
|
||||||
);
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customize", "mouse-over-box-truncation", __("Tooltip truncation", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxTruncation");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customize", "mouse-over-box-position", __("Tooltip position", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxPosition");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customize", "mouse-over-box-timing", __("Tooltip timing", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxTiming");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customize", "mouse-over-box-appearance", __("Tooltip appearance", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "MouseOverBoxAppearance");
|
||||||
|
if (!MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_MIGRATED))) {
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customize", "custom-css", __("Your existing Custom CSS code", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "CustomCSS");
|
||||||
|
}
|
||||||
|
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("expert", "lookup", __("WordPress hooks with priority level", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "LookupHooks");
|
||||||
|
|
||||||
|
if (!MCI_Footnotes_Convert::toBool(MCI_Footnotes_Settings::instance()->get(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_MIGRATED))) {
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customcss", "custom-css-migration", __("Your existing Custom CSS code", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "CustomCSSMigration");
|
||||||
|
}
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("customcss", "custom-css-new", __("Custom CSS", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "CustomCSSNew");
|
||||||
|
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("how-to", "help", __("Brief introduction in how to use the plugin", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Help");
|
||||||
|
$l_arr_MetaBoxes[] = $this->addMetaBox("how-to", "donate", __("Help us to improve our Plugin", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), "Donate");
|
||||||
|
|
||||||
|
return $l_arr_MetaBoxes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -149,10 +159,10 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
);
|
);
|
||||||
// basic responsive page layout options:
|
// basic responsive page layout options:
|
||||||
$l_arr_PageLayoutOptions = array(
|
$l_arr_PageLayoutOptions = array(
|
||||||
"none" => __("Don’t fix the layout", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
"none" => __("no additional external style sheet", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
"reference-container" => __("to the reference container", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
"reference-container" => __("only to the reference container", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
"page-content" => __("to everything after the post title until the reference container", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
"page-content" => __("to the div element starting below the post title", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
"main-content" => __("to everything from the post title to the reference container", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
"main-content" => __("to the main element including the post title", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
);
|
);
|
||||||
// options for the separating punctuation between backlinks:
|
// options for the separating punctuation between backlinks:
|
||||||
// Unicode names are conventionally uppercase.
|
// Unicode names are conventionally uppercase.
|
||||||
|
@ -194,13 +204,13 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
"label-collapse" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, __("Collapse by default:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-collapse" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, __("Collapse by default:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"collapse" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, $l_arr_Enabled),
|
"collapse" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_REFERENCE_CONTAINER_COLLAPSE, $l_arr_Enabled),
|
||||||
|
|
||||||
"label-shortcode" => $this->addLabel(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE, __("Position shortcode:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
|
||||||
"shortcode" => $this->addTextBox(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE),
|
|
||||||
"notice-shortcode" => __("If present in the content, this shortcode will be replaced with the reference container.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
|
||||||
|
|
||||||
"label-position" => $this->addLabel(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, __("Default position:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-position" => $this->addLabel(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, __("Default position:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"position" => $this->addSelectBox(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, $l_arr_Positions),
|
"position" => $this->addSelectBox(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION, $l_arr_Positions),
|
||||||
"notice-position" => __("Will be overridden in the presence of the shortcode.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
"notice-position" => sprintf(__("To use the position shortcode, please set the position to: %s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), '<span style="font-style: normal;">' . __("at the end of the post", MCI_Footnotes_Config::C_STR_PLUGIN_NAME) . '</span>'),
|
||||||
|
|
||||||
|
"label-shortcode" => $this->addLabel(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE, __("Position shortcode:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
|
"shortcode" => $this->addTextBox(MCI_Footnotes_Settings::C_STR_REFERENCE_CONTAINER_POSITION_SHORTCODE),
|
||||||
|
"notice-shortcode" => __("If present in the content, any shortcode in this text box will be replaced with the reference container.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
|
|
||||||
"label-page-layout" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, __("Apply basic responsive page layout:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-page-layout" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, __("Apply basic responsive page layout:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"page-layout" => $this->addSelectBox(MCI_Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, $l_arr_PageLayoutOptions),
|
"page-layout" => $this->addSelectBox(MCI_Footnotes_Settings::C_STR_FOOTNOTES_PAGE_LAYOUT_SUPPORT, $l_arr_PageLayoutOptions),
|
||||||
|
@ -271,7 +281,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
*
|
*
|
||||||
* @author Stefan Herndler
|
* @author Stefan Herndler
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* Edited heading 2020-12-12T1412+0100
|
* Edited heading 2020-12-12T1412+0100
|
||||||
* @since 2.2.0 more short code options 2020-12-12T1412+0100
|
* @since 2.2.0 more short code options 2020-12-12T1412+0100
|
||||||
* @since 2.2.0 3 boxes for clarity 2020-12-12T1422+0100
|
* @since 2.2.0 3 boxes for clarity 2020-12-12T1422+0100
|
||||||
|
@ -478,7 +488,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
*
|
*
|
||||||
* @author Stefan Herndler
|
* @author Stefan Herndler
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* Edited heading 2020-12-12T1513+0100
|
* Edited heading 2020-12-12T1513+0100
|
||||||
* @since 2.1.1 option for superscript (optionally baseline referrers)
|
* @since 2.1.1 option for superscript (optionally baseline referrers)
|
||||||
* @since 2.2.0 option for link element moved here 2020-12-12T1514+0100
|
* @since 2.2.0 option for link element moved here 2020-12-12T1514+0100
|
||||||
|
@ -504,9 +514,7 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
"after" => $this->addTextBox(MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_AFTER),
|
"after" => $this->addTextBox(MCI_Footnotes_Settings::C_STR_FOOTNOTES_STYLING_AFTER),
|
||||||
|
|
||||||
"label-link" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_LINK_ELEMENT_ENABLED, __("Use the link element for referrers and backlinks:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-link" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_LINK_ELEMENT_ENABLED, __("Use the link element for referrers and backlinks:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"link" => $this->addSelectBox(MCI_Footnotes_Settings::C_BOOL_LINK_ELEMENT_ENABLED, $l_arr_Enabled),
|
"notice-link" => __("Please find this setting at the end of the reference container settings. The link element is needed to apply the theme’s link color.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
"notice-link" => __("The link element is needed to apply the theme’s link color.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
|
||||||
"description-link" => __("If the link element is not desired for styling, a simple span is used instead when the above is set to No. The link addresses have been removed. Else footnote clicks are logged in the browsing history and make the back button unusable.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// display template with replaced placeholders
|
// display template with replaced placeholders
|
||||||
|
@ -682,11 +690,13 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
|
|
||||||
"label-color" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR, __("Text color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-color" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR, __("Text color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"color" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR),
|
"color" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_COLOR),
|
||||||
"notice-color" => __("To use the current theme’s default text color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME) . ' ' . __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
// To use default: Clear or leave empty.
|
||||||
|
"notice-color" => sprintf(__("To use the current theme’s default text color: %s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
|
|
||||||
"label-background" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND, __("Background color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-background" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND, __("Background color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"background" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND),
|
"background" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND),
|
||||||
"notice-background" => __("To use the current theme’s default background color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME) . ' ' . __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
// To use default: Clear or leave empty.
|
||||||
|
"notice-background" => sprintf(__("To use the current theme’s default background color: %s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
|
|
||||||
"label-border-width" => $this->addLabel(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, __("Border width:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-border-width" => $this->addLabel(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, __("Border width:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"border-width" => $this->addNumBox(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, 0, 4, true),
|
"border-width" => $this->addNumBox(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH, 0, 4, true),
|
||||||
|
@ -694,7 +704,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
|
|
||||||
"label-border-color" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR, __("Border color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-border-color" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR, __("Border color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"border-color" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR),
|
"border-color" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR),
|
||||||
"notice-border-color" => __("To use the current theme’s default border color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME) . ' ' . __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
// To use default: Clear or leave empty.
|
||||||
|
"notice-border-color" => sprintf(__("To use the current theme’s default border color: %s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
|
|
||||||
"label-border-radius" => $this->addLabel(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, __("Rounded corner radius:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-border-radius" => $this->addLabel(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, __("Rounded corner radius:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"border-radius" => $this->addNumBox(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, 0, 500),
|
"border-radius" => $this->addNumBox(MCI_Footnotes_Settings::C_INT_FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS, 0, 500),
|
||||||
|
@ -702,7 +713,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
|
|
||||||
"label-box-shadow-color" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR, __("Box shadow color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
"label-box-shadow-color" => $this->addLabel(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR, __("Box shadow color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
"box-shadow-color" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR),
|
"box-shadow-color" => $this->addColorSelection(MCI_Footnotes_Settings::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR),
|
||||||
"notice-box-shadow-color" => __("To use the current theme’s default box shadow color:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME) . ' ' . __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
// To use default: Clear or leave empty.
|
||||||
|
"notice-box-shadow-color" => sprintf(__("To use the current theme’s default box shadow color: %s", MCI_Footnotes_Config::C_STR_PLUGIN_NAME), __("Clear or leave empty.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -736,6 +748,8 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
* list directly in the template, as CSS is in English anyway
|
* list directly in the template, as CSS is in English anyway
|
||||||
* @see templates/dashboard/customize-css.html
|
* @see templates/dashboard/customize-css.html
|
||||||
* 2020-12-09T1113+0100
|
* 2020-12-09T1113+0100
|
||||||
|
*
|
||||||
|
* 2.2.2 migrate Custom CSS to a dedicated tab 2020-12-15T0506+0100
|
||||||
*/
|
*/
|
||||||
public function CustomCSS() {
|
public function CustomCSS() {
|
||||||
// load template file
|
// load template file
|
||||||
|
@ -743,10 +757,9 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
// replace all placeholders
|
// replace all placeholders
|
||||||
$l_obj_Template->replace(
|
$l_obj_Template->replace(
|
||||||
array(
|
array(
|
||||||
// "label-css" => $this->addLabel(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS, __("Add custom CSS:", 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 cut and paste the content into the new text area under the new tab.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
"headline" => $this->addText(__("Recommended CSS classes:", 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.
|
||||||
|
@ -768,6 +781,42 @@ class MCI_Footnotes_Layout_Settings extends MCI_Footnotes_LayoutEngine {
|
||||||
echo $l_obj_Template->getContent();
|
echo $l_obj_Template->getContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function CustomCSSMigration() {
|
||||||
|
// load template file
|
||||||
|
$l_obj_Template = new MCI_Footnotes_Template(MCI_Footnotes_Template::C_STR_DASHBOARD, "customize-css-migration");
|
||||||
|
// replace all placeholders
|
||||||
|
$l_obj_Template->replace(
|
||||||
|
array(
|
||||||
|
"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),
|
||||||
|
"description-css" => __('Custom CSS migrates to a dedicated tab. This text area is intended to keep your data safe. Please cut and paste the content into the new text area under the new tab.', MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
|
|
||||||
|
"label-migrated" => $this->addLabel(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_MIGRATED, "Custom CSS migration complete:"),
|
||||||
|
"migrated" => $this->addCheckbox(MCI_Footnotes_Settings::C_BOOL_CUSTOM_CSS_MIGRATED),
|
||||||
|
"notice-migrated" => __("Please check this box when you are done migrating. After saving while this box is checked, the legacy Custom CSS containers are going to disappear.", MCI_Footnotes_Config::C_STR_PLUGIN_NAME),
|
||||||
|
|
||||||
|
)
|
||||||
|
);
|
||||||
|
// display template with replaced placeholders
|
||||||
|
echo $l_obj_Template->getContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function CustomCSSNew() {
|
||||||
|
// load template file
|
||||||
|
$l_obj_Template = new MCI_Footnotes_Template(MCI_Footnotes_Template::C_STR_DASHBOARD, "customize-css-new");
|
||||||
|
// replace all placeholders
|
||||||
|
$l_obj_Template->replace(
|
||||||
|
array(
|
||||||
|
"css" => $this->addTextArea(MCI_Footnotes_Settings::C_STR_CUSTOM_CSS_NEW),
|
||||||
|
|
||||||
|
"headline" => $this->addText(__("Recommended CSS classes:", MCI_Footnotes_Config::C_STR_PLUGIN_NAME)),
|
||||||
|
|
||||||
|
)
|
||||||
|
);
|
||||||
|
// display template with replaced placeholders
|
||||||
|
echo $l_obj_Template->getContent();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays available Hooks to look for Footnote short codes.
|
* Displays available Hooks to look for Footnote short codes.
|
||||||
*
|
*
|
||||||
|
|
|
@ -21,8 +21,9 @@
|
||||||
* 2.1.6 option to disable URL line wrapping 2020-12-09T1606+0100
|
* 2.1.6 option to disable URL line wrapping 2020-12-09T1606+0100
|
||||||
* 2.1.6 set default priority level of the_content to 98 2020-12-10T0447+0100
|
* 2.1.6 set default priority level of the_content to 98 2020-12-10T0447+0100
|
||||||
* 2.2.0 reference container custom position shortcode 2020-12-13T2056+0100
|
* 2.2.0 reference container custom position shortcode 2020-12-13T2056+0100
|
||||||
|
* 2.2.2 Custom CSS settings container migration 2020-12-15T0709+0100
|
||||||
*
|
*
|
||||||
* Last modified: 2020-12-13T2123+0100
|
* Last modified: 2020-12-15T0744+0100
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -320,8 +321,13 @@ class MCI_Footnotes_Settings {
|
||||||
* @author Stefan Herndler
|
* @author Stefan Herndler
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @var string
|
* @var string
|
||||||
|
*
|
||||||
|
* Edited:
|
||||||
|
* 2.2.2 migrate Custom CSS to a dedicated tab 2020-12-15T0520+0100
|
||||||
*/
|
*/
|
||||||
const C_STR_CUSTOM_CSS = "footnote_inputfield_custom_css";
|
const C_STR_CUSTOM_CSS = "footnote_inputfield_custom_css";
|
||||||
|
const C_STR_CUSTOM_CSS_NEW = "footnote_inputfield_custom_css_new";
|
||||||
|
const C_BOOL_CUSTOM_CSS_MIGRATED = "footnote_inputfield_custom_css_migrated";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Settings Container Key the activation of the_title hook.
|
* Settings Container Key the activation of the_title hook.
|
||||||
|
@ -504,8 +510,18 @@ class MCI_Footnotes_Settings {
|
||||||
* @author Stefan Herndler
|
* @author Stefan Herndler
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @var array
|
* @var array
|
||||||
|
*
|
||||||
|
* Edited:
|
||||||
|
* 2.2.2 added tab for Custom CSS 2020-12-15T0740+0100
|
||||||
|
*
|
||||||
|
* These are the storage container names, one per dashboard tab.
|
||||||
*/
|
*/
|
||||||
private $a_arr_Container = array("footnotes_storage", "footnotes_storage_custom", "footnotes_storage_expert");
|
private $a_arr_Container = array(
|
||||||
|
"footnotes_storage",
|
||||||
|
"footnotes_storage_custom",
|
||||||
|
"footnotes_storage_expert",
|
||||||
|
"footnotes_storage_custom_css",
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains all Default Settings for each Settings Container.
|
* Contains all Default Settings for each Settings Container.
|
||||||
|
@ -649,7 +665,9 @@ class MCI_Footnotes_Settings {
|
||||||
self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR => '#666666',
|
self::C_STR_FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR => '#666666',
|
||||||
self::C_STR_HYPERLINK_ARROW => '↑',
|
self::C_STR_HYPERLINK_ARROW => '↑',
|
||||||
self::C_STR_HYPERLINK_ARROW_USER_DEFINED => '',
|
self::C_STR_HYPERLINK_ARROW_USER_DEFINED => '',
|
||||||
self::C_STR_CUSTOM_CSS => ''
|
|
||||||
|
// Custom CSS migrates to a dedicated tab:
|
||||||
|
self::C_STR_CUSTOM_CSS => '',
|
||||||
|
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -694,7 +712,14 @@ class MCI_Footnotes_Settings {
|
||||||
self::C_INT_EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL => PHP_INT_MAX,
|
self::C_INT_EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL => PHP_INT_MAX,
|
||||||
self::C_INT_EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL => PHP_INT_MAX,
|
self::C_INT_EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL => PHP_INT_MAX,
|
||||||
|
|
||||||
)
|
),
|
||||||
|
|
||||||
|
"footnotes_storage_custom_css" => array(
|
||||||
|
|
||||||
|
self::C_STR_CUSTOM_CSS_NEW => '',
|
||||||
|
self::C_BOOL_CUSTOM_CSS_MIGRATED => '',
|
||||||
|
|
||||||
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -843,9 +868,9 @@ class MCI_Footnotes_Settings {
|
||||||
*
|
*
|
||||||
* @author Stefan Herndler
|
* @author Stefan Herndler
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
* Edit: This didn’t actually work.
|
* Edit: This didn’t actually work.
|
||||||
* @since 2.2.0 this function is not called any longer when deleting the plugin,
|
* @since 2.2.0 this function is not called any longer when deleting the plugin,
|
||||||
* to protect user data against loss, since manually updating a plugin is safer
|
* to protect user data against loss, since manually updating a plugin is safer
|
||||||
* done by deleting and reinstalling (see the warning about database backup).
|
* done by deleting and reinstalling (see the warning about database backup).
|
||||||
* 2020-12-13T1353+0100
|
* 2020-12-13T1353+0100
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*
|
*
|
||||||
* Since v2.1.4 of Footnotes
|
* Since v2.1.4 of Footnotes
|
||||||
*
|
*
|
||||||
* Last modified: 2020-12-06T1722+0100
|
* Last modified for v2.2.2 2020-12-15T1004+0100
|
||||||
*
|
*
|
||||||
* The enqueuing of this style sheet is optional and can be
|
* The enqueuing of this style sheet is optional and can be
|
||||||
* enabled in the Reference container settings.
|
* enabled in the Reference container settings.
|
||||||
|
@ -20,56 +20,66 @@ Rationale
|
||||||
In Hello Elementor Theme, this applies to .site-header, and
|
In Hello Elementor Theme, this applies to .site-header, and
|
||||||
also to .site-main, which is a class of the <main> element,
|
also to .site-main, which is a class of the <main> element,
|
||||||
at the condition that the page is not built with Elementor:
|
at the condition that the page is not built with Elementor:
|
||||||
body:not([class*="elementor-page-"])
|
body:not([class*="elementor-page-"])
|
||||||
Therefore, in pages built with Elementor, proper layout is
|
Therefore, in pages built with Elementor, proper layout is
|
||||||
applied only to features managed by Elementor, not others.
|
applied only to features managed by Elementor, not others.
|
||||||
|
|
||||||
The Footnotes references container is near the end of main.
|
Footnotes reference containers are near the bottom of main.
|
||||||
This style sheet lets Footnotes’ reference container come
|
This style sheet lets Footnotes’ reference containers come
|
||||||
into the benefit of the basic responsive layout style rules
|
into the benefit of the basic responsive layout style rules
|
||||||
that would apply if the page were not built with Elementor.
|
that would apply if the page were not built with Elementor.
|
||||||
|
|
||||||
This is mainly useful with Hello Elementor, but it might be
|
This is mainly useful with Hello Elementor but it helps fix
|
||||||
used also with another theme.
|
also other themes like Twenty Twenty-One.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
main, .main-content, .site-main {
|
main,
|
||||||
margin-right: auto;
|
.main-content,
|
||||||
margin-left: auto;
|
.site-main {
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 575px) {
|
@media (max-width: 575px) {
|
||||||
|
|
||||||
main, .main-content, .site-main {
|
main,
|
||||||
padding-right: 10px;
|
.main-content,
|
||||||
padding-left: 10px;
|
.site-main {
|
||||||
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
|
||||||
main, .main-content, .site-main {
|
main,
|
||||||
|
.main-content,
|
||||||
|
.site-main {
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
|
||||||
main, .main-content, .site-main {
|
main,
|
||||||
|
.main-content,
|
||||||
|
.site-main {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
|
||||||
main, .main-content, .site-main {
|
main,
|
||||||
|
.main-content,
|
||||||
|
.site-main {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
|
|
||||||
main, .main-content, .site-main {
|
main,
|
||||||
|
.main-content,
|
||||||
|
.site-main {
|
||||||
max-width: 960px;
|
max-width: 960px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*
|
*
|
||||||
* Since v2.1.4 of Footnotes
|
* Since v2.1.4 of Footnotes
|
||||||
*
|
*
|
||||||
* Last modified: 2020-12-06T1722+0100
|
* Last modified for v2.2.2 2020-12-15T1004+0100
|
||||||
*
|
*
|
||||||
* The enqueuing of this style sheet is optional and can be
|
* The enqueuing of this style sheet is optional and can be
|
||||||
* enabled in the Reference container settings.
|
* enabled in the Reference container settings.
|
||||||
|
@ -20,56 +20,60 @@ Rationale
|
||||||
In Hello Elementor Theme, this applies to .site-header, and
|
In Hello Elementor Theme, this applies to .site-header, and
|
||||||
also to .site-main, which is a class of the <main> element,
|
also to .site-main, which is a class of the <main> element,
|
||||||
at the condition that the page is not built with Elementor:
|
at the condition that the page is not built with Elementor:
|
||||||
body:not([class*="elementor-page-"])
|
body:not([class*="elementor-page-"])
|
||||||
Therefore, in pages built with Elementor, proper layout is
|
Therefore, in pages built with Elementor, proper layout is
|
||||||
applied only to features managed by Elementor, not others.
|
applied only to features managed by Elementor, not others.
|
||||||
|
|
||||||
The Footnotes references container is near the end of main.
|
Footnotes reference containers are near the bottom of main.
|
||||||
This style sheet lets Footnotes’ reference container come
|
This style sheet lets Footnotes’ reference containers come
|
||||||
into the benefit of the basic responsive layout style rules
|
into the benefit of the basic responsive layout style rules
|
||||||
that would apply if the page were not built with Elementor.
|
that would apply if the page were not built with Elementor.
|
||||||
|
|
||||||
This is mainly useful with Hello Elementor, but it might be
|
This is mainly useful with Hello Elementor but it helps fix
|
||||||
used also with another theme.
|
also other themes like Twenty Twenty-One.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
div.page-content {
|
div.page-content,
|
||||||
margin-right: auto;
|
div.entry-content {
|
||||||
margin-left: auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 575px) {
|
@media (max-width: 575px) {
|
||||||
|
|
||||||
div.page-content {
|
div.page-content,
|
||||||
padding-right: 10px;
|
div.entry-content {
|
||||||
padding-left: 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
|
||||||
div.page-content {
|
div.page-content,
|
||||||
|
div.entry-content {
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
|
||||||
div.page-content {
|
div.page-content,
|
||||||
|
div.entry-content {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
|
||||||
div.page-content {
|
div.page-content,
|
||||||
|
div.entry-content {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
|
|
||||||
div.page-content {
|
div.page-content,
|
||||||
|
div.entry-content {
|
||||||
max-width: 960px;
|
max-width: 960px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*
|
*
|
||||||
* Since v2.1.4 of Footnotes
|
* Since v2.1.4 of Footnotes
|
||||||
*
|
*
|
||||||
* Last modified: 2020-12-06T1722+0100
|
* Last modified for v2.2.2 2020-12-15T1046+0100
|
||||||
*
|
*
|
||||||
* The enqueuing of this style sheet is optional and can be
|
* The enqueuing of this style sheet is optional and can be
|
||||||
* enabled in the Reference container settings.
|
* enabled in the Reference container settings.
|
||||||
|
@ -20,56 +20,60 @@ Rationale
|
||||||
In Hello Elementor Theme, this applies to .site-header, and
|
In Hello Elementor Theme, this applies to .site-header, and
|
||||||
also to .site-main, which is a class of the <main> element,
|
also to .site-main, which is a class of the <main> element,
|
||||||
at the condition that the page is not built with Elementor:
|
at the condition that the page is not built with Elementor:
|
||||||
body:not([class*="elementor-page-"])
|
body:not([class*="elementor-page-"])
|
||||||
Therefore, in pages built with Elementor, proper layout is
|
Therefore, in pages built with Elementor, proper layout is
|
||||||
applied only to features managed by Elementor, not others.
|
applied only to features managed by Elementor, not others.
|
||||||
|
|
||||||
The Footnotes references container is near the end of main.
|
Footnotes reference containers are near the bottom of main.
|
||||||
This style sheet lets Footnotes’ reference container come
|
This style sheet lets Footnotes’ reference containers come
|
||||||
into the benefit of the basic responsive layout style rules
|
into the benefit of the basic responsive layout style rules
|
||||||
that would apply if the page were not built with Elementor.
|
that would apply if the page were not built with Elementor.
|
||||||
|
|
||||||
This is mainly useful with Hello Elementor, but it might be
|
This is mainly useful with Hello Elementor but it helps fix
|
||||||
used also with another theme.
|
also other themes like Twenty Twenty-One.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.footnotes_reference_container {
|
.entry-content div.footnotes_reference_container,
|
||||||
margin-right: auto;
|
main div.footnotes_reference_container {
|
||||||
margin-left: auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 575px) {
|
@media (max-width: 575px) {
|
||||||
|
|
||||||
.footnotes_reference_container {
|
.entry-content div.footnotes_reference_container,
|
||||||
padding-right: 10px;
|
main div.footnotes_reference_container {
|
||||||
padding-left: 10px;
|
padding: 0 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 576px) {
|
@media (min-width: 576px) {
|
||||||
|
|
||||||
.footnotes_reference_container {
|
.entry-content div.footnotes_reference_container,
|
||||||
|
main div.footnotes_reference_container {
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
|
||||||
.footnotes_reference_container {
|
.entry-content div.footnotes_reference_container,
|
||||||
|
main div.footnotes_reference_container {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
|
||||||
.footnotes_reference_container {
|
.entry-content div.footnotes_reference_container,
|
||||||
|
main div.footnotes_reference_container {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
|
|
||||||
.footnotes_reference_container {
|
.entry-content div.footnotes_reference_container,
|
||||||
|
main div.footnotes_reference_container {
|
||||||
max-width: 960px;
|
max-width: 960px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
* Created-Time: 16:21
|
* Created-Time: 16:21
|
||||||
* Since: 1.0
|
* Since: 1.0
|
||||||
*
|
*
|
||||||
* Version: 2.2.0
|
* Version: 2.2.2
|
||||||
*
|
*
|
||||||
* Classes added to public.css may be added to the
|
* Classes added to public.css may be added to the
|
||||||
* list documenting CSS classes for Custom CSS if
|
* list documenting CSS classes for Custom CSS if
|
||||||
* recommended for general use.
|
* recommended for general use.
|
||||||
* List in templates/dashboard/customize-css.html
|
* List in templates/dashboard/customize-css.html
|
||||||
*
|
*
|
||||||
* Last modified: 2020-12-13T2059+0100
|
* Last modified: 2020-12-15T0844+0100
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
* Created-Time: 16:21
|
* Created-Time: 16:21
|
||||||
* Since: 1.0
|
* Since: 1.0
|
||||||
*
|
*
|
||||||
* Version: 2.2.0
|
* Version: 2.2.2
|
||||||
*
|
*
|
||||||
* Last modified: 2020-12-13T2127+0100
|
* Last modified: 2020-12-15T1020+0100
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -195,25 +195,28 @@ maintainability and readability of the source list.
|
||||||
The textarea has monospace font, but no other features
|
The textarea has monospace font, but no other features
|
||||||
helping edit CSS, as tab support and syntactic colors.
|
helping edit CSS, as tab support and syntactic colors.
|
||||||
*/
|
*/
|
||||||
#customize_css tr td:first-child {
|
#customize_css_new tr td:first-child {
|
||||||
width: 44% !important;
|
width: 44% !important;
|
||||||
font-weight: normal !important;
|
font-weight: normal !important;
|
||||||
}
|
}
|
||||||
#customize_css tr td:first-child span:first-child {
|
#customize_css_new tr td:first-child span:first-child {
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
}
|
}
|
||||||
#customize_css .list {
|
#customize_css_new .list {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
#customize_css .list p {
|
#customize_css_new .list p {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
text-indent: -10px;
|
text-indent: -10px;
|
||||||
margin: .5em 0;
|
margin: .5em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footnote_inputfield_custom_css {
|
#footnote_inputfield_custom_css_new {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
|
}
|
||||||
|
#footnote_inputfield_custom_css,
|
||||||
|
#footnote_inputfield_custom_css_new {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
resize: both;
|
resize: both;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
|
|
@ -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.2.1
|
Version: 2.2.2
|
||||||
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.2.1' );
|
define( 'FOOTNOTES_VERSION', '2.2.2' );
|
||||||
/*
|
/*
|
||||||
Copyright 2020 Mark Cheret (email: mark@cheret.de)
|
Copyright 2020 Mark Cheret (email: mark@cheret.de)
|
||||||
|
|
||||||
|
|
|
@ -80,6 +80,11 @@ Visit this swift write-up from a **footnotes** user by the name of **Southwest**
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 2.2.2 =
|
||||||
|
- Bugfix: Dashboard: Link element setting only under General settings > Reference container
|
||||||
|
- Add: Dashboard: migrate Custom CSS to dedicated new tab, keep legacy until checking a box
|
||||||
|
- Bugfix: Reference container: edits to optional basic responsive page layout style sheets
|
||||||
|
|
||||||
= 2.2.1 =
|
= 2.2.1 =
|
||||||
- Bugfix: Dashboard: duplicate moved settings under their legacy tab to account for data structure
|
- Bugfix: Dashboard: duplicate moved settings under their legacy tab to account for data structure
|
||||||
|
|
||||||
|
|
15
templates/dashboard/customize-css-migration.html
Normal file
15
templates/dashboard/customize-css-migration.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<div class="footnotes_description">
|
||||||
|
<p>[[description-css]]</p>
|
||||||
|
</div>
|
||||||
|
<table id="customize_css_migration" class="widefat fixed">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>[[label-css]]</td>
|
||||||
|
<td>[[css]]</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>[[label-migrated]]</td>
|
||||||
|
<td>[[migrated]] <span class="footnotes_notice">[[notice-migrated]]</span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
30
templates/dashboard/customize-css-new.html
Normal file
30
templates/dashboard/customize-css-new.html
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<table id="customize_css_new" class="widefat fixed">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><span>[[headline]]</span><br />
|
||||||
|
<div class="list">
|
||||||
|
<p>.footnote_referrer = enclosing <span>
|
||||||
|
<p>.footnote_plugin_tooltip_text = inner <sup>, not tooltip
|
||||||
|
<p>
|
||||||
|
<p>.footnote_tooltip = inner <span>
|
||||||
|
<p>.footnote_tooltip_continue = nested <span>
|
||||||
|
<p>
|
||||||
|
<p>.footnotes_reference_container = enclosing <div>
|
||||||
|
<p>.footnote_container_prepare = label <div>
|
||||||
|
<p>.footnote_reference_container_label = <span>
|
||||||
|
<p>.footnote_reference_container_collapse_button = sibling <span>
|
||||||
|
<p>.footnotes_table = <table>
|
||||||
|
<p>
|
||||||
|
<p>.footnote_plugin_index_combi = first <td> if identical footnotes are combined
|
||||||
|
<p>.footnote_plugin_index = first <td> if not
|
||||||
|
<p>.footnote_index = <a> or <span> in first <td> in 3-column table
|
||||||
|
<p>.footnote_plugin_link = <a> or <span> if identical footnotes are not combined, or second <td> in 3-column table
|
||||||
|
<p>.footnote_backlink = <a> or <span> if identical footnotes are combined, or in second <td> in 3-column table
|
||||||
|
<p>.footnote_index_arrow = nested <span>, symbol only
|
||||||
|
<p>.footnote_plugin_text = second <td>, or third <td> in 3-column table
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>[[css]]</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
|
@ -1,29 +1,10 @@
|
||||||
|
<div class="footnotes_description">
|
||||||
|
<p>[[description-css]]</p>
|
||||||
|
</div>
|
||||||
<table id="customize_css" class="widefat fixed">
|
<table id="customize_css" class="widefat fixed">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>[[headline]]</span><br />
|
<td>[[label-css]]</td>
|
||||||
<div class="list">
|
|
||||||
<p>.footnote_referrer = enclosing <span>
|
|
||||||
<p>.footnote_plugin_tooltip_text = inner <sup>, not tooltip
|
|
||||||
<p>
|
|
||||||
<p>.footnote_tooltip = inner <span>
|
|
||||||
<p>.footnote_tooltip_continue = nested <span>
|
|
||||||
<p>
|
|
||||||
<p>.footnotes_reference_container = enclosing <div>
|
|
||||||
<p>.footnote_container_prepare = label <div>
|
|
||||||
<p>.footnote_reference_container_label = <span>
|
|
||||||
<p>.footnote_reference_container_collapse_button = sibling <span>
|
|
||||||
<p>.footnotes_table = <table>
|
|
||||||
<p>
|
|
||||||
<p>.footnote_plugin_index_combi = first <td> if identical footnotes are combined
|
|
||||||
<p>.footnote_plugin_index = first <td> if not
|
|
||||||
<p>.footnote_index = <a> or <span> in first <td> in 3-column table
|
|
||||||
<p>.footnote_plugin_link = <a> or <span> if identical footnotes are not combined, or second <td> in 3-column table
|
|
||||||
<p>.footnote_backlink = <a> or <span> if identical footnotes are combined, or in second <td> in 3-column table
|
|
||||||
<p>.footnote_index_arrow = nested <span>, symbol only
|
|
||||||
<p>.footnote_plugin_text = second <td>, or third <td> in 3-column table
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>[[css]]</td>
|
<td>[[css]]</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -14,10 +14,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>[[label-link]]</td>
|
<td>[[label-link]]</td>
|
||||||
<td>[[link]] <span class="footnotes_notice">[[notice-link]]</span></td>
|
<td><span class="footnotes_notice">[[notice-link]]</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="footnotes_description">
|
|
||||||
<p>[[description-link]]</p>
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
<td>[[label-collapse]]</td>
|
<td>[[label-collapse]]</td>
|
||||||
<td>[[collapse]]</td>
|
<td>[[collapse]]</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>[[label-shortcode]]</td>
|
|
||||||
<td>[[shortcode]] <span class="footnotes_notice">[[notice-shortcode]]</span></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>[[label-position]]</td>
|
<td>[[label-position]]</td>
|
||||||
<td>[[position]] <span class="footnotes_notice">[[notice-position]]</span></td>
|
<td>[[position]] <span class="footnotes_notice">[[notice-position]]</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>[[label-shortcode]]</td>
|
||||||
|
<td>[[shortcode]] <span class="footnotes_notice">[[notice-shortcode]]</span></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>[[label-page-layout]]</td>
|
<td>[[label-page-layout]]</td>
|
||||||
<td>[[page-layout]] <span class="footnotes_notice">[[notice-page-layout]]</span></td>
|
<td>[[page-layout]] <span class="footnotes_notice">[[notice-page-layout]]</span></td>
|
||||||
|
@ -96,3 +96,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="footnotes_description">
|
||||||
|
<p>[[description-link]]</p>
|
||||||
|
</div>
|
||||||
|
|
Reference in a new issue