diff options
| author | spider@dav <spiderr@bitweaver.org> | 2025-05-30 09:30:32 -0400 |
|---|---|---|
| committer | spider@dav <spiderr@bitweaver.org> | 2025-05-30 09:30:32 -0400 |
| commit | 4765bc9852811b6ea42faf0310d4f5fb06deda80 (patch) | |
| tree | 0f1eaedce4a6932826237ff698ab9e55087c66ff /includes | |
| parent | bbf220a101070550374a9a9c41be46a5a6c3865b (diff) | |
| download | themes-4765bc9852811b6ea42faf0310d4f5fb06deda80.tar.gz themes-4765bc9852811b6ea42faf0310d4f5fb06deda80.tar.bz2 themes-4765bc9852811b6ea42faf0310d4f5fb06deda80.zip | |
define CONFIG vars if not already defined
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/bit_setup_inc.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/includes/bit_setup_inc.php b/includes/bit_setup_inc.php index b11c9de..c0c1d54 100644 --- a/includes/bit_setup_inc.php +++ b/includes/bit_setup_inc.php @@ -45,3 +45,36 @@ if( $gBitSystem->isFeatureActive( 'site_fancy_zoom' )) { $gBitSystem->mOnload[] = 'BitBase.setupShowHide();'; +$styleString = $gBitSystem->getConfig('style'); + +if( !defined( 'THEMES_PATH' ) ) { + define( 'THEMES_PATH', CONFIG_PKG_PATH.'themes/' ); +} +if( !defined( 'THEMES_URL' ) ) { + define( 'THEMES_URL', CONFIG_PKG_URL.'themes/' ); +} +if( !defined( 'THEMES_URI' ) ) { + define( 'THEMES_URI', CONFIG_PKG_URI.'themes/' ); +} +if( !defined( 'ICONSETS_PATH' ) ) { + define( 'ICONSETS_PATH', CONFIG_PKG_PATH.'iconsets/' ); +} +if( !defined( 'ICONSETS_URL' ) ) { + define( 'ICONSETS_URL', CONFIG_PKG_URL.'iconsets/' ); +} +if( !defined( 'ICONSETS_URI' ) ) { + define( 'ICONSETS_URI', CONFIG_PKG_URI.'iconsets/' ); +} + +if( !defined( 'CONFIG_THEME_PATH' ) ) { + define( 'CONFIG_THEME_PATH', THEMES_PATH.$styleString.'/' ); +} +if( !defined( 'CONFIG_THEME_URL' ) ) { + define( 'CONFIG_THEME_URL', THEMES_URL.$styleString.'/' ); +} +if( !defined( 'CONFIG_IMAGE_PATH' ) ) { + define( 'CONFIG_IMAGE_PATH', THEMES_PATH.$styleString.'/images/' ); +} +if( !defined( 'CONFIG_IMAGE_URL' ) ) { + define( 'CONFIG_IMAGE_URL', THEMES_URL.$styleString.'/images/' ); +} |
