Revision history for FootnoteAction


Revision [21027]

Last edited on 2010-02-11 20:10:17 by DrewMca [updated for version 1.2]
Additions:
- Wikka 1.1.6.2 to 1.2
Deletions:
- Wikka 1.1.6.2 to 1.1.6.5


Revision [21026]

Edited on 2010-02-11 20:04:19 by DrewMca [updated for version 1.2]
Additions:
2c. [version 1.2 only] In ##handlers/page/show.php##, replace the following code block:
Deletions:
2c. [versions 1.2 only] In ##handlers/page/show.php##, go to line 21 and replace the following code block:


Revision [21025]

Edited on 2010-02-11 20:02:49 by DrewMca [added update for version 1.2]
Additions:
2c. [versions 1.2 only] In ##handlers/page/show.php##, go to line 21 and replace the following code block:
%%(php)
<?php
echo '<div class="clear"></div></div>'."\n";
if ($raw == 1)
echo '<div class="wikisource">'.nl2br($this->htmlspecialchars_ent($this->page["body"], ENT_QUOTES)).'</div>';
else
echo $this->Format($this->page['body'], 'wakka', 'page');
with the following code block
%%(php)
<?php
echo '<div class="clear"></div></div>'."\n";
if ($raw == 1)
echo '<div class="wikisource">'.nl2br($this->htmlspecialchars_ent($this->page["body"], ENT_QUOTES)).'</div>';
else
echo $this->Format($this->page['body'], 'wakka', 'page');
// Footnote action


Revision [20099]

Edited on 2008-06-27 15:53:12 by DomBonj [1.1.6.5 compatibility]
Additions:
- Wikka 1.1.6.2 to 1.1.6.5
Deletions:
- Wikka 1.1.6.2 & 1.1.6.3 & 1.1.6.4


Revision [19759]

Edited on 2008-03-29 07:01:26 by DomBonj [v0.98: coding standards;1.1.6.4 compatibility]
Additions:
- Wikka 1.1.6.2 & 1.1.6.3 & 1.1.6.4
# @version 0.98
// the only change made to this function (from formatters/wakka.php in version 1.1.6.3) is in the processing of $things='closetags':
function FNprint (&$thisone, $method, $note_txt='', $base_url='')
if (!isset($footnotes))
$out = '';
if ('addnote' == $method)
{ // display a single footnote and add it to the page's list of footnotes
else if ('list' == $method)
{ // display the list of all the page's footnotes
if (isset($footnotes) && !empty($footnotes))
$out = "<fieldset class='footnotesbox'><legend> <strong>". FN_NOTES .' </strong></legend>';
foreach ($footnotes as $note_txt_raw)
")/ms", "FNwakka2callback", $thisone->htmlspecialchars_ent($note_txt_raw) );
$out .= ($note_txt . FNwakka2callback('closetags') . '<br />');
$out .= '</fieldset><br />';
else if ('purge' == $method)
{ // empty the footnotes array, so they are not displayed at the bottom of the page
// do nothing silently if unknown $method
} // if !function_exists()
$output = '';
if (!isset($vars['note']))
$output .= FNerror(sprintf(FN_ERROR_REQUEST_FORMAT, FN_ERROR_USAGE));
}
else
$output .= FNprint($this, 'addnote', $vars['note']);
echo $output;
2a. [version 1.1.6.4 only] In ##handlers/page/show.php##, go to line 80 and replace the following code block:
echo '<div style="clear: both"></div>'."\n";
echo '</div>'."\n";
echo '<!--closing page content-->'."\n";
echo '<div style="clear: both"></div>'."\n";
if (function_exists('FNprint'))
echo (FNprint($this, 'list', '', $this->Href()));
echo '</div>'."\n";
echo '<!--closing page content-->'."\n";
2b. [versions 1.1.6.2 & 1.1.6.3 only] In ##handlers/page/show.php##, go to line 21 and replace the following code block:
Deletions:
- Wikka 1.1.6.2 & 1.1.6.3
# @version 0.97
// the only change made to this function (from formatters/wakka.php) is in the processing of $things='closetags':
function FNprint (&$thisone, $method, $note_txt="", $base_url="") {
if (!isset($footnotes)) {
$out = "";
if ("addnote" == $method) {
// display a single footnote and add it to the page's list of footnotes
} else if ("list" == $method) {
// display the list of all the page's footnotes
if (isset($footnotes) && !empty($footnotes)) {
$out = "<fieldset class='footnotesbox'><legend> <strong>". FN_NOTES ." </strong></legend>";
foreach ($footnotes as $note_txt_raw) {
")/ms", "FNwakka2callback", $thisone->htmlspecialchars_ent($note_txt_raw));
$out .= ($note_txt . FNwakka2callback('closetags') . "<br />");
$out .= "</fieldset><br />";
} else if ("purge" == $method) {
// empty the footnotes array, so they are not displayed at the bottom of the page
// die silently if unknown method
$output = "";
if ( !isset($vars['note']) ) {
$output .= FNerror(sprintf(FN_ERROR_REQUEST_FORMAT, FN_ERROR_USAGE));
} else {
$output .= FNprint($this, "addnote", $vars['note']);
echo $output;
2. In ##handlers/page/show.php##, go to line 21 and replace the following code block:


Revision [19313]

Edited on 2008-01-28 00:15:07 by DomBonj [Modified links pointing to docs server]

No Differences

Revision [17294]

Edited on 2007-07-27 13:19:01 by DomBonj [v0.97: bugfix: PHP5 compatibility]
Additions:
# @version 0.97
# @input Parameters = note='text of the note'
function FNprint (&$thisone, $method, $note_txt="", $base_url="") {
$title_text = $thisone->ReturnSafeHTML(preg_replace("/(\*\*|\'\'|\#\#|\#\%|\+\+|__|\/\/|\[\[|\]\])/ms", "", $note_txt));
$out = "<a href='". $thisone->Href(). '#fn' . $footnotesindex . "' title='". $title_text ."' ><sup id='fnback". $footnotesindex. "'>" . $footnotesindex . "</sup></a>";
$note_txt_raw = $thisone->htmlspecialchars_ent($note_txt);
")/ms", "FNwakka2callback", $thisone->htmlspecialchars_ent($note_txt_raw));
Deletions:
# @version 0.96
# @input Parameters = note='text of the note'
function FNprint (&$this, $method, $note_txt="", $base_url="") {
$title_text = $this->ReturnSafeHTML(preg_replace("/(\*\*|\'\'|\#\#|\#\%|\+\+|__|\/\/|\[\[|\]\])/ms", "", $note_txt));
$out = "<a href='". $this->Href(). '#fn' . $footnotesindex . "' title='". $title_text ."' ><sup id='fnback". $footnotesindex. "'>" . $footnotesindex . "</sup></a>";
$note_txt_raw = $this->htmlspecialchars_ent($note_txt);
")/ms", "FNwakka2callback", $this->htmlspecialchars_ent($note_txt_raw));


Revision [16606]

Edited on 2007-05-18 09:51:26 by DomBonj [1.1.6.3 compatibility]
Additions:
- Wikka 1.1.6.2 & 1.1.6.3
Deletions:
- Wikka 1.1.6.2


Revision [16393]

The oldest known version of this page was created on 2007-04-09 16:56:06 by DomBonj [1.1.6.3 compatibility]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki