[WIP] Refactor project
This commit is contained in:
1
resources/views/vendor/media-library/image.blade.php
vendored
Normal file
1
resources/views/vendor/media-library/image.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<img{!! $attributeString !!}@if($loadingAttributeValue) loading="{{ $loadingAttributeValue }}"@endif src="{{ $media->getUrl($conversion) }}" alt="{{ $media->name }}">
|
||||
6
resources/views/vendor/media-library/placeholderSvg.blade.php
vendored
Normal file
6
resources/views/vendor/media-library/placeholderSvg.blade.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" x="0"
|
||||
y="0" viewBox="0 0 {{ $originalImageWidth }} {{ $originalImageHeight }}">
|
||||
<image width="{{ $originalImageWidth }}" height="{{ $originalImageHeight }}" xlink:href="{{ $tinyImageBase64 }}">
|
||||
</image>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 429 B |
1
resources/views/vendor/media-library/responsiveImage.blade.php
vendored
Normal file
1
resources/views/vendor/media-library/responsiveImage.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<img{!! $attributeString !!}@if($loadingAttributeValue) loading="{{ $loadingAttributeValue }}"@endif srcset="{{ $media->getSrcset($conversion) }}" src="{{ $media->getUrl($conversion) }}" width="{{ $width }}" height="{{ $height }}">
|
||||
1
resources/views/vendor/media-library/responsiveImageWithPlaceholder.blade.php
vendored
Normal file
1
resources/views/vendor/media-library/responsiveImageWithPlaceholder.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<img{!! $attributeString !!} @if($loadingAttributeValue) loading="{{ $loadingAttributeValue }}"@endif srcset="{{ $media->getSrcset($conversion) }}" onload="window.requestAnimationFrame(function(){if(!(size=getBoundingClientRect().width))return;onload=null;sizes=Math.ceil(size/window.innerWidth*100)+'vw';});" sizes="1px" src="{{ $media->getUrl($conversion) }}" width="{{ $width }}" height="{{ $height }}">
|
||||
Reference in New Issue
Block a user