Skip to content

Instantly share code, notes, and snippets.

@oschettler
Created December 28, 2019 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oschettler/2d441aa795ec7601aa4956cd24566f19 to your computer and use it in GitHub Desktop.
Save oschettler/2d441aa795ec7601aa4956cd24566f19 to your computer and use it in GitHub Desktop.
Patches to devdojo.com/wave
*** vendor/tcg/voyager/resources/views/formfields/image.blade.php.orig 2019-12-28 13:19:10.402469643 +0100
--- vendor/tcg/voyager/resources/views/formfields/image.blade.php 2019-12-28 13:19:18.770558970 +0100
***************
*** 2,8 ****
<div data-field-name="{{ $row->field }}">
<a href="#" class="voyager-x remove-single-image" style="position:absolute;"></a>
<img src="@if( !filter_var($dataTypeContent->{$row->field}, FILTER_VALIDATE_URL)){{ Voyager::image( $dataTypeContent->{$row->field} ) }}@else{{ $dataTypeContent->{$row->field} }}@endif"
! data-file-name="{{ $dataTypeContent->{$row->field} }}" data-id="{{ $dataTypeContent->id }}"
style="max-width:200px; height:auto; clear:both; display:block; padding:2px; border:1px solid #ddd; margin-bottom:10px;">
</div>
@endif
--- 2,8 ----
<div data-field-name="{{ $row->field }}">
<a href="#" class="voyager-x remove-single-image" style="position:absolute;"></a>
<img src="@if( !filter_var($dataTypeContent->{$row->field}, FILTER_VALIDATE_URL)){{ Voyager::image( $dataTypeContent->{$row->field} ) }}@else{{ $dataTypeContent->{$row->field} }}@endif"
! data-file-name="{{ $dataTypeContent->{$row->field} }}" data-id="{{ $dataTypeContent->id ?? '' }}"
style="max-width:200px; height:auto; clear:both; display:block; padding:2px; border:1px solid #ddd; margin-bottom:10px;">
</div>
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment