PHP8
[Pman.BAdmin] / Pman.php
index 5558dad..d0b6e94 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -1,25 +1,58 @@
 <?php
-
-
-
+/**
+ * This is for the standard admin panel.
+ *
+ * if submodules modify this... then in theory it should not output anything?
+ *  
+ * how this should work:
+ *
+ * Top Pman.php should call
+ *    
+ *    applyCSSIncludes($pg)
+ *    then it mody $pg->css_includes[__CLASS__] with any new paths added.
+ *
+ *    that way later modules can remove css from the path, or replace it compeletly..
+ *
+ */
 class Pman_BAdmin_Pman {
     
     
     function outputCSSIncludes($pg)
     {
         $ff = HTML_FlexyFramework2::get();
+        return ''; // ?? what here?
         
+    }
+   
+    
+    function applyCSSIncludes($pg)
+    {
         
+        if (isset($ff->Pman['css_path'])) {
+            return; // temporary until we migrate the live site
+        }
+        /*
+        $pg->css_includes[__CLASS__] =  array(
+            "{$pg->rootURL}/roojs1/css-bootstrap/font-awesome.css",
+            "{$pg->rootURL}/roojs1/css-bootstrap/bootstrap.min.css",
+            "{$pg->rootURL}/roojs1/css-bootstrap/roojs-bootstrap.css"
+        );
         
-        $css_path = empty($ff->Pman['css_path']) ?
-            "{$pg->rootURL}/roojs1/css-bootstrap/" :
-            {$pg->rootURL}.'/'.$ff->Pman['css_path'];
-        
-        $pg->assetArrayToHtml(array(
-            "{$css_path}/bootstrap.min.css",
-            "{$css_path}/roojs-bootstrap.css"
-            
-        ), 'css');
+        // BS4
+         
+        $pg->css_includes[__CLASS__] =  array(
+            "{$pg->rootURL}/roojs1/fonts/font-awesome.css",
+            "{$pg->rootURL}/roojs1/css-bootstrap4/bootstrap.min.css",
+            "{$pg->rootURL}/roojs1/css-bootstrap4/roojs-bootstrap.css"
+        );/* */
+        // let's try the new look?
+         
+        $pg->css_includes[__CLASS__] =  array(
+            "{$pg->rootURL}/roojs1/fonts/nunito.css",
+            "{$pg->rootURL}/roojs1/fonts/font-awesome.css",
+            "{$pg->rootURL}/roojs1/css-bootstrap4/sb-admin-2.min.css",
+            "{$pg->rootURL}/roojs1/css-bootstrap4/roojs-bootstrap.css"
+        );
         
     }