updates from most recent website build
This commit is contained in:
15
resources/views/components/image.blade.php
Normal file
15
resources/views/components/image.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@php($image = wp_get_attachment_image_src(@$id, 'medium'))
|
||||
|
||||
<img
|
||||
@if(@$lazy)
|
||||
src="{{ wp_get_attachment_image_src($id, 'lazy')[0] }}"
|
||||
data-src="{{ $image[0] }}"
|
||||
class="lazy"
|
||||
@else
|
||||
src="{{ $image[0] }}"
|
||||
@endif
|
||||
|
||||
alt="{{ get_post_meta( $id, '_wp_attachment_image_alt', true ) }}"
|
||||
width="{{ $image[1] }}"
|
||||
height="{{ $image[2] }}"
|
||||
/>
|
||||
Reference in New Issue
Block a user