]> git.mxchange.org Git - friendica.git/blob - mod/home.php
fix like/dislike refresh on photos/display items
[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         $o = '';
17         if(! (x($a->page,'footer')))
18                 $a->page['footer'] = '';
19         $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" title=\"friendika\" >friendika</a></div>";
20         $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>';
21         if(file_exists('home.html'))
22                 $o .= file_get_contents('home.html');
23         $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
24         return $o;
25
26         
27 }}