mirror of
https://github.com/friendica/friendica
synced 2024-11-10 14:22:54 +00:00
Merge pull request #575 from beardy-unixer/master
If we find a home.html, also look for a home.css
This commit is contained in:
commit
972060a8ff
1 changed files with 6 additions and 2 deletions
|
@ -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>';
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue