-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
96 lines (86 loc) · 4.15 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
if (!defined('FLUX_ROOT')) exit;
include $this->themePath('config/hurtsky_settings.php', true);
$adminMenuItems = $this->getAdminMenuItems();
$menuItems = $this->getMenuItems();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="hurtsky">
<?php if (isset($metaRefresh)) : ?>
<meta http-equiv="refresh" content="<?php echo $metaRefresh['seconds'] ?>; URL=<?php echo $metaRefresh['location'] ?>" />
<?php endif ?>
<title>
<?php
echo Flux::config('SiteTitle');
if (isset($title)) echo ": $title"
?>
</title>
<link rel="shortcut icon" href="<?php echo $this->themePath('favicon.ico') ?>" />
<link rel="stylesheet" href="<?php echo $this->themePath('css/flux.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
<link rel="stylesheet" href="<?php echo $this->themePath('css/flux/unitip.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
<link rel="stylesheet" href="<?php echo $this->themePath('css/bulma.min.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
<link rel="stylesheet" href="<?php echo $this->themePath('css/extensions.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
<link rel="stylesheet" href="<?php echo $this->themePath('css/jquery-ui.min.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
<link rel="stylesheet" href="<?php echo $this->themePath('css/fontawesome-5-11-2/all.css') ?>" type="text/css" media="screen" title="" charset="utf-8" />
<link rel="stylesheet" href="<?php echo $this->themePath('css/main.css') ?>?v<?php echo time(); ?>" type="text/css" media="screen" title="" charset="utf-8" />
<link href="https://fonts.googleapis.com/css?family=Baloo+Tammudu" rel="stylesheet">
<?php if (Flux::config('EnableReCaptcha')) : ?>
<script src='https://www.google.com/recaptcha/api.js' async defer></script>
<script>
function onSubmit(token) {
document.getElementById("login-form").submit();
}
</script>
<?php endif ?>
</head>
<body>
<section class="hero is-fullheight is-black is-bold">
<div class="hero-head">
<?php include $this->themePath('main/navbar.php', true) ?>
</div>
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column">
<nav class="level is-transparent">
<div class="level-item ">
<img src="<?php echo $this->themePath('img/ragnarok.png', true) ?>" alt="Logo">
</div>
<nav>
</div>
</div>
<div class="columns is-multiline has-background-custom2">
<?php if (!in_array($params->get('action'), array('account', 'login'))) : ?>
<div class="column is-12">
<div class="columns">
<div id="stats" class="column has-background-custom1 box">
<?php include $this->themePath('main/status.php', true) ?>
</div>
</div>
</div>
<?php endif ?>
<div class="column is-12">
<div class="box is-semi-transparent">
<?php if (Flux::config('DebugMode') && @gethostbyname(Flux::config('ServerAddress')) == '127.0.0.1') : ?>
<div id="serverNoti" class="notification is-danger">
<button id="deleteServerNoti" class="delete"></button>
Please change your ServerAddress directive in your application config to your server's real address (e.g., myserver.com).
</div>
<?php endif ?>
<!-- Messages -->
<?php if ($message = $session->getMessage()) : ?>
<div id="serverSuccess" class="notification is-success">
<button id="deleteServerSuccess" class="delete"></button>
<?php echo htmlspecialchars($message) ?>
</div>
<?php endif ?>
<!-- Sub menu -->
<?php include $this->themePath('main/submenu.php', true) ?>
<!-- Page menu -->
<?php include $this->themePath('main/pagemenu.php', true) ?>