Choosed to move outdated functions to helper
As comments for now
This commit is contained in:
parent
33a1a0908d
commit
45a8099bf3
14
action.php
14
action.php
|
@ -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>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
15
helper.php
15
helper.php
|
@ -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>';
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue