LinkStack/resources/views/linkstack/elements/avatar.blade.php

8 lines
733 B
PHP
Raw Normal View History

2023-12-06 16:57:35 +01:00
<!-- Your Image Here -->
@if(file_exists(base_path(findAvatar($userinfo->id))))
<img alt="avatar" id="avatar" class="rounded-avatar fadein" src="{{ url(findAvatar($userinfo->id)) }}" height="128px" width="128px" style="object-fit: cover;">
2023-12-06 16:57:35 +01:00
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<img alt="avatar" id="avatar" class="fadein" src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" height="128px" width="128px" style="object-fit: cover;">
2023-12-06 16:57:35 +01:00
@else
<img alt="avatar" id="avatar" class="fadein" src="{{ asset('assets/linkstack/images/logo.svg') }}" height="128px" style="width:auto;min-width:128px;object-fit: cover;">
2023-12-06 16:57:35 +01:00
@endif