Opal-Estate-Pro/templates/single-agency/gallery.php

18 lines
462 B
PHP
Raw Permalink Normal View History

2019-09-10 06:27:33 +02:00
<?php
global $agency;
$gallery = $agency->get_gallery();
if ( ! $gallery ) {
return;
}
?>
<div class="opalestate-gallery">
<h4 class="box-heading"><?php esc_html_e( 'Gallery', 'opalestate-pro' ); ?></h4>
<div class="gallery-summery-style">
<?php foreach ( $gallery as $key => $src ): ?>
<a href="<?php echo esc_url( $src ); ?>" style="background-image:url('<?php echo esc_url( $src ); ?>')"></a>
<?php endforeach; ?>
</div>
</div>