mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-11-15 03:31:19 +03:00
add labels to comments
This commit is contained in:
parent
8e39134df6
commit
414bb74001
1 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,11 @@ class Comment {
|
||||||
if (json_decode($user->i('content'), true)['aboutlive']['value'] != null) {
|
if (json_decode($user->i('content'), true)['aboutlive']['value'] != null) {
|
||||||
echo ' '.htmlspecialchars(json_decode($user->i('content'), true)['aboutlive']['value']);
|
echo ' '.htmlspecialchars(json_decode($user->i('content'), true)['aboutlive']['value']);
|
||||||
}
|
}
|
||||||
|
if ($user->i('admin') === 1) {
|
||||||
|
$admintype = ' · Администратор сервера';
|
||||||
|
} else if ($user->i('admin') === 2) {
|
||||||
|
$admintype = ' · Фотомодератор';
|
||||||
|
}
|
||||||
if ((int)Vote::countcommrates($this->c['id'], -1) >= 1) {
|
if ((int)Vote::countcommrates($this->c['id'], -1) >= 1) {
|
||||||
$commclass = 'pro';
|
$commclass = 'pro';
|
||||||
$symb = '+';
|
$symb = '+';
|
||||||
|
@ -35,7 +40,7 @@ class Comment {
|
||||||
$commclass = '';
|
$commclass = '';
|
||||||
}
|
}
|
||||||
echo '</span></div>
|
echo '</span></div>
|
||||||
<div class="rank">Фото: '.Photo::fetchAll($this->c['user_id']).'</div>
|
<div class="rank">Фото: '.Photo::fetchAll($this->c['user_id']).' '.$admintype.'</div>
|
||||||
<div class="message-text">'.htmlspecialchars($this->c['body']).'</div>
|
<div class="message-text">'.htmlspecialchars($this->c['body']).'</div>
|
||||||
<div class="comment-votes-block">
|
<div class="comment-votes-block">
|
||||||
<div class="wvote" wid="'.$this->c['id'].'">
|
<div class="wvote" wid="'.$this->c['id'].'">
|
||||||
|
|
Loading…
Reference in a new issue