diff options
author | Freya Murphy <freya@freyacat.org> | 2024-05-24 09:05:42 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-05-24 09:05:42 -0400 |
commit | c5f39ea2cd7cf02246705ea8872d3b350526165c (patch) | |
tree | 2694f9fdc5d83b529a01f2997c1d89c271c86592 /src/web/_views/header.php | |
download | website-c5f39ea2cd7cf02246705ea8872d3b350526165c.tar.gz website-c5f39ea2cd7cf02246705ea8872d3b350526165c.tar.bz2 website-c5f39ea2cd7cf02246705ea8872d3b350526165c.zip |
initial
Diffstat (limited to 'src/web/_views/header.php')
-rw-r--r-- | src/web/_views/header.php | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/web/_views/header.php b/src/web/_views/header.php new file mode 100644 index 0000000..b037038 --- /dev/null +++ b/src/web/_views/header.php @@ -0,0 +1,43 @@ +<?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; +?> +</head> +<body> +<?php if($legacy): ?> +<center> +<?php else: ?> +<div class="center"> +<?php endif; ?> + <div id="header" role="banner" aria-label="banner"> + <?=image('img/headerLogo', 'alt_website_logo', size: '200')?> + <div class="content"> + <h1 class="logo-text"> + <?=lang('first_name')?> + </h1> + <div role="navigation"> + <ul id="nav"> + <li><?=ilang('action_home', + href: $this->main->get_url('home'), + container: 'h2' + )?></li> + <li><?=ilang('action_projects', + href: $this->main->get_url('projects'), + container: 'h2' + )?></li> + <li><?=ilang('action_blog', + href: $this->main->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"> |