c = $user_id; } public function i() { $user = new User($this->c['user_id']); echo '
'.Date::zmdate($this->c['posted_at']).'
'.htmlspecialchars($user->i('username')).' · '; if (json_decode($user->i('content'), true)['aboutrid']['value'] != null) { echo ''; } if (json_decode($user->i('content'), true)['aboutlive']['value'] != null) { echo ' '.htmlspecialchars(json_decode($user->i('content'), true)['aboutlive']['value']); } if ((int)Vote::countcommrates($this->c['id'], -1) >= 1) { $commclass = 'pro'; $symb = '+'; } else if ((int)Vote::countcommrates($this->c['id'], -1) < 0) { $commclass = 'con'; $symb = '-'; } else if ((int)Vote::countcommrates($this->c['id'], -1) === 0) { $commclass = ''; } echo '
Фото: '.Photo::fetchAll($this->c['user_id']).'
'.htmlspecialchars($this->c['body']).'
+
'.$symb.Vote::countcommrates($this->c['id'], -1).'
+'.Vote::countcommrates($this->c['id'], 1).' / '.Vote::countcommrates($this->c['id'], 0).'
'; } }