]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #575 from beardy-unixer/master
authorfriendica <info@friendica.com>
Sun, 6 Jan 2013 03:32:11 +0000 (19:32 -0800)
committerfriendica <info@friendica.com>
Sun, 6 Jan 2013 03:32:11 +0000 (19:32 -0800)
If we find a home.html, also look for a home.css

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>';