aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-08 18:13:44 -0700
committerfriendica <info@friendica.com>2012-08-08 18:13:44 -0700
commit5c4246e6033fb1130aa0393878c36d5f3bbd4694 (patch)
tree4b0b3a7c7fe941cddbdb359d4a7e3384e6b33dd6 /mod
parentc28da5673731acbedecb4209c38b72046db597e1 (diff)
parent29b8b8f82b72f646ea4c55d66766bd0e0c950657 (diff)
downloadvolse-hubzilla-5c4246e6033fb1130aa0393878c36d5f3bbd4694.tar.gz
volse-hubzilla-5c4246e6033fb1130aa0393878c36d5f3bbd4694.tar.bz2
volse-hubzilla-5c4246e6033fb1130aa0393878c36d5f3bbd4694.zip
Merge pull request #2 from beardy-unixer/master
More theme refactoring
Diffstat (limited to 'mod')
-rw-r--r--mod/admin.php8
-rw-r--r--mod/settings.php10
-rw-r--r--mod/view.php4
3 files changed, 11 insertions, 11 deletions
diff --git a/mod/admin.php b/mod/admin.php
index c8ed7a53b..44010efda 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -46,8 +46,8 @@ function admin_post(&$a){
break;
case 'themes':
$theme = $a->argv[2];
- if (is_file("view/theme/$theme/config.php")){
- require_once("view/theme/$theme/config.php");
+ if (is_file("view/theme/$theme/php/config.php")){
+ require_once("view/theme/$theme/php/config.php");
if (function_exists("theme_admin_post")){
theme_admin_post($a);
}
@@ -937,8 +937,8 @@ function admin_page_themes(&$a){
}
$admin_form="";
- if (is_file("view/theme/$theme/config.php")){
- require_once("view/theme/$theme/config.php");
+ if (is_file("view/theme/$theme/php/config.php")){
+ require_once("view/theme/$theme/php/config.php");
if(function_exists("theme_admin")){
$admin_form = theme_admin($a);
}
diff --git a/mod/settings.php b/mod/settings.php
index 5e8c78ae7..7c944a149 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -5,12 +5,12 @@ function get_theme_config_file($theme){
$a = get_app();
$base_theme = $a->theme_info['extends'];
- if (file_exists("view/theme/$theme/config.php")){
- return "view/theme/$theme/config.php";
+ if (file_exists("view/theme/$theme/php/config.php")){
+ return "view/theme/$theme/php/config.php";
}
- if (file_exists("view/theme/$base_theme/config.php")){
- return "view/theme/$base_theme/config.php";
- }
+ //if (file_exists("view/theme/$base_theme/php/config.php")){
+ // return "view/theme/$base_theme/php/config.php";
+ //}
return null;
}
diff --git a/mod/view.php b/mod/view.php
index 15b3733b3..965e18067 100644
--- a/mod/view.php
+++ b/mod/view.php
@@ -9,8 +9,8 @@ function view_init($a){
if ($a->argc == 4){
$theme = $a->argv[2];
$THEMEPATH = "view/theme/$theme";
- if(file_exists("view/theme/$theme/style.php"))
- require_once("view/theme/$theme/style.php");
+ if(file_exists("view/theme/$theme/php/style.php"))
+ require_once("view/theme/$theme/php/style.php");
}
killme();