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/widgets/listing-list.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
extract( $args );

extract( $args );
extract( $instance );


$title = apply_filters('widget_title', $instance['title']);


$style = !empty($style) ? $style : 'carousel';
$args = array(
    'limit' => $number_post,
    'get_listings_by' => $get_listings_by,
    'orderby' => $orderby,
    'order' => $order,
    'style' => $style,
);

$loop = voiture_get_listings($args);
if ( $loop->have_posts() ):
    echo trim($before_widget);
    if ( $title ) {
        echo trim($before_title)  . trim( $title ) . $after_title;
    }
    ?>
    <?php if($style == 'list'){ ?>
        <div class="listings-list-simple">
        	<?php while ( $loop->have_posts() ): $loop->the_post(); ?>
    			<?php get_template_part( 'template-listings/listings-styles/inner', 'list-simple'); ?>
        	<?php endwhile; ?>
            <?php wp_reset_postdata(); ?>
        </div>
    <?php }else{ ?>
        <div class="listings-sidebar">
            <div class="slick-carousel" data-carousel="slick" data-items="1" data-smallmedium="1" data-extrasmall="1" data-pagination="true" data-nav="false">
                <?php while ( $loop->have_posts() ): $loop->the_post(); ?>
                    <div class="item">
                         <?php get_template_part( 'template-listings/listings-styles/inner', 'grid-simple'); ?>
                    </div>
                <?php endwhile; ?>
            </div>
            <?php wp_reset_postdata(); ?>
        </div>
    <?php }
    echo trim($after_widget);
endif;