diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-18 14:14:53 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-18 14:48:54 -0400 |
commit | 1f9024763d9224c4cd9a181bac27e6b9f12ad672 (patch) | |
tree | 00f827470dad9aa2692483acbdef9502c1a464d3 /src/web/_views/header.php | |
parent | fix rss (diff) | |
download | website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.gz website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.tar.bz2 website-1f9024763d9224c4cd9a181bac27e6b9f12ad672.zip |
refactor
Diffstat (limited to 'src/web/_views/header.php')
-rw-r--r-- | src/web/_views/header.php | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/web/_views/header.php b/src/web/_views/header.php index b037038..07c26b8 100644 --- a/src/web/_views/header.php +++ b/src/web/_views/header.php @@ -1,16 +1,14 @@ <?php /* Copyright (c) 2024 Freya Murphy */ ?> <?php $this->view('head', $data); - echo $this->main->link_css('css/main.css'); - $legacy = $this->main->get_ie_version() <= 7; + echo $this->link_css('css/main.css'); ?> </head> <body> -<?php if($legacy): ?> -<center> -<?php else: ?> +<!--[if lt IE 8 ]> + <center> +<![endif]--> <div class="center"> -<?php endif; ?> <div id="header" role="banner" aria-label="banner"> <?=image('img/headerLogo', 'alt_website_logo', size: '200')?> <div class="content"> @@ -20,24 +18,20 @@ <div role="navigation"> <ul id="nav"> <li><?=ilang('action_home', - href: $this->main->get_url('home'), + href: $this->get_url('home'), container: 'h2' )?></li> <li><?=ilang('action_projects', - href: $this->main->get_url('projects'), + href: $this->get_url('projects'), container: 'h2' )?></li> <li><?=ilang('action_blog', - href: $this->main->get_url('blog'), + href: $this->get_url('blog'), container: 'h2' )?></li> </ul> </div> </div> </div> -<?php if($legacy): ?> - <div id="main" class="legacy" role="main"> -<?php else: ?> <div id="main" role="main" aria-label="main"> -<?php endif; ?> <div id="container"> |