@@ -128,25 +128,45 @@ function head()
128
128
echo "\n<!-- Loading includes/javascript.php from header.php -->\n";
129
129
include_once(NUKE_INCLUDE_DIR.'javascript.php');
130
130
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
+
131
151
global $titanium_browser;
132
152
$titanium_browser = new Browser();
133
153
134
154
135
155
if (file_exists(NUKE_THEMES_DIR.$ThemeSel.'/nuke83x.php')) {
136
-
137
-
156
+ // dont do shit or maybe later do some shit!
138
157
} else {
139
158
# FlyKit Mod v1.0.0 START
140
159
# 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";
142
161
addPHPCSSToHead(NUKE_BASE_DIR.'includes/css/cms_css.php','file');
143
162
# FlyKit Mod v1.0.0 END
144
163
}
145
164
146
165
/**
147
166
* Include current Theme Javascript Functions
148
167
* for Theme Copyright and Bootstrap loading!
149
- *
168
+ *
169
+ * @date 04/16/2023 1:23 AM
150
170
* @author Ernest Allen Bufffington
151
171
* @version 1.0
152
172
* @license GPL-3.0
0 commit comments