Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
entrix
WoWSimpleRegistration
Commits
f75c9180
Unverified
Commit
f75c9180
authored
Jun 28, 2020
by
Amin.MasterkinG
Committed by
GitHub
Jun 28, 2020
Browse files
Correct text when no players are online for Icecrown template.
parent
0c0d4d5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
template/icecrown/tpl/main.php
View file @
f75c9180
...
...
@@ -323,7 +323,7 @@ require_once 'header.php'; ?>
echo
"<p><span style='color: #005cbf;font-weight: bold;'>
{
$onerealm
[
'realmname'
]
}
</span> <span style='font-size: 12px;'>(Limited to show 49 player - Online players : "
.
user
::
get_online_players_count
(
$onerealm
[
'realmid'
])
.
")</span></p><hr>"
;
$online_chars
=
user
::
get_online_players
(
$onerealm
[
'realmid'
]);
if
(
!
is_array
(
$online_chars
))
{
echo
"<span style='color: #0d99e5;'>No
have Online player
.</span>"
;
echo
"<span style='color: #0d99e5;'>No
players are currently online
.</span>"
;
}
else
{
echo
'<table class="table table-dark"><thead><tr><th scope="col">Name</th><th scope="col">Race</th> <th scope="col">Class</th><th scope="col">Level</th></tr></thead><tbody>'
;
foreach
(
$online_chars
as
$one_char
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment