- Add: Plugin Widget to define where the reference container shall appear when set to "widget area"
- Update: Translation for new settings and for the Widget description git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@920341 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
b7af8ff042
commit
e6a31532e0
10 changed files with 216 additions and 95 deletions
|
@ -60,4 +60,6 @@ define("FOOTNOTES_TEMPLATES_DIR", dirname(__FILE__) . "/../templates/");
|
|||
* PLUGIN PLACEHOLDER TO NOT DISPLAY THE 'LOVE ME' SLUG
|
||||
* @since 1.1.1
|
||||
*/
|
||||
define("FOOTNOTES_NO_SLUGME_PLUG", "[[no footnotes: love]]");
|
||||
define("FOOTNOTES_NO_SLUGME_PLUG", "[[no footnotes: love]]");
|
||||
|
||||
define("FOOTNOTES_REFERENCE_CONTAINER_POSITION", "[[footnotes reference container position]]");
|
|
@ -123,7 +123,14 @@ function footnotes_Replacer_WidgetText($p_str_Content)
|
|||
*/
|
||||
function footnotes_StopReplacing()
|
||||
{
|
||||
echo footnotes_OutputReferenceContainer();
|
||||
/* access to the global settings collection */
|
||||
global $g_arr_FootnotesSettings;
|
||||
/* get setting for 'display reference container position' */
|
||||
$l_str_ReferenceContainerPosition = $g_arr_FootnotesSettings[FOOTNOTE_INPUTFIELD_REFERENCE_CONTAINER_PLACE];
|
||||
|
||||
if ($l_str_ReferenceContainerPosition == "footer") {
|
||||
echo footnotes_OutputReferenceContainer();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue