diff options
author | friendica <info@friendica.com> | 2012-08-01 05:02:43 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-01 05:02:43 -0700 |
commit | dcbc0c0c9516adf616023615871439b4015fa686 (patch) | |
tree | 451f1e7f53e9635a2640bef66c4541d1dd4b6c10 /boot.php | |
parent | 7a0894287268658361c90e2f4d1b77f8ca5739a6 (diff) | |
download | volse-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.php | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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'); } } |