PHP8
[Pman.BAdmin] / Pman.php
1 <?php
2 /**
3  * This is for the standard admin panel.
4  *
5  * if submodules modify this... then in theory it should not output anything?
6  *  
7  * how this should work:
8  *
9  * Top Pman.php should call
10  *    
11  *    applyCSSIncludes($pg)
12  *    then it mody $pg->css_includes[__CLASS__] with any new paths added.
13  *
14  *    that way later modules can remove css from the path, or replace it compeletly..
15  *
16  */
17 class Pman_BAdmin_Pman {
18     
19     
20     function outputCSSIncludes($pg)
21     {
22         $ff = HTML_FlexyFramework2::get();
23         return ''; // ?? what here?
24         
25     }
26    
27     
28     function applyCSSIncludes($pg)
29     {
30         
31         if (isset($ff->Pman['css_path'])) {
32             return; // temporary until we migrate the live site
33         }
34         /*
35         $pg->css_includes[__CLASS__] =  array(
36             "{$pg->rootURL}/roojs1/css-bootstrap/font-awesome.css",
37             "{$pg->rootURL}/roojs1/css-bootstrap/bootstrap.min.css",
38             "{$pg->rootURL}/roojs1/css-bootstrap/roojs-bootstrap.css"
39         );
40         
41         // BS4
42          
43         $pg->css_includes[__CLASS__] =  array(
44             "{$pg->rootURL}/roojs1/fonts/font-awesome.css",
45             "{$pg->rootURL}/roojs1/css-bootstrap4/bootstrap.min.css",
46             "{$pg->rootURL}/roojs1/css-bootstrap4/roojs-bootstrap.css"
47         );/* */
48         // let's try the new look?
49          
50         $pg->css_includes[__CLASS__] =  array(
51             "{$pg->rootURL}/roojs1/fonts/nunito.css",
52             "{$pg->rootURL}/roojs1/fonts/font-awesome.css",
53             "{$pg->rootURL}/roojs1/css-bootstrap4/sb-admin-2.min.css",
54             "{$pg->rootURL}/roojs1/css-bootstrap4/roojs-bootstrap.css"
55         );
56         
57     }
58     
59     
60 }