forked from MatmaRex/patchdemo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
44 lines (42 loc) · 1.82 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
OOUI\Theme::setSingleton( new OOUI\WikimediaUITheme() );
echo '<!DOCTYPE html>
<html lang="en" class="client-nojs">
<head>
<meta charset="utf-8">
<title>Patch demo</title>
<script>document.documentElement.className = "client-js";</script>
<link rel="stylesheet" href="' . $basePath . '/node_modules/oojs-ui/dist/oojs-ui-wikimediaui.min.css">
<link rel="stylesheet" href="' . $basePath . '/css/common.css">
<script src="' . $basePath . '/node_modules/jquery/dist/jquery.min.js"></script>
<script src="' . $basePath . '/node_modules/oojs/dist/oojs.min.js"></script>
<script src="' . $basePath . '/node_modules/oojs-ui/dist/oojs-ui.min.js"></script>
<script src="' . $basePath . '/node_modules/oojs-ui/dist/oojs-ui-wikimediaui.min.js"></script>
<link rel="icon" type="image/png" sizes="32x32" href="' . $basePath . '/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="' . $basePath . '/images/favicon-16x16.png">
<link rel="mask-icon" href="' . $basePath . '/images/safari-pinned-tab.svg" color="#006699">
<link rel="shortcut icon" href="' . $basePath . '/images/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<div class="headerInner">
<h1><a class="logo" href="' . $basePath . '/."><span>Patch demo</span></a></h1>
<div class="sourceAndUser">';
if ( $user ) {
echo "<div class='user'>Logged in as <b>{$user->username}</b> [<a href='?logout'>Log out</a>]</div>";
}
echo '
<div class="source">
<a href="https://github.com/MatmaRex/patchdemo">Source code</a>
•
<a href="https://github.com/MatmaRex/patchdemo/issues">Issues</a>' .
( can_admin() ?
' • <a href="editcounts.php">Edit counts</a>' :
''
) .
'</div>
</div>
</div>
</header>
<main>';