mirror of
https://github.com/friendica/friendica
synced 2025-07-12 04:19:38 +02:00
full theming support
This commit is contained in:
parent
4bcf380296
commit
30e3a65c0f
10 changed files with 58 additions and 18 deletions
|
@ -26,6 +26,7 @@ $a->init_pagehead();
|
|||
|
||||
session_start();
|
||||
|
||||
|
||||
if((x($_SESSION,'authenticated')) || (x($_POST['auth-params'])))
|
||||
require("auth.php");
|
||||
|
||||
|
@ -106,12 +107,18 @@ $a->page['content'] .= $debug_text;
|
|||
if($a->module != 'install')
|
||||
require_once("nav.php");
|
||||
|
||||
$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array(
|
||||
'$stylesheet' => $a->get_baseurl() . '/view/theme/'
|
||||
. ((x($_SESSION,'theme')) ? $_SESSION['theme'] : 'default')
|
||||
. '/style.css'
|
||||
));
|
||||
|
||||
$page = $a->page;
|
||||
$profile = $a->profile;
|
||||
|
||||
header("Content-type: text/html; charset=utf-8");
|
||||
|
||||
$template = "view/"
|
||||
. ((x($a->page,'theme')) ? $a->page['theme'] . '/' : "" )
|
||||
. ((x($a->page,'template')) ? $a->page['template'] : 'default' )
|
||||
. ".php";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue