For Advice theme added top gold and improved adaptability

This commit is contained in:
Haeniken
2021-10-04 04:55:52 +03:00
parent 69d234984f
commit 7e143ea084
14 changed files with 37 additions and 7 deletions

View File

@@ -77,6 +77,7 @@ $language['class'] = '职业';
$language['level'] = '级别';
$language['top_players'] = '英雄榜';
$language['play_time'] = '游戏时间';
$language['gold'] = '金子';
$language['killers'] = '击杀榜';
$language['kills'] = '击杀';
$language['honor_points'] = '荣誉点数';

View File

@@ -77,6 +77,7 @@ $language['class'] = '職業';
$language['level'] = '等級';
$language['top_players'] = '英雄榜';
$language['play_time'] = '遊戲時間';
$language['gold'] = '金子';
$language['killers'] = '擊殺榜';
$language['kills'] = '擊殺';
$language['honor_points'] = '榮譽點數';

View File

@@ -77,6 +77,7 @@ $language['class'] = 'Class';
$language['level'] = 'Level';
$language['top_players'] = 'Top Players';
$language['play_time'] = 'Play Time';
$language['gold'] = 'Gold';
$language['killers'] = 'Killers';
$language['kills'] = 'Kills';
$language['honor_points'] = 'Honor Points';

View File

@@ -77,6 +77,7 @@ $language['class'] = 'Classe';
$language['level'] = 'Niveau';
$language['top_players'] = 'Top joueurs';
$language['play_time'] = 'Temps de jeu';
$language['gold'] = 'Or';
$language['killers'] = 'Tueurs';
$language['kills'] = 'Kills';
$language['honor_points'] = 'Points d\'honneurs';

View File

@@ -77,6 +77,7 @@ $language['class'] = 'Klasse';
$language['level'] = 'Level';
$language['top_players'] = 'Top Spieler';
$language['play_time'] = 'Spielzeit';
$language['gold'] = 'Gold';
$language['killers'] = 'Meiste PVP kills';
$language['kills'] = 'Kills';
$language['honor_points'] = 'Ehren Punkte';

View File

@@ -77,6 +77,7 @@ $language['class'] = 'Class';
$language['level'] = 'Level';
$language['top_players'] = 'Top Players';
$language['play_time'] = 'Play Time';
$language['gold'] = 'Oro';
$language['killers'] = 'Killers';
$language['kills'] = 'Kills';
$language['honor_points'] = 'Honor Points';

View File

@@ -77,6 +77,7 @@ $language['class'] = '클래스';
$language['level'] = '레벨';
$language['top_players'] = '상위 플레이어';
$language['play_time'] = '게임 플레이 시간';
$language['gold'] = '금';
$language['killers'] = '킬 현황';
$language['kills'] = '죽인 수';
$language['honor_points'] = '명예 포인트';

View File

@@ -77,6 +77,7 @@ $language['class'] = 'کلاس';
$language['level'] = 'سطح';
$language['top_players'] = 'بازیکنان برتر';
$language['play_time'] = 'مدت بازی';
$language['gold'] = 'طلا';
$language['killers'] = 'قاتلین';
$language['kills'] = 'کشته ها';
$language['honor_points'] = 'هانور پوینت';

View File

@@ -30,7 +30,7 @@ $language['server_status'] = 'Статус сервера';
$language['contact'] = 'Контакты';
$language['server_information'] = 'Информация о сервере';
$language['server_type'] = 'Тип сервера';
$language['server_uptime'] = 'Аптайм';
$language['server_uptime'] = 'Стабильность';
$language['xp_rate'] = 'Рейтинг опыта';
$language['drop_rate'] = 'Рейтинг дропа';
$language['start_level'] = 'Стартовый уровень';
@@ -77,6 +77,7 @@ $language['class'] = 'Класс';
$language['level'] = 'Уровень';
$language['top_players'] = 'Топ игроки';
$language['play_time'] = 'Время игры';
$language['gold'] = 'Золото';
$language['killers'] = 'Убийцы';
$language['kills'] = 'Победы';
$language['honor_points'] = 'Очки чести';

View File

@@ -77,6 +77,7 @@ $language['class'] = 'Clase';
$language['level'] = 'Nivel';
$language['top_players'] = 'Jugadores top';
$language['play_time'] = 'Tiempo de juego';
$language['gold'] = 'Oro';
$language['killers'] = 'Asesinos';
$language['kills'] = 'Matados';
$language['honor_points'] = 'Puntos de honor';

View File

@@ -77,6 +77,7 @@ $language['class'] = 'Klass';
$language['level'] = 'Level';
$language['top_players'] = 'Topp Spelare';
$language['play_time'] = 'Speltid';
$language['gold'] = 'Guld';
$language['killers'] = 'Killers';
$language['kills'] = 'Kills';
$language['honor_points'] = 'Honor Points';

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -38,7 +38,7 @@
</head>
<body>
<section id="hero"
style="background-image: url('<?php echo $antiXss->xss_clean(get_config("baseurl")); ?>/template/<?php echo $antiXss->xss_clean(get_config("template")); ?>/assets/img/wow-bg/<?php echo get_config('expansion') . '-' . rand(1, 6); ?>.jpg')">
style="background-image: url('<?php echo $antiXss->xss_clean(get_config("baseurl")); ?>/template/<?php echo $antiXss->xss_clean(get_config("template")); ?>/assets/img/wow-bg/<?php echo get_config('expansion') . '-' . rand(1, 6); ?>.jpg');background-size: cover;">
<div class="hero-container">
<a href="" class="hero-logo" data-aos="zoom-in"><img style="width: 250px; max-width: 80%;"
src="<?php echo $antiXss->xss_clean(get_config("baseurl")); ?>/template/<?php echo $antiXss->xss_clean(get_config("template")); ?>/assets/img/logo-1.png"

View File

@@ -324,7 +324,7 @@ require_once 'rules.php';
if (!is_array($data2show)) {
echo "<span style='color: #0d99e5;'>" . lang('online_players_msg2') . "</span>";
} else {
echo '<table class="table table-striped"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th><th scope="col">' . lang('play_time') . '</th></tr></thead><tbody>';
echo '<table class="table table-striped table-responsive-sm"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th><th scope="col">' . lang('play_time') . '</th></tr></thead><tbody>';
$m = 1;
foreach ($data2show as $one_char) {
if (empty($one_char['name'])) {
@@ -337,13 +337,32 @@ require_once 'rules.php';
echo "</div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Close</button></div></div></div></div>";
$i++;
$data2show = status::get_top_gold($onerealm['realmid']);
echo "<button type=\"button\" class=\"btn btn-info\" data-toggle=\"modal\" data-aos=\"fade-up\" data-aos-delay=\"100\"data-target=\"#modal-id$i\">" . lang('gold') . "</button><div class=\"modal\" id=\"modal-id$i\"><div class=\"modal-dialog modal-lg\"><div class=\"modal-content\">
<div class=\"modal-header\"><h4 class=\"modal-title\">" . lang('top_players') . " - " . lang('gold') . "</h4><button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button></div><div class=\"modal-body\">";
if (!is_array($data2show)) {
echo "<span style='color: #0d99e5;'>" . lang('online_players_msg2') . "</span>";
} else {
echo '<table class="table table-striped table-responsive-sm"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('level') . '</th> <th scope="col">' . lang('play_time') . '</th><th scope="col">' . lang('gold') . '</th></tr></thead><tbody>';
$m = 1;
foreach ($data2show as $one_char) {
if (empty($one_char['name'])) {
continue;
}
echo '<tr><td>' . $m++ . '<th scope="row">' . $antiXss->xss_clean($one_char['name']) . '</th><td>' . $antiXss->xss_clean($one_char["level"]) . '</td><td>' . $antiXss->xss_clean(get_human_time_from_sec($one_char['totaltime'])) . '</td><td>' . $antiXss->xss_clean(substr($one_char["money"], 0, -4)) . '<img src=\'' . get_config("baseurl") . '/template/' . $antiXss->xss_clean(get_config("template")) . '/images/goldcoin.png\'></td></tr>';
}
echo '</table>';
}
echo "</div><div class=\"modal-footer\"><button type=\"button\" class=\"btn btn-danger\" data-dismiss=\"modal\">Close</button></div></div></div></div>";
$i++;
$data2show = status::get_top_killers($onerealm['realmid']);
echo "<button type=\"button\" class=\"btn btn-info\" data-toggle=\"modal\" data-aos=\"fade-up\" data-aos-delay=\"100\"data-target=\"#modal-id$i\">" . lang('killers') . "</button><div class=\"modal\" id=\"modal-id$i\"><div class=\"modal-dialog modal-lg\"><div class=\"modal-content\">
<div class=\"modal-header\"><h4 class=\"modal-title\">" . lang('top_players') . " - " . lang('killers') . "</h4><button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button></div><div class=\"modal-body\">";
if (!is_array($data2show)) {
echo "<span style='color: #0d99e5;'>" . lang('online_players_msg2') . "</span>";
} else {
echo '<table class="table table-striped"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th><th scope="col">' . lang('kills') . '</th></tr></thead><tbody>';
echo '<table class="table table-striped table-responsive-sm"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th><th scope="col">' . lang('kills') . '</th></tr></thead><tbody>';
$m = 1;
foreach ($data2show as $one_char) {
if (empty($one_char['name'])) {
@@ -362,7 +381,7 @@ require_once 'rules.php';
if (!is_array($data2show)) {
echo "<span style='color: #0d99e5;'>" . lang('online_players_msg2') . "</span>";
} else {
echo '<table class="table table-striped"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th>';
echo '<table class="table table-striped table-responsive-sm"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th>';
if (get_config('expansion') >= 6) {
echo '<th scope="col">' . lang('honor_level') . '</th>';
@@ -396,7 +415,7 @@ require_once 'rules.php';
if (!is_array($data2show)) {
echo "<span style='color: #0d99e5;'>" . lang('online_players_msg2') . "</span>";
} else {
echo '<table class="table table-striped"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th><th scope="col">' . lang('arena_points') . '</th></tr></thead><tbody>';
echo '<table class="table table-striped table-responsive-sm"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('race') . '</th> <th scope="col">' . lang('class') . '</th><th scope="col">' . lang('level') . '</th><th scope="col">' . lang('arena_points') . '</th></tr></thead><tbody>';
$m = 1;
foreach ($data2show as $one_char) {
if (empty($one_char['name'])) {
@@ -415,7 +434,7 @@ require_once 'rules.php';
if (!is_array($data2show)) {
echo "<span style='color: #0d99e5;'>" . lang('online_players_msg2') . "</span>";
} else {
echo '<table class="table table-striped"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('rating') . '</th><th scope="col">' . lang('captain_name') . '</th></tr></thead><tbody>';
echo '<table class="table table-striped table-responsive-sm"><thead><tr><th scope="col">' . lang('rank') . '</th><th scope="col">' . lang('name') . '</th><th scope="col">' . lang('rating') . '</th><th scope="col">' . lang('captain_name') . '</th></tr></thead><tbody>';
$m = 1;
foreach ($data2show as $one_char) {
$character_data = status::get_character_by_guid($onerealm['realmid'], $one_char['captainGuid']);