Fix thumbnail size when submission.
This commit is contained in:
parent
934e0e87f0
commit
a1e0f7b4ab
@ -3,6 +3,7 @@
|
|||||||
global $property;
|
global $property;
|
||||||
$galleries = $property->get_gallery();
|
$galleries = $property->get_gallery();
|
||||||
$image_size = opalestate_get_option( 'opalestate_thumbnail_size', 'medium' );
|
$image_size = opalestate_get_option( 'opalestate_thumbnail_size', 'medium' );
|
||||||
|
|
||||||
if ( isset( $galleries ) && $galleries ):
|
if ( isset( $galleries ) && $galleries ):
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
@ -49,9 +50,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ( isset( $galleries ) && is_array( $galleries ) && $galleries ): ?>
|
<?php if ( isset( $galleries ) && is_array( $galleries ) && $galleries ): ?>
|
||||||
<?php foreach ( $galleries as $src ): ?>
|
<?php foreach ( $galleries as $key => $src ): ?>
|
||||||
<div class="swiper-slide">
|
<div class="swiper-slide">
|
||||||
<img src="<?php echo esc_url( $src ); ?>" alt="gallery">
|
<img src="<?php echo esc_url( wp_get_attachment_image_url( $key, 'full' ) ); ?>" alt="gallery">
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( isset( $galleries ) && is_array( $galleries ) ): ?>
|
<?php if ( isset( $galleries ) && is_array( $galleries ) ): ?>
|
||||||
<?php foreach ( $galleries as $src ): ?>
|
<?php foreach ( $galleries as $key => $src ): ?>
|
||||||
<div class="swiper-slide"><img src="<?php echo esc_url( $src ); ?>" alt="gallery"></div>
|
<div class="swiper-slide"><img src="<?php echo esc_url( wp_get_attachment_image_url( $key, 'full' ) ); ?>" alt="gallery"></div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user