aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-27 09:32:20 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-27 09:32:20 +0200
commite9638b69801cee3e74a97825f9af3749c9322c53 (patch)
tree513fc95f31e86975fda302e40c2883f4e8f0cd44 /include/text.php
parent939449602a58838f81045c9a0e9a205c8fa9e6bd (diff)
downloadvolse-hubzilla-e9638b69801cee3e74a97825f9af3749c9322c53.tar.gz
volse-hubzilla-e9638b69801cee3e74a97825f9af3749c9322c53.tar.bz2
volse-hubzilla-e9638b69801cee3e74a97825f9af3749c9322c53.zip
Adds theme info file to define 'parent' theme from where load tpl files
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index ea64a3d28..656cd8809 100644
--- a/include/text.php
+++ b/include/text.php
@@ -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");