mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
book cases added
This commit is contained in:
15
resources/views/vendor/comments/components/avatar.blade.php
vendored
Normal file
15
resources/views/vendor/comments/components/avatar.blade.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
@php
|
||||
$defaultImage = Spatie\Comments\Support\Config::getGravatarDefaultImage();
|
||||
$defaultAvatar = "https://www.gravatar.com/avatar/unknown?d={$defaultImage}";
|
||||
|
||||
if ($user = auth()->user()) {
|
||||
$segment = md5(strtolower($user->email));
|
||||
$defaultAvatar = "https://www.gravatar.com/avatar/{$segment}?d={$defaultImage}";
|
||||
}
|
||||
@endphp
|
||||
|
||||
<img
|
||||
class="comments-avatar"
|
||||
src="{{ isset($comment) && $comment->commentatorProperties() ? $comment->commentatorProperties()->avatar : $defaultAvatar }}"
|
||||
alt="avatar"
|
||||
>
|
||||
Reference in New Issue
Block a user