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:
Aricura 2014-08-21 08:43:53 +00:00
parent 26dc75ff83
commit 6924027cd8
13 changed files with 329 additions and 126 deletions

View file

@ -357,6 +357,9 @@ class MCI_Footnotes_Admin {
$l_str_Output = '<select ' . $p_str_ClassName . ' name="' . $l_arr_Data["name"] . '" id="' . $l_arr_Data["id"] . '">'; $l_str_Output = '<select ' . $p_str_ClassName . ' name="' . $l_arr_Data["name"] . '" id="' . $l_arr_Data["id"] . '">';
// loop through all array keys // loop through all array keys
foreach ($p_arr_Options as $l_str_Value => $l_str_Caption) { foreach ($p_arr_Options as $l_str_Value => $l_str_Caption) {
if (!is_string($l_str_Value)) {
$l_str_Value = (string)$l_str_Value;
}
// add key as option value // add key as option value
$l_str_Output .= '<option value="' . $l_str_Value . '"'; $l_str_Output .= '<option value="' . $l_str_Value . '"';
// check if option value is set and has to be pre-selected // check if option value is set and has to be pre-selected

View file

@ -147,6 +147,26 @@ class MCI_Footnotes_Convert {
// nothing found that says "true", so we return false */ // nothing found that says "true", so we return false */
return false; return false;
} }
/**
* @since 1.3.2
* @param int $p_int_Index [default: -1 = all arrows, otherwise the arrow with the specified index]
* @return array|string
*/
public static function getArrow($p_int_Index = -1) {
// define all possible arrows
$l_arr_Arrows = array("&#8593;", "&#8613;", "&#8607;", "&#8617;", "&#8626;", "&#8629;", "&#8657;", "&#8673;", "&#8679;", "&#65514;");
// convert index to an integer
if (!is_int($p_int_Index)) {
$p_int_Index = intval($p_int_Index);
}
// return the whole arrow array
if ($p_int_Index < 0 || $p_int_Index > count($l_arr_Arrows)) {
return $l_arr_Arrows;
}
// return a single arrow
return $l_arr_Arrows[$p_int_Index];
}
} // class MCI_Footnotes_Convert } // class MCI_Footnotes_Convert
endif; endif;

View file

@ -33,14 +33,22 @@ class MCI_Footnotes_Tab_Custom extends MCI_Footnotes_Admin {
array($this, 'Description'), array($this, 'Description'),
FOOTNOTES_SETTINGS_TAB_CUSTOM FOOTNOTES_SETTINGS_TAB_CUSTOM
); );
// styling // superscript
add_meta_box( add_meta_box(
'MCI_Footnotes_Tab_Custom_Styling', 'MCI_Footnotes_Tab_Custom_Superscript',
__("Superscript layout", FOOTNOTES_PLUGIN_NAME), __("Superscript layout", FOOTNOTES_PLUGIN_NAME),
array($this, 'Superscript'), array($this, 'Superscript'),
FOOTNOTES_SETTINGS_TAB_CUSTOM, FOOTNOTES_SETTINGS_TAB_CUSTOM,
'main' '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 // custom css
add_meta_box( add_meta_box(
'MCI_Footnotes_Tab_Custom_Customize', 'MCI_Footnotes_Tab_Custom_Customize',
@ -74,6 +82,24 @@ class MCI_Footnotes_Tab_Custom extends MCI_Footnotes_Admin {
$this->AddNewline(); $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("&nbsp;&nbsp;&nbsp;");
$this->AddText("<i>" . __("if set it overrides the hyperlink symbol above", FOOTNOTES_PLUGIN_NAME) . "</i>");
}
/** /**
* customize css box for public page * customize css box for public page
* @since 1.3 * @since 1.3

View file

@ -288,6 +288,20 @@ class MCI_Footnotes_Task {
$l_bool_CollapseReference = MCI_Footnotes_Convert::toBool($this->a_arr_Settings[FOOTNOTES_INPUT_COLLAPSE_REFERENCES]); $l_bool_CollapseReference = MCI_Footnotes_Convert::toBool($this->a_arr_Settings[FOOTNOTES_INPUT_COLLAPSE_REFERENCES]);
// get footnote counter style // get footnote counter style
$l_str_CounterStyle = $this->a_arr_Settings[FOOTNOTES_INPUT_COUNTER_STYLE]; $l_str_CounterStyle = $this->a_arr_Settings[FOOTNOTES_INPUT_COUNTER_STYLE];
// get hyperlink symbol index
$l_int_HyperlinkSymbolIndex = $this->a_arr_Settings[FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL];
// get html arrow
$l_str_HyperlinkSymbol = MCI_Footnotes_Convert::getArrow($l_int_HyperlinkSymbolIndex);
// set html arrow to the first one if invalid index defined
if (is_array($l_str_HyperlinkSymbol)) {
$l_str_HyperlinkSymbol = MCI_Footnotes_Convert::getArrow(0);
}
// get user defined hyperlink symbol
$l_int_HyperlinkSymbol_UserDefined = $this->a_arr_Settings[FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL_USER];
if (!empty($l_int_HyperlinkSymbol_UserDefined)) {
// override hyperlink symbol with user defined symbol
$l_str_HyperlinkSymbol = $l_int_HyperlinkSymbol_UserDefined;
}
// add expand/collapse buttons to the reference label if collapsed by default // add expand/collapse buttons to the reference label if collapsed by default
// @since 1.2.2 // @since 1.2.2
@ -339,6 +353,7 @@ class MCI_Footnotes_Task {
// added function to convert the counter style in the reference container (bugfix for the link to the footnote) in version 1.0.6 // added function to convert the counter style in the reference container (bugfix for the link to the footnote) in version 1.0.6
$l_str_ReplaceText = str_replace("[[FOOTNOTE INDEX SHORT]]", MCI_Footnotes_Convert::Index($l_str_FirstFootnoteIndex, $l_str_CounterStyle), $l_str_FootnoteTemplate); $l_str_ReplaceText = str_replace("[[FOOTNOTE INDEX SHORT]]", MCI_Footnotes_Convert::Index($l_str_FirstFootnoteIndex, $l_str_CounterStyle), $l_str_FootnoteTemplate);
$l_str_ReplaceText = str_replace("[[FOOTNOTE INDEX]]", $l_str_FootnoteIndex, $l_str_ReplaceText); $l_str_ReplaceText = str_replace("[[FOOTNOTE INDEX]]", $l_str_FootnoteIndex, $l_str_ReplaceText);
$l_str_ReplaceText = str_replace("[[HYPERLINK SYMBOL]]", $l_str_HyperlinkSymbol, $l_str_ReplaceText);
$l_str_ReplaceText = str_replace("[[FOOTNOTE TEXT]]", $l_str_FootnoteText, $l_str_ReplaceText); $l_str_ReplaceText = str_replace("[[FOOTNOTE TEXT]]", $l_str_FootnoteText, $l_str_ReplaceText);
$l_str_ReplaceText = preg_replace('@[\s]{2,}@',' ',$l_str_ReplaceText); $l_str_ReplaceText = preg_replace('@[\s]{2,}@',' ',$l_str_ReplaceText);
// add the footnote container to the output // add the footnote container to the output

View file

@ -50,9 +50,11 @@ define("FOOTNOTES_INPUT_COUNTER_STYLE", "footnote_inputfield_counter_style"); //
define("FOOTNOTES_INPUT_REFERENCE_CONTAINER_PLACE", "footnote_inputfield_reference_container_place"); // id of input field "placement of reference container" setting define("FOOTNOTES_INPUT_REFERENCE_CONTAINER_PLACE", "footnote_inputfield_reference_container_place"); // id of input field "placement of reference container" setting
define("FOOTNOTES_INPUT_PLACEHOLDER_START_USERDEFINED", "footnote_inputfield_placeholder_start_user_defined"); // id of input field for 'user defined placeholder start tag define("FOOTNOTES_INPUT_PLACEHOLDER_START_USERDEFINED", "footnote_inputfield_placeholder_start_user_defined"); // id of input field for 'user defined placeholder start tag
define("FOOTNOTES_INPUT_PLACEHOLDER_END_USERDEFINED", "footnote_inputfield_placeholder_end_user_defined"); // id of input field for 'user defined placeholder end tag define("FOOTNOTES_INPUT_PLACEHOLDER_END_USERDEFINED", "footnote_inputfield_placeholder_end_user_defined"); // id of input field for 'user defined placeholder end tag
define("FOOTNOTES_INPUT_CUSTOM_CSS", "footnote_inputfield_custom_css"); // if of input field for 'custom css' setting define("FOOTNOTES_INPUT_CUSTOM_CSS", "footnote_inputfield_custom_css"); // id of input field for 'custom css' setting
define("FOOTNOTES_INPUT_CUSTOM_STYLING_BEFORE", "footnote_inputfield_custom_styling_before"); // if of input field for 'footnotes styling before' setting define("FOOTNOTES_INPUT_CUSTOM_STYLING_BEFORE", "footnote_inputfield_custom_styling_before"); // id of input field for 'footnotes styling before' setting
define("FOOTNOTES_INPUT_CUSTOM_STYLING_AFTER", "footnote_inputfield_custom_styling_after"); // if of input field for 'footnotes styling after' setting define("FOOTNOTES_INPUT_CUSTOM_STYLING_AFTER", "footnote_inputfield_custom_styling_after"); // id of input field for 'footnotes styling after' setting
define("FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL", "footnote_inputfield_custom_hyperlink_symbol"); // id of input field for 'footnotes hyperlink symbol' setting
define("FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL_USER", "footnote_inputfield_custom_hyperlink_symbol_user"); // id of input field for 'footnotes hyperlink symbol' user-defined setting
// PLUGIN REFERENCES CONTAINER ID // PLUGIN REFERENCES CONTAINER ID
define("FOOTNOTES_REFERENCES_CONTAINER_ID", "footnote_references_container"); // id for the div surrounding the footnotes define("FOOTNOTES_REFERENCES_CONTAINER_ID", "footnote_references_container"); // id for the div surrounding the footnotes

View file

@ -59,7 +59,9 @@ function MCI_Footnotes_getOptions($p_bool_ConvertHtmlChars = true) {
$l_arr_Default_Custom = array( $l_arr_Default_Custom = array(
FOOTNOTES_INPUT_CUSTOM_CSS => '', FOOTNOTES_INPUT_CUSTOM_CSS => '',
FOOTNOTES_INPUT_CUSTOM_STYLING_BEFORE => '', FOOTNOTES_INPUT_CUSTOM_STYLING_BEFORE => '',
FOOTNOTES_INPUT_CUSTOM_STYLING_AFTER => ')' FOOTNOTES_INPUT_CUSTOM_STYLING_AFTER => ')',
FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL => '&#8593;',
FOOTNOTES_INPUT_CUSTOM_HYPERLINK_SYMBOL_USER => ''
); );
$l_arr_General = MCI_Footnotes_ValidateOptions(get_option(FOOTNOTES_SETTINGS_CONTAINER), $l_arr_Default_General, $p_bool_ConvertHtmlChars); $l_arr_General = MCI_Footnotes_ValidateOptions(get_option(FOOTNOTES_SETTINGS_CONTAINER), $l_arr_Default_General, $p_bool_ConvertHtmlChars);

View file

@ -4,7 +4,7 @@
Plugin URI: http://wordpress.org/plugins/footnotes/ Plugin URI: http://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: media competence institute Author: media competence institute
Version: 1.3.1 Version: 1.3.2
Author URI: http://cheret.co.uk/mci Author URI: http://cheret.co.uk/mci
Text Domain: footnotes Text Domain: footnotes
Domain Path: /languages Domain Path: /languages

Binary file not shown.

View file

@ -1,15 +1,15 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: footnotes\n" "Project-Id-Version: footnotes\n"
"POT-Creation-Date: 2014-05-27 21:03+0100\n" "POT-Creation-Date: 2014-08-21 10:29+0100\n"
"PO-Revision-Date: 2014-05-27 21:04+0100\n" "PO-Revision-Date: 2014-08-21 10:35+0100\n"
"Last-Translator: Stefan Herndler <support@herndler.org>\n" "Last-Translator: Stefan Herndler <s.herndler@methis.at>\n"
"Language-Team: SHE <s.herndler@methis.at>\n" "Language-Team: SHE <s.herndler@methis.at>\n"
"Language: de\n" "Language: de\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.5\n" "X-Generator: Poedit 1.6.6\n"
"X-Poedit-Basepath: ..\n" "X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
@ -18,138 +18,205 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPath-0: .\n"
#: classes/footnotes.php:68 #: classes/footnotes.php:79
msgid "You must be logged in to run this script." msgid "You must be logged in to run this script."
msgstr "Sie müssen angemeldet sein um diese Funktion ausführen zu können." msgstr "Sie müssen angemeldet sein um diese Funktion ausführen zu können."
#: classes/footnotes.php:73 #: classes/footnotes.php:84
msgid "You do not have permission to run this script." msgid "You do not have permission to run this script."
msgstr "Sie haben nicht die Berechtigung diese Funktion auszuführen." msgstr "Sie haben nicht die Berechtigung diese Funktion auszuführen."
#: classes/footnotes_settings.php:409 #: classes/tab_custom.php:28
msgid "Customize"
msgstr "Personalisieren"
#: classes/tab_custom.php:39
msgid "Superscript layout"
msgstr "Layout des Fußnoten Index"
#: classes/tab_custom.php:47
msgid "Hyperlink symbol in the Reference container"
msgstr "Einzelnachweis - Symbol für den Link zur Fußnote im Text"
#: classes/tab_custom.php:55
msgid "Add custom CSS to the public page"
msgstr "Benutzerdefinierten CSS Code zu den veröffentlichten Seiten hinzufügen"
#: classes/tab_custom.php:76
msgid "Before Footnotes index:"
msgstr "Vor dem Fußnoten Index:"
#: classes/tab_custom.php:80
msgid "After Footnotes index:"
msgstr "Nach dem Fußnoten Index:"
#: classes/tab_custom.php:93
msgid "Hyperlink symbol:"
msgstr "Symbol für den Link:"
#: classes/tab_custom.php:97
msgid "or enter a user defined symbol:"
msgstr "oder definiere ein eigenes Symbol:"
#: classes/tab_custom.php:100
msgid "if set it overrides the hyperlink symbol above"
msgstr "wenn gesetzt wird das oben definierte Symbol überschrieben"
#: classes/tab_custom.php:110
msgid "Add custom CSS:"
msgstr "Benutzerdefinierter CSS Code:"
#: classes/tab_custom.php:114
msgid ""
"Available CSS classes to customize the footnotes and the reference container:"
msgstr ""
"Verfügbare CSS Klassen um die Fußnoten und den Einzelnachweis zu "
"personalisieren:"
#: classes/tab_custom.php:117
msgid "inline footnotes"
msgstr "Fußnoten Index im veröffneltichten Text"
#: classes/tab_custom.php:118
msgid "inline footnotes, mouse over highlight box"
msgstr "Popup der Fußnote im veröffentlichten Text"
#: classes/tab_custom.php:120
msgid "reference container footnotes index"
msgstr "Einzelnachweis - Fußnote Index"
#: classes/tab_custom.php:121
msgid "reference container footnotes linked arrow"
msgstr "Einzelnachweiß - Symbol für den Link"
#: classes/tab_custom.php:122
msgid "reference container footnotes text"
msgstr "Einzelnachweis - Fußnote"
#: classes/tab_general.php:28
msgid "General" msgid "General"
msgstr "Allgemein" msgstr "Allgemein"
#: classes/footnotes_settings.php:411 #: classes/tab_general.php:32
#, php-format #, php-format
msgid "%s Settings" msgid "%s Settings"
msgstr "%s Einstellungen" msgstr "%s Einstellungen"
#: classes/footnotes_settings.php:412 #: classes/tab_general.php:39
msgid "References Container" msgid "References Container"
msgstr "Einzelnachweise" msgstr "Einzelnachweise"
#: classes/footnotes_settings.php:413 #: classes/tab_general.php:47
#, php-format #, php-format
msgid "%s styling" msgid "%s styling"
msgstr "%s Design" msgstr "%s Design"
#: classes/footnotes_settings.php:415 #: classes/tab_general.php:63
msgid "Other" msgid "Other"
msgstr "Andere" msgstr "Andere"
#: classes/footnotes_settings.php:435 #: classes/tab_general.php:84
msgid "References label:" msgid "References label:"
msgstr "Überschrift \"Einzelnachweis\":" msgstr "Überschrift \"Einzelnachweis\":"
#: classes/footnotes_settings.php:440 #: classes/tab_general.php:88
msgid "Collapse references by default:" msgid "Collapse references by default:"
msgstr "Verstecke Einzelnachweise standardmäßig:" msgstr "Verstecke Einzelnachweise standardmäßig:"
#: classes/footnotes_settings.php:449 #: classes/tab_general.php:94
msgid "in the footer" msgid "in the footer"
msgstr "am Ende der Seite" msgstr "am Ende der Seite"
#: classes/footnotes_settings.php:450 #: classes/tab_general.php:95
msgid "at the end of the post" msgid "at the end of the post"
msgstr "nach einem Beitrag" msgstr "nach einem Beitrag"
#: classes/footnotes_settings.php:451 #: classes/tab_general.php:96
msgid "in the widget area" msgid "in the widget area"
msgstr "im Widget" msgstr "im Widget"
#: classes/footnotes_settings.php:453 #: classes/tab_general.php:98
msgid "Where shall the reference container appear:" msgid "Where shall the reference container appear:"
msgstr "Positionierung der Einzelnachweise:" msgstr "Positionierung der Einzelnachweise:"
#: classes/footnotes_settings.php:465 classes/footnotes_settings.php:546 #: classes/tab_general.php:109 classes/tab_general.php:182
msgid "Yes" msgid "Yes"
msgstr "Ja" msgstr "Ja"
#: classes/footnotes_settings.php:466 classes/footnotes_settings.php:547 #: classes/tab_general.php:110 classes/tab_general.php:183
msgid "No" msgid "No"
msgstr "Nein" msgstr "Nein"
#: classes/footnotes_settings.php:468 #: classes/tab_general.php:112
msgid "Combine identical footnotes:" msgid "Combine identical footnotes:"
msgstr "Kombiniere meine Fußnoten:" msgstr "Kombiniere meine Fußnoten:"
#: classes/footnotes_settings.php:478 classes/footnotes_settings.php:488 #: classes/tab_general.php:120 classes/tab_general.php:129
msgid "user defined" msgid "user defined"
msgstr "benutzerdefiniert" msgstr "benutzerdefiniert"
#: classes/footnotes_settings.php:480 #: classes/tab_general.php:122
msgid "Footnote tag starts with:" msgid "Footnote tag starts with:"
msgstr "Fußnoten starten mit:" msgstr "Fußnoten starten mit:"
#: classes/footnotes_settings.php:490 #: classes/tab_general.php:131
msgid "and ends with:" msgid "and ends with:"
msgstr "und endet mit:" msgstr "und endet mit:"
#: classes/footnotes_settings.php:504 #: classes/tab_general.php:143
msgid "Arabic Numbers - Plain" msgid "Arabic Numbers - Plain"
msgstr "arabische Ziffern" msgstr "arabische Ziffern"
#: classes/footnotes_settings.php:505 #: classes/tab_general.php:144
msgid "Arabic Numbers - Leading 0" msgid "Arabic Numbers - Leading 0"
msgstr "arabisch Ziffern - führende Null" msgstr "arabisch Ziffern - führende Null"
#: classes/footnotes_settings.php:506 #: classes/tab_general.php:145
msgid "Latin Character - lower case" msgid "Latin Character - lower case"
msgstr "alphabetisch - Kleinschreibung" msgstr "alphabetisch - Kleinschreibung"
#: classes/footnotes_settings.php:507 #: classes/tab_general.php:146
msgid "Latin Character - upper case" msgid "Latin Character - upper case"
msgstr "alphabetisch - Großschreibung" msgstr "alphabetisch - Großschreibung"
#: classes/footnotes_settings.php:508 #: classes/tab_general.php:147
msgid "Roman Numerals" msgid "Roman Numerals"
msgstr "Römische Ziffern" msgstr "Römische Ziffern"
#: classes/footnotes_settings.php:510 #: classes/tab_general.php:149
msgid "Counter style:" msgid "Counter style:"
msgstr "Fußnoten Zähler:" msgstr "Fußnoten Zähler:"
#: classes/footnotes_settings.php:522 includes/replacer.php:164 #: classes/tab_general.php:160 classes/task.php:143
#, php-format #, php-format
msgid "I %s %s" msgid "I %s %s"
msgstr "Ich %s %s" msgstr "Ich %s %s"
#: classes/footnotes_settings.php:523 includes/replacer.php:167 #: classes/tab_general.php:161 classes/task.php:146
#, php-format #, php-format
msgid "this site uses the awesome %s Plugin" msgid "this site uses the awesome %s Plugin"
msgstr "Diese Seite verwendet das Plugin %s" msgstr "Diese Seite verwendet das Plugin %s"
#: classes/footnotes_settings.php:524 includes/replacer.php:171 #: classes/tab_general.php:162 classes/task.php:150
#, php-format #, php-format
msgid "extra smooth %s" msgid "extra smooth %s"
msgstr "besonders feine %s" msgstr "besonders feine %s"
#: classes/footnotes_settings.php:525 #: classes/tab_general.php:163
msgid "random text" msgid "random text"
msgstr "zufälliger Text" msgstr "zufälliger Text"
#: classes/footnotes_settings.php:526 #: classes/tab_general.php:164
#, php-format #, php-format
msgid "Don't display a %s %s text in my footer." msgid "Don't display a %s %s text in my footer."
msgstr "Verstecke %s %s am Ende meiner Seite." msgstr "Verstecke %s %s am Ende meiner Seite."
#: classes/footnotes_settings.php:528 #: classes/tab_general.php:166
#, php-format #, php-format
msgid "Tell the world you're using %s:" msgid "Tell the world you're using %s:"
msgstr "Teile der Welt mit, dass du %s verwendest:" msgstr "Teile der Welt mit, dass du %s verwendest:"
#: classes/footnotes_settings.php:533 #: classes/tab_general.php:170
#, php-format #, php-format
msgid "" msgid ""
"Don't tell the world you're using %s on specific pages by adding the " "Don't tell the world you're using %s on specific pages by adding the "
@ -158,40 +225,40 @@ msgstr ""
"Platzhalter um der Welt an einzelnen Seiten nicht mitzuteilen, dass Sie %s " "Platzhalter um der Welt an einzelnen Seiten nicht mitzuteilen, dass Sie %s "
"verwenden:" "verwenden:"
#: classes/footnotes_settings.php:549 #: classes/tab_general.php:185
msgid "Allow footnotes on Summarized Posts:" msgid "Allow footnotes on Summarized Posts:"
msgstr "Erlaube Fußnoten in Zusammenfassungen:" msgstr "Erlaube Fußnoten in Zusammenfassungen:"
#: classes/footnotes_settings.php:562 #: classes/tab_howto.php:28
msgid "HowTo" msgid "How to"
msgstr "Hilfe" msgstr "Hilfe"
#: classes/footnotes_settings.php:565 #: classes/tab_howto.php:39
msgid "Brief introduction in how to use the plugin" msgid "Brief introduction in how to use the plugin"
msgstr "Kurze Anleitung für die Verwendung des Plugins." msgstr "Kurze Anleitung für die Verwendung des Plugins."
#: classes/footnotes_settings.php:596 #: classes/tab_howto.php:69
msgid "Start your footnote with the following shortcode:"
msgstr "Starten Sie eine Fußnote mit:"
#: classes/footnotes_settings.php:602
msgid "...and end your footnote with this shortcode:"
msgstr "...und beenden Sie diese mit:"
#: classes/footnotes_settings.php:610 classes/footnotes_settings.php:613
msgid "example string" msgid "example string"
msgstr "Beispieltext" msgstr "Beispieltext"
#: classes/footnotes_settings.php:611 #: classes/tab_howto.php:74
msgid "Start your footnote with the following shortcode:"
msgstr "Starten Sie eine Fußnote mit:"
#: classes/tab_howto.php:80
msgid "...and end your footnote with this shortcode:"
msgstr "...und beenden Sie diese mit:"
#: classes/tab_howto.php:88
msgid "will be displayed as:" msgid "will be displayed as:"
msgstr "wird dargestellt als:" msgstr "wird dargestellt als:"
#: classes/footnotes_settings.php:618 #: classes/tab_howto.php:94
#, php-format #, php-format
msgid "If you have any questions, please don't hesitate to %se-mail%s us." msgid "If you have any questions, please don't hesitate to %se-mail%s us."
msgstr "Bei Fragen können Sie uns gerne eine %se-Mail%s senden." msgstr "Bei Fragen können Sie uns gerne eine %se-Mail%s senden."
#: classes/footnotes_widget.php:15 classes/footnotes_widget.php:25 #: classes/widget.php:25 classes/widget.php:43
msgid "" msgid ""
"The widget defines the position of the reference container if set to " "The widget defines the position of the reference container if set to "
"\"widget area\"." "\"widget area\"."
@ -199,14 +266,17 @@ msgstr ""
"Das Widget definiert die Position der Einzelnachweise wenn \"im Widget\" " "Das Widget definiert die Position der Einzelnachweise wenn \"im Widget\" "
"eingestellt ist." "eingestellt ist."
#: includes/plugin-settings.php:22 #: includes/plugin-settings.php:24
msgid "Settings" msgid "Settings"
msgstr "Einstellungen" msgstr "Einstellungen"
#: includes/plugin-settings.php:24 #: includes/plugin-settings.php:26
msgid "Support" msgid "Support"
msgstr "Support" msgstr "Support"
#~ msgid "HowTo"
#~ msgstr "Hilfe"
#~ msgid "%s Widget" #~ msgid "%s Widget"
#~ msgstr "%s Widget" #~ msgstr "%s Widget"

Binary file not shown.

View file

@ -1,15 +1,15 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: footnotes\n" "Project-Id-Version: footnotes\n"
"POT-Creation-Date: 2014-05-27 21:03+0100\n" "POT-Creation-Date: 2014-08-21 10:24+0100\n"
"PO-Revision-Date: 2014-06-20 12:42+0100\n" "PO-Revision-Date: 2014-08-21 10:29+0100\n"
"Last-Translator: Mark Cheret <mark@cheret.de>\n" "Last-Translator: Stefan Herndler <s.herndler@methis.at>\n"
"Language-Team: SHE <s.herndler@methis.at>\n" "Language-Team: SHE <s.herndler@methis.at>\n"
"Language: en\n" "Language: en\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.5\n" "X-Generator: Poedit 1.6.6\n"
"X-Poedit-Basepath: ..\n" "X-Poedit-Basepath: ..\n"
"X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
@ -18,138 +18,204 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SearchPath-0: .\n" "X-Poedit-SearchPath-0: .\n"
#: classes/footnotes.php:68 #: classes/footnotes.php:79
msgid "You must be logged in to run this script." msgid "You must be logged in to run this script."
msgstr "You must be logged in to run this script." msgstr "You must be logged in to run this script."
#: classes/footnotes.php:73 #: classes/footnotes.php:84
msgid "You do not have permission to run this script." msgid "You do not have permission to run this script."
msgstr "You do not have permission to run this script." msgstr "You do not have permission to run this script."
#: classes/footnotes_settings.php:409 #: classes/tab_custom.php:28
msgid "Customize"
msgstr "Customize"
#: classes/tab_custom.php:39
msgid "Superscript layout"
msgstr "Superscript layout"
#: classes/tab_custom.php:47
msgid "Hyperlink symbol in the Reference container"
msgstr "Hyperlink symbol in the Reference container"
#: classes/tab_custom.php:55
msgid "Add custom CSS to the public page"
msgstr "Add custom CSS to the public page"
#: classes/tab_custom.php:76
msgid "Before Footnotes index:"
msgstr "Before Footnotes index:"
#: classes/tab_custom.php:80
msgid "After Footnotes index:"
msgstr "After Footnotes index:"
#: classes/tab_custom.php:93
msgid "Hyperlink symbol:"
msgstr "Hyperlink symbol:"
#: classes/tab_custom.php:97
msgid "or enter a user defined symbol:"
msgstr "or enter a user defined symbol:"
#: classes/tab_custom.php:100
msgid "if set it overrides the hyperlink symbol above"
msgstr "if set it overrides the hyperlink symbol above"
#: classes/tab_custom.php:110
msgid "Add custom CSS:"
msgstr "Add custom CSS:"
#: classes/tab_custom.php:114
msgid ""
"Available CSS classes to customize the footnotes and the reference container:"
msgstr ""
"Available CSS classes to customize the footnotes and the reference container:"
#: classes/tab_custom.php:117
msgid "inline footnotes"
msgstr "inline footnotes"
#: classes/tab_custom.php:118
msgid "inline footnotes, mouse over highlight box"
msgstr "inline footnotes, mouse over highlight box"
#: classes/tab_custom.php:120
msgid "reference container footnotes index"
msgstr "reference container footnotes index"
#: classes/tab_custom.php:121
msgid "reference container footnotes linked arrow"
msgstr "reference container footnotes linked arrow"
#: classes/tab_custom.php:122
msgid "reference container footnotes text"
msgstr "reference container footnotes text"
#: classes/tab_general.php:28
msgid "General" msgid "General"
msgstr "General" msgstr "General"
#: classes/footnotes_settings.php:411 #: classes/tab_general.php:32
#, php-format #, php-format
msgid "%s Settings" msgid "%s Settings"
msgstr "%s Settings" msgstr "%s Settings"
#: classes/footnotes_settings.php:412 #: classes/tab_general.php:39
msgid "References Container" msgid "References Container"
msgstr "References Container" msgstr "References Container"
#: classes/footnotes_settings.php:413 #: classes/tab_general.php:47
#, php-format #, php-format
msgid "%s styling" msgid "%s styling"
msgstr "%s styling" msgstr "%s styling"
#: classes/footnotes_settings.php:415 #: classes/tab_general.php:63
msgid "Other" msgid "Other"
msgstr "Other" msgstr "Other"
#: classes/footnotes_settings.php:435 #: classes/tab_general.php:84
msgid "References label:" msgid "References label:"
msgstr "References label:" msgstr "References label:"
#: classes/footnotes_settings.php:440 #: classes/tab_general.php:88
msgid "Collapse references by default:" msgid "Collapse references by default:"
msgstr "Collapse references by default:" msgstr "Collapse references by default:"
#: classes/footnotes_settings.php:449 #: classes/tab_general.php:94
msgid "in the footer" msgid "in the footer"
msgstr "in the footer" msgstr "in the footer"
#: classes/footnotes_settings.php:450 #: classes/tab_general.php:95
msgid "at the end of the post" msgid "at the end of the post"
msgstr "at the end of the post" msgstr "at the end of the post"
#: classes/footnotes_settings.php:451 #: classes/tab_general.php:96
msgid "in the widget area" msgid "in the widget area"
msgstr "in the widget area" msgstr "in the widget area"
#: classes/footnotes_settings.php:453 #: classes/tab_general.php:98
msgid "Where shall the reference container appear:" msgid "Where shall the reference container appear:"
msgstr "Where should the reference container appear:" msgstr "Where should the reference container appear:"
#: classes/footnotes_settings.php:465 classes/footnotes_settings.php:546 #: classes/tab_general.php:109 classes/tab_general.php:182
msgid "Yes" msgid "Yes"
msgstr "Yes" msgstr "Yes"
#: classes/footnotes_settings.php:466 classes/footnotes_settings.php:547 #: classes/tab_general.php:110 classes/tab_general.php:183
msgid "No" msgid "No"
msgstr "No" msgstr "No"
#: classes/footnotes_settings.php:468 #: classes/tab_general.php:112
msgid "Combine identical footnotes:" msgid "Combine identical footnotes:"
msgstr "Combine identical footnotes:" msgstr "Combine identical footnotes:"
#: classes/footnotes_settings.php:478 classes/footnotes_settings.php:488 #: classes/tab_general.php:120 classes/tab_general.php:129
msgid "user defined" msgid "user defined"
msgstr "user defined" msgstr "user defined"
#: classes/footnotes_settings.php:480 #: classes/tab_general.php:122
msgid "Footnote tag starts with:" msgid "Footnote tag starts with:"
msgstr "Footnote tag starts with:" msgstr "Footnote tag starts with:"
#: classes/footnotes_settings.php:490 #: classes/tab_general.php:131
msgid "and ends with:" msgid "and ends with:"
msgstr "and ends with:" msgstr "and ends with:"
#: classes/footnotes_settings.php:504 #: classes/tab_general.php:143
msgid "Arabic Numbers - Plain" msgid "Arabic Numbers - Plain"
msgstr "Arabic Numbers - Plain" msgstr "Arabic Numbers - Plain"
#: classes/footnotes_settings.php:505 #: classes/tab_general.php:144
msgid "Arabic Numbers - Leading 0" msgid "Arabic Numbers - Leading 0"
msgstr "Arabic Numbers - Leading 0" msgstr "Arabic Numbers - Leading 0"
#: classes/footnotes_settings.php:506 #: classes/tab_general.php:145
msgid "Latin Character - lower case" msgid "Latin Character - lower case"
msgstr "Latin Character - lower case" msgstr "Latin Character - lower case"
#: classes/footnotes_settings.php:507 #: classes/tab_general.php:146
msgid "Latin Character - upper case" msgid "Latin Character - upper case"
msgstr "Latin Character - upper case" msgstr "Latin Character - upper case"
#: classes/footnotes_settings.php:508 #: classes/tab_general.php:147
msgid "Roman Numerals" msgid "Roman Numerals"
msgstr "Roman Numerals" msgstr "Roman Numerals"
#: classes/footnotes_settings.php:510 #: classes/tab_general.php:149
msgid "Counter style:" msgid "Counter style:"
msgstr "Counter style:" msgstr "Counter style:"
#: classes/footnotes_settings.php:522 includes/replacer.php:164 #: classes/tab_general.php:160 classes/task.php:143
#, php-format #, php-format
msgid "I %s %s" msgid "I %s %s"
msgstr "I %s %s" msgstr "I %s %s"
#: classes/footnotes_settings.php:523 includes/replacer.php:167 #: classes/tab_general.php:161 classes/task.php:146
#, php-format #, php-format
msgid "this site uses the awesome %s Plugin" msgid "this site uses the awesome %s Plugin"
msgstr "this site uses the awesome %s Plugin" msgstr "this site uses the awesome %s Plugin"
#: classes/footnotes_settings.php:524 includes/replacer.php:171 #: classes/tab_general.php:162 classes/task.php:150
#, php-format #, php-format
msgid "extra smooth %s" msgid "extra smooth %s"
msgstr "extra smooth %s" msgstr "extra smooth %s"
#: classes/footnotes_settings.php:525 #: classes/tab_general.php:163
msgid "random text" msgid "random text"
msgstr "random text" msgstr "random text"
#: classes/footnotes_settings.php:526 #: classes/tab_general.php:164
#, php-format #, php-format
msgid "Don't display a %s %s text in my footer." msgid "Don't display a %s %s text in my footer."
msgstr "Don't display a %s %s text in my footer." msgstr "Don't display a %s %s text in my footer."
#: classes/footnotes_settings.php:528 #: classes/tab_general.php:166
#, php-format #, php-format
msgid "Tell the world you're using %s:" msgid "Tell the world you're using %s:"
msgstr "Tell the world you're using %s:" msgstr "Tell the world you're using %s:"
#: classes/footnotes_settings.php:533 #: classes/tab_general.php:170
#, php-format #, php-format
msgid "" msgid ""
"Don't tell the world you're using %s on specific pages by adding the " "Don't tell the world you're using %s on specific pages by adding the "
@ -158,40 +224,40 @@ msgstr ""
"Don't tell the world you're using %s on specific pages by adding the " "Don't tell the world you're using %s on specific pages by adding the "
"following short code:" "following short code:"
#: classes/footnotes_settings.php:549 #: classes/tab_general.php:185
msgid "Allow footnotes on Summarized Posts:" msgid "Allow footnotes on Summarized Posts:"
msgstr "Allow footnotes on Summarized Posts:" msgstr "Allow footnotes on Summarized Posts:"
#: classes/footnotes_settings.php:562 #: classes/tab_howto.php:28
msgid "HowTo" msgid "How to"
msgstr "HowTo" msgstr "How to"
#: classes/footnotes_settings.php:565 #: classes/tab_howto.php:39
msgid "Brief introduction in how to use the plugin" msgid "Brief introduction in how to use the plugin"
msgstr "Brief introduction in how to use the plugin" msgstr "Brief introduction in how to use the plugin"
#: classes/footnotes_settings.php:596 #: classes/tab_howto.php:69
msgid "Start your footnote with the following shortcode:"
msgstr "Start your footnote with the following shortcode:"
#: classes/footnotes_settings.php:602
msgid "...and end your footnote with this shortcode:"
msgstr "...and end your footnote with this shortcode:"
#: classes/footnotes_settings.php:610 classes/footnotes_settings.php:613
msgid "example string" msgid "example string"
msgstr "example string" msgstr "example string"
#: classes/footnotes_settings.php:611 #: classes/tab_howto.php:74
msgid "Start your footnote with the following shortcode:"
msgstr "Start your footnote with the following shortcode:"
#: classes/tab_howto.php:80
msgid "...and end your footnote with this shortcode:"
msgstr "...and end your footnote with this shortcode:"
#: classes/tab_howto.php:88
msgid "will be displayed as:" msgid "will be displayed as:"
msgstr "will be displayed as:" msgstr "will be displayed as:"
#: classes/footnotes_settings.php:618 #: classes/tab_howto.php:94
#, php-format #, php-format
msgid "If you have any questions, please don't hesitate to %se-mail%s us." msgid "If you have any questions, please don't hesitate to %se-mail%s us."
msgstr "If you have any questions, please don't hesitate to %se-mail%s us." msgstr "If you have any questions, please don't hesitate to %se-mail%s us."
#: classes/footnotes_widget.php:15 classes/footnotes_widget.php:25 #: classes/widget.php:25 classes/widget.php:43
msgid "" msgid ""
"The widget defines the position of the reference container if set to " "The widget defines the position of the reference container if set to "
"\"widget area\"." "\"widget area\"."
@ -199,14 +265,17 @@ msgstr ""
"The widget defines the position of the reference container if set to " "The widget defines the position of the reference container if set to "
"\"widget area\"." "\"widget area\"."
#: includes/plugin-settings.php:22 #: includes/plugin-settings.php:24
msgid "Settings" msgid "Settings"
msgstr "Settings" msgstr "Settings"
#: includes/plugin-settings.php:24 #: includes/plugin-settings.php:26
msgid "Support" msgid "Support"
msgstr "Support" msgstr "Support"
#~ msgid "HowTo"
#~ msgstr "HowTo"
#~ msgid "%s Widget" #~ msgid "%s Widget"
#~ msgstr "%s Widget" #~ msgstr "%s Widget"

View file

@ -5,7 +5,7 @@ Requires at least: 3.9
Tested up to: 3.9.1 Tested up to: 3.9.1
License: GPLv3 or later License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html
Stable Tag: 1.3.1 Stable Tag: 1.3.2
== Description == == Description ==
@ -67,6 +67,9 @@ No, this Plugin has been written from scratch. Of course some inspirations on ho
= 1.3.2 = = 1.3.2 =
- Bugfix: More security recognizing Footnotes on public pages (e.g. ignoring empty Footnote short codes) - 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) - 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
= 1.3.1 = = 1.3.1 =
- Bugfix: Allow settings to be empty - Bugfix: Allow settings to be empty

View file

@ -1,15 +1,8 @@
<div class="footnote_plugin_container"> <div class="footnote_plugin_container">
<div class="footnote_plugin_index"> <div class="footnote_plugin_index">[[FOOTNOTE INDEX]].</div>
[[FOOTNOTE INDEX]].
</div>
<div class="footnote_plugin_text"> <div class="footnote_plugin_text">
<a class="footnote_plugin_link" href="#footnote_plugin_tooltip_[[FOOTNOTE INDEX SHORT]]" <a class="footnote_plugin_link" href="#footnote_plugin_tooltip_[[FOOTNOTE INDEX SHORT]]"
name="footnote_plugin_reference_[[FOOTNOTE INDEX SHORT]]" name="footnote_plugin_reference_[[FOOTNOTE INDEX SHORT]]"
id="footnote_plugin_reference_[[FOOTNOTE INDEX SHORT]]"> id="footnote_plugin_reference_[[FOOTNOTE INDEX SHORT]]">[[HYPERLINK SYMBOL]]</a>&nbsp;[[FOOTNOTE TEXT]]</div>
&#8593;
</a>
&nbsp;
[[FOOTNOTE TEXT]]
</div>
<div class="footnote_plugin_end"></div> <div class="footnote_plugin_end"></div>
</div> </div>