| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : 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, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/lisky/wp-content/themes/lisciweb/template-parts/ |
Upload File : |
<?php
$slider_display = get_theme_mod( 'rock_n_rolla_display_slider_setting', 0);
$slider_cat = get_theme_mod( 'rock_n_rolla_slide_category_setting');
//query posts
$args = array(
'offset' => 0,
'posts_per_page' => 10,
'category_name' => $slider_cat,
'orderby' => 'post_date',
'order' => 'DESC',
'exclude' => '',
'meta_key' => '',
'meta_value' => '',
'post_type' => 'post',
'post_mime_type' => '',
'post_parent' => '',
'post_status' => 'publish',
'suppress_filters' => true
);
$counter = 1;
$the_query = new WP_Query( $args );
?>
<section id="home-slider">
<?php if($slider_display == 1){ ?>
<?php if ($the_query->have_posts()) : ?>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner">
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<?php
if ( has_post_format( 'video' )) {?>
<div class="item bg">
<?php echo wp_oembed_get(rock_n_rolla_catch_first_video());?>
</div>
<?php }else{
if ( has_post_thumbnail() ) {
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
?>
<?php if($counter < 6){?>
<div class="item bg bg<?php echo $counter; ?> <?php if($counter == 1) {echo "active";} ?>">
<div class="carousel-content-bg">
<?php the_post_thumbnail( 'full', array( 'class' => 'full-slide' ) ); ?>
</div>
</div>
<?php $counter = $counter + 1; ?>
<?php } ?>
<?php }
}
?>
<?php endwhile; ?>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a>
<a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
</div>
<?php endif; ?>
<?php } ?>
</section>
<?php wp_reset_postdata(); ?>