Pman.php
authorEdward <edward@roojs.com>
Thu, 4 Oct 2018 11:28:33 +0000 (19:28 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Oct 2018 11:28:33 +0000 (19:28 +0800)
Pman.php

index e831fa2..7a9aa1d 100644 (file)
--- 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")) {