HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vmi1674223.contaboserver.net 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: root (0)
PHP: 7.4.3-4ubuntu2.22
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/onlineshop/wp-content/themes/nautica/vc_templates/engo_slideshopbrst.php
<?php
$grid_link = $grid_layout_mode = $title = $filter= '';
$posts = array();
$layout = '';
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );  
extract( $atts );
if(empty($loop)) return;
$this->getLoop($loop);
$args = $this->loop_args;
 
if( is_front_page() ){
    $paged = (get_query_var('page')) ? get_query_var('page') : 1;
}   
else {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
}

$args['paged'] = $paged; 
$posts_per_page = $args['posts_per_page']; 

$loop = new WP_Query($args);

 
$columgrid = floor(12/$grid_columns);
if(  empty($layout) ){
    $layout = 'blog';
}
$id = rand();
$countposts = $args ['posts_per_page'];
?>


<section class="widget slideshowpost blog-type  <?php if($el_class!=''){ echo esc_attr($el_class);} ?>">
    <?php if( $title ) { ?>
        <h3 class="widget-title <?php echo esc_attr($size).' '.esc_attr($alignment); ?>">
           <span><?php echo esc_attr($title); ?></span>
            <?php if(trim($descript)!=''){ ?>
                <span class="widget-desc">
                    <?php echo esc_html($descript); ?>
                </span>
            <?php } ?>
        </h3>
    <?php } ?>

    <div class="widget-content">
        <div class="owl-carousel-play">
           <div class="owl-carousel" data-slide="<?php echo esc_attr($grid_columns); ?>"  data-singleItem="true" data-navigation="true">
            <?php $i=0; while ( $loop->have_posts() ): $loop->the_post(); ?>
                <div class="item">
                    <?php get_template_part( 'vc_templates/post/slideshow' ); ?>
                </div>
       
              <?php if( ++$i== $countposts){ break; } ?>
            <?php endwhile; ?>
            </div>
            <a class="left carousel-control carousel-xs radius-x" href="#post-slide-<?php echo esc_attr($id); ?>" data-slide="prev">
                <span class="fa fa-angle-left"></span>
            </a>
            <a class="right carousel-control carousel-xs radius-x" href="#post-slide-<?php echo esc_attr($id); ?>" data-slide="next">
                <span class="fa fa-angle-right"></span>
            </a>

        </div>

        <?php if( isset($show_pagination) && $show_pagination ): ?>
        <div class="w-pagination"><?php nautica_fnc_pagination_nav( $post_per_page,$loop->found_posts,$loop->max_num_pages ); ?></div>
        <?php endif ; ?>
    </div>
</section>
<?php wp_reset_query();