]> git.mxchange.org Git - friendica.git/blobdiff - mod/home.php
Let an item be accssible via the GUI (additionally to uid and item id)
[friendica.git] / mod / home.php
index 6ed36b7638c1ce39c62adb3be61cc6f0a9f4e764..f703263a2c6a532831bcfc5431c1e944e53ee0ae 100644 (file)
@@ -25,9 +25,14 @@ function home_content(&$a) {
        if(x($_SESSION,'mobile-theme'))
                unset($_SESSION['mobile-theme']);
 
-       $o .= '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
-       if(file_exists('home.html'))
-               $o .= file_get_contents('home.html');
+       if(file_exists('home.html')){
+               if(file_exists('home.css')){
+                         $a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/home.css' . '" media="all" />';}
+                                         
+               $o .= file_get_contents('home.html');}
+               
+       else    $o .= '<h1>' . ((x($a->config,'sitename')) ? sprintf( t("Welcome to %s") ,$a->config['sitename']) : "" ) . '</h1>';
+
 
        $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);