diff --git a/app/Models/Comment.php b/app/Models/Comment.php index a103d29..dc858f1 100644 --- a/app/Models/Comment.php +++ b/app/Models/Comment.php @@ -7,14 +7,21 @@ class Comment { public $commentid; public $c; + public $class; function __construct($user_id) { $this->c = $user_id; } + public function class($class) { + $this->class = $class; + } public function i() { $user = new User($this->c['user_id']); - echo '
+ echo '
'.Date::zmdate($this->c['posted_at']).'
+ Цитировать + · + Ссылка
'.htmlspecialchars($user->i('username')).' · diff --git a/views/pages/Photo.php b/views/pages/Photo.php index 04b748f..65be4b9 100644 --- a/views/pages/Photo.php +++ b/views/pages/Photo.php @@ -348,9 +348,17 @@ if ($photo->i('id') !== null) {

Комментарии ·

class($class); + $number++; $comm->i(); } ?>