Offer the possibility to define different URL for themes folder
This commit is contained in:
parent
1c6d132324
commit
70fb78b990
@ -25,6 +25,7 @@ defined('DEBUG_MODE') or define('DEBUG_MODE', false);
|
||||
defined('DEBUG_FILENAME') or define('DEBUG_FILENAME', DATA_DIRECTORY.DIRECTORY_SEPARATOR.'debug.log');
|
||||
|
||||
defined('THEME_DIRECTORY') or define('THEME_DIRECTORY', 'themes');
|
||||
defined('THEME_URL_PATH') or define('THEME_URL_PATH', 'themes');
|
||||
defined('SESSION_SAVE_PATH') or define('SESSION_SAVE_PATH', '');
|
||||
|
||||
defined('PROXY_HOSTNAME') or define('PROXY_HOSTNAME', '');
|
||||
|
@ -41,9 +41,10 @@ function css()
|
||||
|
||||
if ($theme !== 'original') {
|
||||
$css_file = THEME_DIRECTORY.'/'.$theme.'/css/app.css';
|
||||
$css_url = THEME_URL_PATH.'/'.$theme.'/css/app.css';
|
||||
|
||||
if (file_exists($css_file)) {
|
||||
return $css_file.'?version='.filemtime($css_file);
|
||||
return $css_url.'?version='.filemtime($css_file);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,9 +33,12 @@ define('DEBUG_MODE', false);
|
||||
// DEBUG_FILENAME => default is data/debug.log
|
||||
define('DEBUG_FILENAME', DATA_DIRECTORY.'/debug.log');
|
||||
|
||||
// THEME_DIRECTORY => default is themes
|
||||
// Theme folder on the filesystem => default is themes
|
||||
define('THEME_DIRECTORY', 'themes');
|
||||
|
||||
// Theme URL path => default is themes
|
||||
define('THEME_URL_PATH', 'themes');
|
||||
|
||||
// SESSION_SAVE_PATH => default is empty (used to store session files in a custom directory)
|
||||
define('SESSION_SAVE_PATH', '');
|
||||
|
||||
|
@ -82,9 +82,12 @@ define('DEBUG_MODE', false);
|
||||
// DEBUG_FILENAME => default is data/debug.log
|
||||
define('DEBUG_FILENAME', DATA_DIRECTORY.'/debug.log');
|
||||
|
||||
// THEME_DIRECTORY => default is themes
|
||||
// Theme folder on the filesystem => default is themes
|
||||
define('THEME_DIRECTORY', 'themes');
|
||||
|
||||
// Theme URL path => default is themes
|
||||
define('THEME_URL_PATH', 'themes');
|
||||
|
||||
// SESSION_SAVE_PATH => default is empty (used to store session files in a custom directory)
|
||||
define('SESSION_SAVE_PATH', '');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user