Partial Fix #5619 - COBA2.5: Separating the existing clients from web.coba to web...
[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         
24         /*
25          not sure if we can delete this yet..
26          
27         $css_path = empty($ff->Pman['css_path']) ?
28             "{$pg->rootURL}/roojs1/css-bootstrap" :
29             ($pg->rootURL.'/'.$ff->Pman['css_path']);
30         
31         $pg->assetArrayToHtml(array(
32             "{$pg->rootURL}/roojs1/css-bootstrap/font-awesome.css",
33             "{$css_path}/bootstrap.min.css",
34             "{$css_path}/roojs-bootstrap.css"
35             
36         ), 'css');
37         */
38     }
39    
40     
41     function applyCSSIncludes($pg)
42     {
43         
44         if (isset($ff->Pman['css_path'])) {
45             return; // temporary until we migrate the live site
46         }
47         $pg->css_includes[__CLASS__] =  array(
48             "{$pg->rootURL}/roojs1/css-bootstrap/font-awesome.css",
49             "{$pg->rootURL}/bootstrap.min.css",
50             "{$pg->rootURL}/roojs-bootstrap.css"
51         );
52         
53     }
54     
55     
56 }