major theme re-org, only duepuntozero and slackr working atm

This commit is contained in:
friendica
2012-08-01 05:02:43 -07:00
parent 7a08942872
commit dcbc0c0c95
237 changed files with 108 additions and 67 deletions
+10 -10
View File
@@ -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');
}
}