]> git.mxchange.org Git - friendica.git/commitdiff
If we find a home.html, also look for a home.css
authorThomas Willingham <founder@kakste.com>
Sat, 5 Jan 2013 14:31:10 +0000 (14:31 +0000)
committerThomas Willingham <founder@kakste.com>
Sat, 5 Jan 2013 14:31:10 +0000 (14:31 +0000)
mod/home.php

index 76318b157ca0dc7ad93e0190b1dfefe27efb2fb4..f703263a2c6a532831bcfc5431c1e944e53ee0ae 100644 (file)
@@ -25,8 +25,12 @@ function home_content(&$a) {
        if(x($_SESSION,'mobile-theme'))
                unset($_SESSION['mobile-theme']);
 
-       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>';