mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-09 08:38:49 +01:00
As part of the new logo (https://github.com/JulianPrieber/littlelink-custom/milestone/1) I'm now using the new 'logo.svg' vector logo. For this, I added an if-else statement in most cases, which first check for a custom logo uploaded by the admin or the avatar of an individual user. If the image doesn't exist, the default logo (logo.svg) is used.
6 lines
273 B
PHP
Executable File
6 lines
273 B
PHP
Executable File
@if(file_exists(base_path("littlelink/images/avatar.png" )))
|
|
<img class="mb-5" src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/avatar@2x.png 2x') }}">
|
|
@else
|
|
<img src="{{ asset('littlelink/images/logo.svg') }}" alt="Logo"></img>
|
|
@endif
|