Adds theme info file to define 'parent' theme from where load tpl files

This commit is contained in:
Fabio Comuni 2011-09-27 09:32:20 +02:00
parent 939449602a
commit e9638b6980
23 changed files with 142 additions and 460 deletions

View file

@ -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");