mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
21 lines
717 B
PHP
21 lines
717 B
PHP
<div>
|
|
@if(str($row->value)->contains('http'))
|
|
<x-button amber href="{{ $row->value }}" target="_blank">
|
|
<i class="fa fa-thin fa-book-open mr-2"></i>
|
|
Öffnen
|
|
</x-button>
|
|
@endif
|
|
@if($row->type === 'downloadable_file')
|
|
<x-button amber href="{{ $row->getFirstMediaUrl('single_file') }}" target="_blank">
|
|
<i class="fa fa-thin fa-download mr-2"></i>
|
|
Download
|
|
</x-button>
|
|
@endif
|
|
@if($row->type === 'podcast_episode')
|
|
<x-button amber href="{{ $row->episode->data['enclosureUrl'] }}" target="_blank">
|
|
<i class="fa fa-thin fa-headphones mr-2"></i>
|
|
Anhören
|
|
</x-button>
|
|
@endif
|
|
</div>
|