| 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_carousel_setting', 0);
$slider_cat = get_theme_mod( 'rock_n_rolla_carousel_category_setting');
?>
<?php
//query posts
$args = array(
'offset' => 0,
'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
);
$the_query = new WP_Query( $args );
?>
<?php if($slider_display == 1){ ?>
<div id="featured-post">
<?php if ( get_theme_mod( 'rock_n_rolla_carousel_label' ) ) { ?>
<h1 class="section-label"><?php echo get_theme_mod( 'rock_n_rolla_carousel_label' ); ?><!--Newest Album--></h1>
<?php } ?>
<div class="flexslider carousel">
<ul class="slides">
<!-- items mirrored twice, total of 12 -->
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<?php if(has_post_thumbnail()){ ?>
<li>
<div class="featured-post-thumbnail">
<a href="<?php the_permalink('') ?>">
<?php the_post_thumbnail('rock-n-rolla-medium-thumbnail'); ?>
<div class="tour-title">
<span><?php the_title(); ?></span>
</div>
</a>
</div>
</li>
<?php }?>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_postdata(); ?>
</ul>
</div>
</div>
<?php } ?>