Skip to content

Commit af4ee5e

Browse files
Added Raven Header addon loader - 04/16/2023 3:21 AM Ernest Allen Buffington
1 parent 81feffb commit af4ee5e

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

header.php

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,25 +128,45 @@ function head()
128128
echo "\n<!-- Loading includes/javascript.php from header.php -->\n";
129129
include_once(NUKE_INCLUDE_DIR.'javascript.php');
130130

131+
/**
132+
* Include Addons from Header and Body
133+
* used for for blocks and modules!
134+
* @Adopted from RavenCMS v2.5.2
135+
* @www http://www.ravenphpscripts.com
136+
* @author Raven
137+
* @version 1.0
138+
* @license GPL-3.0
139+
*/
140+
$addons = readDIRtoArray(NUKE_INCLUDE_DIR . 'addons', '/^head\-(.+)\.php/');
141+
foreach ($addons as $addon) {
142+
echo "\n<!-- Loading Header Addon File From includes/addons/".$addon." from header.php -->\n";
143+
include_once NUKE_INCLUDE_DIR . 'addons/'.$addon;
144+
}
145+
$addons = readDIRtoArray(NUKE_INCLUDE_DIR . 'addons', '/^body\-(.+)\.php/');
146+
foreach ($addons as $addon) {
147+
echo "\n<!-- Loading Body Addon File From includes/addons/".$addon." from header.php -->\n";
148+
include_once NUKE_INCLUDE_DIR . 'addons/'.$addon;
149+
}
150+
131151
global $titanium_browser;
132152
$titanium_browser = new Browser();
133153

134154

135155
if (file_exists(NUKE_THEMES_DIR.$ThemeSel.'/nuke83x.php')) {
136-
137-
156+
// dont do shit or maybe later do some shit!
138157
} else {
139158
# FlyKit Mod v1.0.0 START
140159
# used to add rounded corners to user avatars!
141-
echo "<!-- Loadiing includes/css/cms_css.php from header.php -->\n";
160+
echo "\n<!-- Loadiing includes/css/cms_css.php from header.php -->\n";
142161
addPHPCSSToHead(NUKE_BASE_DIR.'includes/css/cms_css.php','file');
143162
# FlyKit Mod v1.0.0 END
144163
}
145164

146165
/**
147166
* Include current Theme Javascript Functions
148167
* for Theme Copyright and Bootstrap loading!
149-
*
168+
*
169+
* @date 04/16/2023 1:23 AM
150170
* @author Ernest Allen Bufffington
151171
* @version 1.0
152172
* @license GPL-3.0

0 commit comments

Comments
 (0)