From d8771f1330751de6c75437f149469d6bc8495bf7 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 4 Oct 2018 19:28:33 +0800 Subject: [PATCH] Pman.php --- Pman.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Pman.php b/Pman.php index e831fa2..7a9aa1d 100644 --- a/Pman.php +++ b/Pman.php @@ -704,7 +704,16 @@ class Pman extends HTML_FlexyFramework_Page $is_bootstrap = in_array('BAdmin', $mods); foreach($mods as $mod) { - // add the css file.. + + $cls = 'Pman_' . $mod . '_Pman'; + + if (file_exists($this->rootDir . '/'.str_replace('_','/', $cls). '.php')) { + require_once str_replace('_','/', $cls). '.php'; + $c = new $cls(); + if (method_exists($c,'outputJavascriptIncludes')) { + $c->outputOverlayStringJavascript(); + } + } if ($is_bootstrap) { if (!file_exists($this->rootDir."/Pman/$mod/is_bootstrap")) { -- 2.39.2