jahresbericht2016/views/elements/en/header.php

112 lines
4.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// Page Title Controller
$title = ['Annual Report 2016'];
if (isset($report)) {
$title[] = $report['title'][$lang];
} elseif ($path === '/report') {
$title[] = 'Focal points';
} elseif ($path === '/report/monuments') {
$title[] = 'Wikipedia Loves Monuments';
} elseif ($path === '/review') {
$title[] = 'Year in Review 2016';
} elseif ($path === '/finance') {
$title[] = 'Finances';
} elseif ($path === '/finance/assn') {
$title[] = 'Finances WMDE e.V.';
} elseif ($path === '/finance/fund') {
$title[] = 'Finances Fördergesellschaft';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php echo implode(' ', array_reverse($title)) ?></title>
<?php if ($isCanonical): ?>
<?php
// each language page should identify different language versions, including itself
// no need to list hreflang on non-canonical - in this case, unprefixed - urls
// see https://support.google.com/webmasters/answer/189077
?>
<link rel="alternate" hreflang="de" href="<?= trim(trim(DOMAIN, '/') . '/de/' . trim($path, '/'), '/') ?>">
<link rel="alternate" hreflang="en" href="<?= trim(trim(DOMAIN, '/') . '/en/' . trim($path, '/'), '/') ?>">
<?php endif ?>
<link rel="icon" href="/assets/ico/app.png?v=1+848a751">
<link rel="stylesheet" href="/assets/css/normalize.css?v=1+848a751">
<link rel="stylesheet" href="/assets/css/base.css?v=1+848a751">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<script src="/assets/js/require.js?v=1+848a751"></script>
<script src="/assets/js/base.js?v=1+848a751"></script>
<script src="/assets/js/views/layouts/default.js?v=1+848a751"></script>
</head>
<body>
<?php if ($hasBlackHeader): ?>
<div class="cp real-logo-black real-logo">
<?php else: ?>
<div class="cp real-logo-white real-logo">
<?php endif ?>
<a class="logo main-header__logo image-replace logo--s" href="<?= $url('/', $lang) ?>">Wikimedia Deutschland</a>
</div>
<div class="mn-container cp">
<div class="mn-close"></div>
<ul class="mn__list">
<li><a class="mn__link" href="<?= $url('review', $lang) ?>">Year in Review 2016</a></li>
<li><a class="mn__link" href="<?= $url('report', $lang) ?>">Focal points</a></li>
<li><a class="mn__link" href="<?= $url('finance', $lang) ?>">Finances</a></li>
</ul>
<div class="mn__mini-nav">
<a class="pdf-download t--epsilon" href="/assets/doc/wmde-report2016_en.pdf" target="new">PDF Download</a>
<a class="lang-switch t--epsilon" href="<?= $translateFrom($path, $lang) ?>">Deutsch</a>
</div>
</div>
<header
<?php if ($hasBlackHeader): ?>
class="main-header main-header--black"
<?php else: ?>
class="main-header main-header--white"
<?php endif ?>
>
<div class="cp">
<div class="limit--l clearfix">
<a class="logo main-header__logo image-replace logo--l" href="<?= $url('/', $lang) ?>">Wikimedia Deutschland</a>
<nav class="nav main-header__nav">
<ul class="nav__list">
<?php if ($path === '/review'): ?>
<li><a class="nav__link nav__active--rev" href="<?= $url('review', $lang) ?>">Year in Review 2016</a></li>
<?php else: ?>
<li><a class="nav__link" href="<?= $url('review', $lang) ?>">Year in Review 2016</a></li>
<?php endif; if (preg_match('#^/report/.*$#', $path)): ?>
<li><a class="nav__link nav__active--rep-sub" href="<?= $url('report', $lang) ?>">Focal points</a></li>
<?php elseif ($path === '/report'): ?>
<li><a class="nav__link nav__active--rep" href="<?= $url('report', $lang) ?>">Focal points</a></li>
<?php else: ?>
<li><a class="nav__link" href="<?= $url('report', $lang) ?>">Focal points</a></li>
<?php endif; if ($path === '/finance' || $path === '/finance/assn'): ?>
<li><a class="nav__link nav__active--fin-lo" href="<?= $url('finance', $lang) ?>">Finances</a></li>
<?php elseif ($path === '/finance/fund'): ?>
<li><a class="nav__link nav__active--fin-hi" href="<?= $url('finance', $lang) ?>">Finances</a></li>
<?php else: ?>
<li><a class="nav__link" href="<?= $url('finance', $lang) ?>">Finances</a></li>
<?php endif ?>
</ul>
<a class="pdf-download t--epsilon" href="/assets/doc/wmde-report2016_en.pdf" target="new">PDF Download</a>
<a class="lang-switch t--epsilon" href="<?= $translateFrom($path, $lang) ?>">Deutsch</a>
</nav>
<nav class="nav mobile__nav">
<div class="nav__link mn-trigger">Menu</div>
</nav>
</div>
</div>
</header>