-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.inc.php
35 lines (28 loc) · 1.04 KB
/
header.inc.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
<?php
use src\php\classes\User\User;
include_once("bootstrap.php");
$premium = User::checkPremium();
?>
<!DOCTYPE html>
<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.0">
<link rel="stylesheet" href="css/header.css">
<link rel="shortcut icon" type="image/jpg" href="assets/favicon.svg"/>
</head>
<body>
<div class="container_header">
<a href="index.php"> <img src="assets/favicon.svg" alt="logo" class="favicon"></a>
<?php $check = array_column($premium, 'premium');
if ($check[0] == 'ja') {
echo '<p class="btn_premium" style="opacity:0;"> premium</p>';
} else {
echo '<a href="premium.php" class="btn_premium">go premium</a>';
} ?>
<a href="#"><img src="assets/notification.svg" alt="notification icon" class="icon cart_icon"></a>
<a href="appsettings.php"><img src="assets/settings_icon.svg" alt="cart icon" class="icon cart_icon settings_icon"></a>
</div>
</body>
</html>