Created
December 28, 2019 12:22
-
-
Save oschettler/2d441aa795ec7601aa4956cd24566f19 to your computer and use it in GitHub Desktop.
Patches to devdojo.com/wave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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