Prepare for release version 1.3.2
- Bugfix: More security recognizing Footnotes on public pages (e.g. ignoring empty Footnote short codes) - Bugfix: Clear old Footnotes before lookup new public page (only if no reference container displayed before) - Updated: language EN and DE - Added: Setting to customize the hyperlink symbol in der reference container for each footnote reference - Added: Setting to enter a user defined hyperlink symbol git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@969519 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
26dc75ff83
commit
6924027cd8
13 changed files with 329 additions and 126 deletions
|
@ -33,14 +33,22 @@ class MCI_Footnotes_Tab_Custom extends MCI_Footnotes_Admin {
|
|||
array($this, 'Description'),
|
||||
FOOTNOTES_SETTINGS_TAB_CUSTOM
|
||||
);
|
||||
// styling
|
||||
// superscript
|
||||
add_meta_box(
|
||||
'MCI_Footnotes_Tab_Custom_Styling',
|
||||
'MCI_Footnotes_Tab_Custom_Superscript',
|
||||
__("Superscript layout", FOOTNOTES_PLUGIN_NAME),
|
||||
array($this, 'Superscript'),
|
||||
FOOTNOTES_SETTINGS_TAB_CUSTOM,
|
||||
'main'
|
||||
);
|
||||
// symbol hyperlink to footnotes index
|
||||
add_meta_box(
|
||||
'MCI_Footnotes_Tab_Custom_HyperlinkSymbol',
|
||||
__("Hyperlink symbol in the Reference container", FOOTNOTES_PLUGIN_NAME),
|
||||
array($this, 'HyperlinkSymbol'),
|
||||
FOOTNOTES_SETTINGS_TAB_CUSTOM,
|
||||
'main'
|
||||
);
|
||||
// custom css
|
||||
add_meta_box(
|
||||
'MCI_Footnotes_Tab_Custom_Customize',
|
||||
|
@ -74,6 +82,24 @@ class MCI_Footnotes_Tab_Custom extends MCI_Footnotes_Admin {
|
|||
$this->AddNewline();
|
||||
}
|
||||
|
||||
/**
|
||||
* layout of the hyperlink symbol to jump to the footnotes index inside post
|
||||
* @since 1.3.2
|
||||
* @return void
|
||||
*/
|
||||
public function HyperlinkSymbol() {
|
||||
// load convert class
|
||||
require_once(dirname(__FILE__) . "/convert.php");
|
||||
$this->AddLabel(FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL, __("Hyperlink symbol:", FOOTNOTES_PLUGIN_NAME));
|
||||
$this->AddSelect(FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL, MCI_Footnotes_Convert::getArrow(), "footnote_plugin_15");
|
||||
$this->AddNewline();
|
||||
|
||||
$this->AddLabel(FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL_USER, __("or enter a user defined symbol:", FOOTNOTES_PLUGIN_NAME));
|
||||
$this->AddTextbox(FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL_USER, "footnote_plugin_15");
|
||||
$this->AddText(" ");
|
||||
$this->AddText("<i>" . __("if set it overrides the hyperlink symbol above", FOOTNOTES_PLUGIN_NAME) . "</i>");
|
||||
}
|
||||
|
||||
/**
|
||||
* customize css box for public page
|
||||
* @since 1.3
|
||||
|
|
Reference in a new issue