HEX
Server: Apache
System: Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64
User: server (1002)
PHP: 8.3.20
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /home/muoapartman/www/wp-content/themes/resoto/wp-hotel-booking/single-room/gallery.php
<?php
/**
 * The template for displaying single room gallery.
 *
 * This template can be overridden by copying it to yourtheme/wp-hotel-booking/single-room/gallery.php.
 *
 * @author  ThimPress, leehld
 * @package WP-Hotel-Booking/Templates
 * @version 1.6
 */

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit();

global $hb_room;
/**
 * @var $hb_room WPHB_Room
 */
$galleries = $hb_room->get_galleries( false );
?>
<?php if( !empty( $galleries ) ) : ?>
    <div class="gallery-slider-wrap">
        <div class="resoto_hb_gallery owl-carousel">
            <?php foreach( $galleries as $gallery ) : ?>
                <div class="gal-img-wrap">
                    <img src="<?php echo esc_url( $gallery['src'] ); ?>" alt="<?php echo esc_attr( $gallery['alt'] ); ?>">
                </div>
            <?php endforeach; ?>
        </div>
    </div>
<?php endif; ?>