mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:50:11 +00:00
Adds theme info file to define 'parent' theme from where load tpl files
This commit is contained in:
parent
939449602a
commit
e9638b6980
23 changed files with 142 additions and 460 deletions
|
@ -388,11 +388,13 @@ function get_intltext_template($s) {
|
|||
|
||||
if(! function_exists('get_markup_template')) {
|
||||
function get_markup_template($s) {
|
||||
|
||||
$a=get_app();
|
||||
$theme = current_theme();
|
||||
|
||||
if(file_exists("view/theme/$theme/$s"))
|
||||
return file_get_contents("view/theme/$theme/$s");
|
||||
elseif (x($a->theme_info,"extends") && file_exists("view/theme/".$a->theme_info["extends"]."/$s"))
|
||||
return file_get_contents("view/theme/".$a->theme_info["extends"]."/$s");
|
||||
else
|
||||
return file_get_contents("view/$s");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue