]> git.mxchange.org Git - friendica.git/blob - mod/home.php
cleanup home page
[friendica.git] / mod / home.php
1 <?php
2
3 if(! function_exists('home_init')) {
4 function home_init(&$a) {
5
6         if(local_user() && ($a->user['nickname']))
7                         goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );
8
9         $a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n"; 
10 }}
11
12
13 if(! function_exists('home_content')) {
14 function home_content(&$a) {
15
16         $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"mistpark\" >mistpark</a></div>";
17         $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>';
18         $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
19         return $o;
20
21         
22 }}