Choosed to move outdated functions to helper

As comments for now
This commit is contained in:
Simon DELAGE 2014-09-03 03:52:47 +02:00
parent 33a1a0908d
commit 45a8099bf3
2 changed files with 15 additions and 14 deletions

View file

@ -156,18 +156,4 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{
$content = str_replace('@USER@',$user,$content);
return $content;
}
//draws a home button, used by calls from main.php in template folder
function homeButton() {
$this->init();
if ($_SERVER['REMOTE_USER']!=null) {
echo '<form class="button btn_show" method="post" action="doku.php?id='.$this->private_page.'"><input class="button" type="submit" value="Home"/></form>';
}
}
//draws a home link, used by calls from main.php in template folder
function homeLink() {
$this->init();
if ($_SERVER['REMOTE_USER']!=null) {
echo '<a href="doku.php?id='.$this->private_page.'">Home</a>';
}
}
}

View file

@ -49,4 +49,19 @@ class helper_plugin_userhomepage extends DokuWiki_Plugin {
}
}
// //draws a home button, used by calls from main.php in template folder
// function homeButton() {
// $this->init();
// if ($_SERVER['REMOTE_USER']!=null) {
// echo '<form class="button btn_show" method="post" action="doku.php?id='.$this->private_page.'"><input class="button" type="submit" value="Home"/></form>';
// }
// }
// //draws a home link, used by calls from main.php in template folder
// function homeLink() {
// $this->init();
// if ($_SERVER['REMOTE_USER']!=null) {
// echo '<a href="doku.php?id='.$this->private_page.'">Home</a>';
// }
// }
}