diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php
index 04cabf208..a17767c11 100644
--- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php
+++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php
@@ -69,17 +69,6 @@ if (count($pages)) {
}
if (count($running)) file_put_contents($nchan_pid,implode("\n",$running)."\n"); else @unlink($nchan_pid);
}
-
-function includePageStylesheets($page) {
- global $docroot, $theme;
- $css = "/{$page['root']}/sheets/{$page['name']}";
- $css_stock = "$css.css";
- $css_theme = "$css-$theme.css"; // @todo add syslog for deprecation notice
- if (is_file($docroot.$css_stock)) echo '',"\n";
- if (is_file($docroot.$css_theme)) echo '',"\n";
-}
-
-function annotate($text) {echo "\n\n";}
?>
lang="=strtok($locale,'_')?:'en'?>" class="= $themeHelper->getThemeHtmlClass() ?>">
diff --git a/emhttp/plugins/dynamix/include/PageBuilder.php b/emhttp/plugins/dynamix/include/PageBuilder.php
index d084b0ca3..8218e4578 100644
--- a/emhttp/plugins/dynamix/include/PageBuilder.php
+++ b/emhttp/plugins/dynamix/include/PageBuilder.php
@@ -127,6 +127,19 @@ function generate_sidebar_icon_css($tasks, $buttons) {
return $css;
}
+function includePageStylesheets($page) {
+ global $docroot, $theme;
+ $css = "/{$page['root']}/sheets/{$page['name']}";
+ $css_stock = "$css.css";
+ $css_theme = "$css-$theme.css"; // @todo add syslog for deprecation notice
+ if (is_file($docroot.$css_stock)) echo '',"\n";
+ if (is_file($docroot.$css_theme)) echo '',"\n";
+}
+
+function annotate($text) {
+ echo "\n\n";
+}
+
// hack to embed function output in a quoted string (e.g., in a page Title)
// see: http://stackoverflow.com/questions/6219972/why-embedding-functions-inside-of-strings-is-different-than-variables
function _func($x) {return $x;}