forked from leftypol/leftypol
renamed "homepage" directory to "themes"
This commit is contained in:
parent
eef4993794
commit
e6d7e71175
13 changed files with 14 additions and 14 deletions
|
@ -246,10 +246,10 @@
|
|||
//$config['dir']['static'] = $config['root'] . 'static/';
|
||||
// Where to store the .html templates. This folder and templates must exist or fatal errors will be thrown.
|
||||
$config['dir']['template'] = getcwd() . '/templates';
|
||||
// For the homepage generation files (themes, etc.)
|
||||
$config['dir']['homepage'] = getcwd() . '/templates/homepage';
|
||||
// For the themes (homepages, etc.)
|
||||
$config['dir']['themes'] = getcwd() . '/templates/themes';
|
||||
// Same as above, but a URI (accessable by web interface, not locally)
|
||||
$config['dir']['homepage_uri'] = 'templates/homepage';
|
||||
$config['dir']['themes_uri'] = 'templates/themes';
|
||||
// Homepage directory
|
||||
$config['dir']['home'] = '';
|
||||
|
||||
|
|
|
@ -143,11 +143,11 @@
|
|||
function loadThemeConfig($_theme) {
|
||||
global $config;
|
||||
|
||||
if(!file_exists($config['dir']['homepage'] . '/' . $_theme . '/info.php'))
|
||||
if(!file_exists($config['dir']['themes'] . '/' . $_theme . '/info.php'))
|
||||
return false;
|
||||
|
||||
// Load theme information into $theme
|
||||
include $config['dir']['homepage'] . '/' . $_theme . '/info.php';
|
||||
include $config['dir']['themes'] . '/' . $_theme . '/info.php';
|
||||
return $theme;
|
||||
}
|
||||
|
||||
|
@ -162,8 +162,8 @@
|
|||
|
||||
$theme = loadThemeConfig($_theme);
|
||||
|
||||
if(file_exists($config['dir']['homepage'] . '/' . $_theme . '/theme.php')) {
|
||||
require_once $config['dir']['homepage'] . '/' . $_theme . '/theme.php';
|
||||
if(file_exists($config['dir']['themes'] . '/' . $_theme . '/theme.php')) {
|
||||
require_once $config['dir']['themes'] . '/' . $_theme . '/theme.php';
|
||||
$theme['build_function']($action, themeSettings());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue