HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprotonperinggit/wp-content/themes/voiture/template-listings/single-user/gallery.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
$gallery = get_user_meta($author_obj->ID, '_user_photos', true);

if ( has_post_thumbnail() || $gallery ) {
    $gallery_size = !empty($gallery_size) ? $gallery_size : 'voiture-gallery-large';
    $thumbs_pos = !empty($thumbs_pos) ? $thumbs_pos : 'horizontal';
    $nb_columns = !empty($nb_columns) ? $nb_columns : 5;
?>
<div class="listing-detail-gallery clearfix vertical">
    
    <div class="listing-single-gallery-wrapper">
        <div class="slick-carousel gap-10 listing-single-gallery" data-carousel="slick" data-items="1" data-smallmedium="1" data-extrasmall="1" data-pagination="false" data-nav="true" data-slickparent="true">
            <?php if ( $gallery ) {
                foreach ( $gallery as $id => $src ) {
                ?>
                    <a href="<?php echo esc_url( $src ); ?>" data-elementor-lightbox-slideshow="voiture-gallery" class="p-popup-image">
                        <?php echo voiture_get_attachment_thumbnail( $id, $gallery_size ); ?>
                    </a>
                <?php }
            } ?>
        </div>
    </div>

    <div class="wrapper-thumbs">
        <div class="slick-carousel gap-10 listing-single-gallery-thumbs vertical" data-carousel="slick" data-items="<?php echo esc_attr($nb_columns); ?>" data-smallmedium="<?php echo esc_attr($nb_columns); ?>" data-extrasmall="2" data-smallest="2" data-pagination="false" data-nav="true" data-asnavfor=".listing-single-gallery" data-slidestoscroll="1" data-focusonselect="true" data-vertical="true">
            
            <?php if ( $gallery ) {
                foreach ( $gallery as $id => $src ) {
                ?>
                    <div class="p-popup-image">
                        <?php echo voiture_get_attachment_thumbnail( $id, 'voiture-gallery-thumbs' ); ?>
                    </div>
                <?php }
            } ?>
        </div>
    </div>
</div>
<?php }