diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-27 15:10:18 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-27 15:10:18 -0400 |
commit | 36c2de429b5f0b1102c2de51b69d63b77cd01aef (patch) | |
tree | b62ac8910ea38ef544c915eae63a71abefdeb7ef | |
parent | ie4 (diff) | |
download | website-36c2de429b5f0b1102c2de51b69d63b77cd01aef.tar.gz website-36c2de429b5f0b1102c2de51b69d63b77cd01aef.tar.bz2 website-36c2de429b5f0b1102c2de51b69d63b77cd01aef.zip |
fix css
-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>')?> |