user->getRole(); if ($userRole === '' && $comment['visibility'] !== Role::APP_USER) { return; } if ($userRole === Role::APP_MANAGER && $comment['visibility'] === Role::APP_ADMIN) { return; } if ($userRole === Role::APP_USER && $comment['visibility'] !== Role::APP_USER) { return; } ?>
avatar->render($comment['user_id'], $comment['username'], $comment['name'], $comment['email'], $comment['avatar_path']) ?>
text->e($comment['name'] ?: $comment['username']) ?> dt->datetime($comment['date_creation']) ?> dt->datetime($comment['date_modification']) ?>
text->markdown($comment['comment'], isset($is_public) && $is_public) ?>