Opal-Estate-Pro/templates/single-agency/gallery.php
2019-09-10 11:27:33 +07:00

18 lines
462 B
PHP
Executable File

<?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>