Pman.Dialog.BAdminPasswordReset.bjs
[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         $css_path = empty($ff->Pman['css_path']) ?
25             "{$pg->rootURL}/roojs1/css-bootstrap" :
26             ($pg->rootURL.'/'.$ff->Pman['css_path']);
27         
28         $pg->assetArrayToHtml(array(
29             "{$pg->rootURL}/roojs1/css-bootstrap/font-awesome.css",
30             "{$css_path}/bootstrap.min.css",
31             "{$css_path}/roojs-bootstrap.css"
32             
33         ), 'css');
34          
35     }
36    
37     
38     function applyCSSIncludes($pg)
39     {
40         
41         if (isset($ff->Pman['css_path'])) {
42             return; // temporary until we migrate the live site
43         }
44         $pg->css_includes[__CLASS__] =  array(
45             "{$pg->rootURL}/roojs1/css-bootstrap/font-awesome.css",
46             "{$pg->rootURL}/bootstrap.min.css",
47             "{$pg->rootURL}/roojs-bootstrap.css"
48         );
49         
50     }
51     
52     
53 }