Pman.php
[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  *    fetchCSSIncludes($pg, &$array)
11  *    then it shoud return $array with any new paths added.
12  *
13  *    that way later modules can remove css from the path, or replace it compeletly..
14  *
15  */
16 class Pman_BAdmin_Pman {
17     
18     function outputCSSIncludes($pg)
19     {
20         $ff = HTML_FlexyFramework2::get();
21         
22         $css_path = empty($ff->Pman['css_path']) ?
23             "{$pg->rootURL}/roojs1/css-bootstrap" :
24             ($pg->rootURL.'/'.$ff->Pman['css_path']);
25         
26         $pg->assetArrayToHtml(array(
27             "{$pg->rootURL}/roojs1/css-bootstrap/font-awesome.css",
28             "{$css_path}/bootstrap.min.css",
29             "{$css_path}/roojs-bootstrap.css"
30             
31         ), 'css');
32         
33     }
34     
35     function applyCSSIncludes($pg)
36     {
37         $pg->css_includes[] = 'hello.css';
38         
39     }
40     
41     
42 }