aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-01 05:02:43 -0700
committerfriendica <info@friendica.com>2012-08-01 05:02:43 -0700
commitdcbc0c0c9516adf616023615871439b4015fa686 (patch)
tree451f1e7f53e9635a2640bef66c4541d1dd4b6c10 /boot.php
parent7a0894287268658361c90e2f4d1b77f8ca5739a6 (diff)
downloadvolse-hubzilla-dcbc0c0c9516adf616023615871439b4015fa686.tar.gz
volse-hubzilla-dcbc0c0c9516adf616023615871439b4015fa686.tar.bz2
volse-hubzilla-dcbc0c0c9516adf616023615871439b4015fa686.zip
major theme re-org, only duepuntozero and slackr working atm
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/boot.php b/boot.php
index 102304596..2d796f197 100644
--- a/boot.php
+++ b/boot.php
@@ -589,7 +589,7 @@ if(! class_exists('App')) {
function init_pagehead() {
$this->page['title'] = $this->config['sitename'];
- $this->page['htmlhead'] = file_get_contents('view/head.tpl');
+ $this->page['htmlhead'] = get_markup_template('head.tpl');
}
function set_curl_code($code) {
@@ -1070,7 +1070,7 @@ if(! function_exists('profile_load')) {
* load/reload current theme info
*/
- $theme_info_file = "view/theme/".current_theme()."/theme.php";
+ $theme_info_file = "view/theme/".current_theme()."/php/theme.php";
if (file_exists($theme_info_file)){
require_once($theme_info_file);
}
@@ -1469,17 +1469,17 @@ if(! function_exists('current_theme')) {
}
if($theme_name &&
- (file_exists('view/theme/' . $theme_name . '/style.css') ||
- file_exists('view/theme/' . $theme_name . '/style.php')))
+ (file_exists('view/theme/' . $theme_name . '/css/style.css') ||
+ file_exists('view/theme/' . $theme_name . '/php/style.php')))
return($theme_name);
foreach($app_base_themes as $t) {
- if(file_exists('view/theme/' . $t . '/style.css')||
- file_exists('view/theme/' . $t . '/style.php'))
+ if(file_exists('view/theme/' . $t . '/css/style.css')||
+ file_exists('view/theme/' . $t . '/php/style.php'))
return($t);
}
- $fallback = array_merge(glob('view/theme/*/style.css'),glob('view/theme/*/style.php'));
+ $fallback = array_merge(glob('view/theme/*/css/style.css'),glob('view/theme/*/php/style.php'));
if(count($fallback))
return (str_replace('view/theme/','', substr($fallback[0],0,-10)));
@@ -1494,9 +1494,9 @@ if(! function_exists('current_theme_url')) {
function current_theme_url() {
global $a;
$t = current_theme();
- if (file_exists('view/theme/' . $t . '/style.php'))
- return($a->get_baseurl() . '/view/theme/' . $t . '/style.pcss');
- return($a->get_baseurl() . '/view/theme/' . $t . '/style.css');
+ if (file_exists('view/theme/' . $t . '/php/style.php'))
+ return($a->get_baseurl() . '/view/theme/' . $t . '/php/style.pcss');
+ return($a->get_baseurl() . '/view/theme/' . $t . '/css/style.css');
}
}