diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/web/_views/head.php | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/src/web/_views/head.php b/src/web/_views/head.php index f184953..ead45d6 100644 --- a/src/web/_views/head.php +++ b/src/web/_views/head.php @@ -21,17 +21,27 @@ <link rel="icon" type="image/png" sizes="512x512" href="<?=$this->get_url("public/icons/logo512.png", TRUE)?>"> <link rel="icon" type="image/png" sizes="640x640" href="<?=$this->get_url("public/icons/logo640.png", TRUE)?>"> <link rel="manifest" href="/manifest.json"> - <?=$this->link_css('css/main.css');?> - <?=ie($this->embed_css('css/ie/ie.css'))?> - <?=ie_ua($this->embed_css('css/ie/ie4.css'), 4)?> - <!--[if (gt IE 5)&(lt IE 8) ]> - <?=$this->embed_css('css/ie/ie6.css')?> - <![endif]--> - <?php foreach($css as $file) - echo $this->embed_css($file); + <?php + /* Main CSS */ + if (CONTEXT['app'] != 'bucket') + echo $this->link_css('css/main.css'); + + /* IE 4-7 Styles */ + echo ie($this->embed_css('css/ie/ie.css')); + /* IE 4 Styles */ + echo ie_ua($this->embed_css('css/ie/ie4.css'), 4); + /* IE 6-7 Styles */ + echo '<!--[if (gt IE 5)&(lt IE 8) ]>'; + echo $this->embed_css('css/ie/ie6.css'); + echo '<![endif]-->'; + + /* CSS Files */ + foreach($css as $file) + echo $this->embed_css($file); + + /* JS Files */ + echo ie('<iframe width="0" height="0">'); + foreach($js as $file) + echo $this->link_js($file); + echo ie('</iframe>'); ?> - <?=ie('<iframe width="0" height="0">')?> - <?php foreach($js as $file) - echo $this->link_js($file); - ?> - <?=ie('</iframe>')?> |