This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathnavbar.php
110 lines (103 loc) · 9.61 KB
/
navbar.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
$nav_active_dropdown_dashboard = array('Most Active - Dashboard', 'Top Players - Dashboard', 'Recent Records - Dashboard', 'Maps - Dashboard', 'Home - Dashboard', 'Servers - Dashboard');
?>
<!-- Coded & Designed with ❤ by Kristián Partl. --->
<nav class="container navbar navbar-expand-lg navbar-light bg-light py-3 px-5 shadow-sm">
<div class="container">
<a class="navbar-brand" href="index.php">
<?php
if($settings_navbar_logo!='')
echo '<img src="./images/'.$settings_navbar_logo.'" height="40">';
else
echo $settings_navbar_title;
?>
</a>
<!-- If you have 2 sizes of logo for mobile version and normal use this bellow :) -->
<!--<a class="navbar-brand d-none d-md-block" href="https://surfcommunity.eu/"><img src="./images/logo_navbar.svg" height="40"></a>-->
<!--<a class="navbar-brand d-md-none" href="https://surfcommunity.eu/"><img src="./images/logo_navbar_1.svg" height="40"></a>-->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#SurfStatsNavbar" aria-controls="SurfStatsNavbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="SurfStatsNavbar">
<ul class="navbar-nav ms-auto">
<?php if($settings_custom_link_name!=''): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $settings_custom_link_adress;?>"><?php echo $settings_custom_link_name;?></a>
</li>
<?php endif; ?>
<?php if($settings_custom_link_2_name!=''): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $settings_custom_link_2_adress;?>"><?php echo $settings_custom_link_2_name;?></a>
</li>
<?php endif; ?>
<?php if($settings_custom_link_3_name!=''): ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo $settings_custom_link_3_adress;?>"><?php echo $settings_custom_link_3_name;?></a>
</li>
<?php endif; ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle <?php if(in_array($page_name, $nav_active_dropdown_dashboard)) echo 'active'; ?>" href="#" id="Dashboard-Nav-Dropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-tachometer-alt"></i> <?php echo NAVBAR_DASHBOARD;?>
</a>
<div class="dropdown-menu dropdown-menu-right shadow-sm" aria-labelledby="Dashboard-Na v-Dropdown">
<a class="dropdown-item <?php echo nav_active('Home - Dashboard'); ?>" href="index.php"><i class="fas fa-home"></i> <?php echo NAVBAR_HOME;?></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item <?php echo nav_active('Top Players - Dashboard'); ?>" href="dashboard-players.php"><i class="fas fa-users"></i> <?php echo NAVBAR_TOP_PLAYERS;?></a>
<a class="dropdown-item <?php echo nav_active('Maps - Dashboard'); ?>" href="dashboard-maps.php"><i class="fas fa-map"></i> <?php echo NAVBAR_MAPS;?></a>
<a class="dropdown-item <?php echo nav_active('Most Active - Dashboard'); ?>" href="dashboard-mostactive.php"><i class="fas fa-user-clock"></i> <?php echo NAVBAR_MOST_ACTIVE;?></a>
<a class="dropdown-item <?php echo nav_active('Recent Records - Dashboard'); ?>" href="dashboard-recent.php"><i class="fas fa-stopwatch"></i> <?php echo NAVBAR_RECENT_RECORDS;?></a>
</div>
</li>
<?php if($settings_language_enable): ?>
<div class="dropdown">
<a class="nav-link dropdown-toggle active bg-white border rounded py-0 my-2 ms-2" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<img src="./images/flags/<?php echo LanguageFlag();?>.svg" width="18,5" class="border align-middle" alt="<?php echo LanguageFlag();?> Flag"> <?php echo $_SESSION['language'];?>
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item <?php echo LanguageActive('Czech'); ?>" href="<?php echo LanguageURL('Czech');?>"><img src="./images/flags/cz.svg" width="20" class="border align-middle" alt="CZ Flag"> Czech</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Danish'); ?>" href="<?php echo LanguageURL('Danish');?>"><img src="./images/flags/dk.svg" width="20" class="border align-middle" alt="DK Flag"> Danish</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('English'); ?>" href="<?php echo LanguageURL('English');?>"><img src="./images/flags/gb.svg" width="20" class="border align-middle" alt="GB Flag"> English</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('French'); ?>" href="<?php echo LanguageURL('French');?>"><img src="./images/flags/fr.svg" width="20" class="border align-middle" alt="FR Flag"> French</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('German'); ?>" href="<?php echo LanguageURL('German');?>"><img src="./images/flags/de.svg" width="20" class="border align-middle" alt="DE Flag"> German</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Hindi'); ?>" href="<?php echo LanguageURL('Hindi');?>"><img src="./images/flags/in.svg" width="20" class="border align-middle" alt="IN Flag"> Hindi</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Hungarian'); ?>" href="<?php echo LanguageURL('Hungarian');?>"><img src="./images/flags/hu.svg" width="20" class="border align-middle" alt="HU Flag"> Hungarian</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Korean'); ?>" href="<?php echo LanguageURL('Korean');?>"><img src="./images/flags/kr.svg" width="20" class="border align-middle" alt="KR Flag"> Korean</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Portuguese'); ?>" href="<?php echo LanguageURL('Portuguese');?>"><img src="./images/flags/pt.svg" width="20" class="border align-middle" alt="PT Flag"> Portuguese</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Slovak'); ?>" href="<?php echo LanguageURL('Slovak');?>"><img src="./images/flags/sk.svg" width="20" class="border align-middle" alt="SK Flag"> Slovak</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Spanish'); ?>" href="<?php echo LanguageURL('Spanish');?>"><img src="./images/flags/es.svg" width="20" class="border align-middle" alt="ES Flag"> Spanish</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Swedish'); ?>" href="<?php echo LanguageURL('Swedish');?>"><img src="./images/flags/se.svg" width="20" class="border align-middle" alt="SE Flag"> Swedish</a></li>
<li><a class="dropdown-item <?php echo LanguageActive('Turkish'); ?>" href="<?php echo LanguageURL('Turkish');?>"><img src="./images/flags/tr.svg" width="20" class="border align-middle" alt="TR Flag"> Turkish</a></li>
</ul>
</div>
<?php endif;?>
<li class="nav-item">
<a class="nav-link active bg-white border rounded py-0 my-2 ms-2" href="#" data-bs-toggle="modal" data-bs-target="#SearchPlayers"><i class="fas fa-search"></i> <?php echo NAVBAR_SEARCH_PLAYER;?></a>
</li>
</ul>
</div>
</div>
</nav>
<div class=""></div>
<div class="container bg-white shadow-lg">
<div id="page-content">
<!-- Search Modal -->
<div class="modal shadow fade" id="SearchPlayers" tabindex="-1" aria-labelledby="SearchPlayersLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header shadow-sm">
<h5 class="modal-title" id="SearchPlayersLabel"><i class="fas fa-search"></i> <?php echo SEARCH_SEARCH_PLAYERS;?></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form class="">
<label for="players_search"></label><input class="form-control form-control-lg shadow-sm" name="players_search" id="players_search" type="search" placeholder="<?php echo SEARCH_INPUT;?>">
</form>
<div class="" id="players_search_result"></div>
</div>
<div class="modal-footer shadow-sm py-2">
<button type="button" class="btn btn-outline-secondary shadow-sm" data-bs-dismiss="modal"><i class="far fa-times-circle"></i> <?php echo SEARCH_CLOSE;?></button>
</div>
</div>
</div>
</div>
<!-- Coded & Designed with ❤ by Kristián Partl. --->