<div class="dnnc_slider_wrap">
	<?php 
	$dannci_redux = get_option( 'dannci_redux' );
	if (isset($dannci_redux['tmnf-slider-cats']) && !empty($dannci_redux['tmnf-slider-cats'])) {
    $slider_categ = $dannci_redux['tmnf-slider-cats'];
	
	$my_query = new WP_Query('showposts='. $dannci_redux['tmnf-slider-nr'] .'&cat='. implode(",", $slider_categ) .'');	 
	if ($my_query->have_posts()) :

        wp_enqueue_script('owl-carousel', get_template_directory_uri().'/js/owl.carousel.min.js','','', true);
        wp_enqueue_script('owl-slider-start', get_template_directory_uri().'/js/owl.slider.start.js','','', true);

	?>

    <img class="slider_spinner" src="<?php get_template_directory_uri().'/images/tail-spin.svg'; ?>" width="40" alt="">
            
    <div class="dnnc_slider loop owl-carousel loading">
    
        <?php while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; ?>	

            <div class="dnnc_slider_inn">

            <div class="dnnc_container">

                <div class="dnnc_column dnnc_column_12 dnnc_column_vis">

                    <div class="slider_col slider_col_left">

                        <a href="<?php the_permalink(); ?>">
                                
                            <?php the_post_thumbnail( 'sorsele_vertical',array('class' => "dnnc_tranz dnnc_slider_img")); ?>
                        
                        </a>

                    </div>

                    <div class="slider_col slider_col_right">

                        <h2 class="large_title"><a class="link link--forsure" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                    
                    </div>

                </div><!-- end .dnnc_column_12 -->
                
            </div><!-- end .dnnc_container -->

            </div><!-- end .dnnc_slider_inn -->
    
        <?php  endwhile; ?>
        
                
	<?php endif; ?>    

	</div>
    
	<?php  } else { echo '<h3 class="cntr">'. esc_html__('Please select featured categories (for slider) in the admin panel. You can select as much categories as you want.','city-of-wp').'</h3>';}?>
    
</div><!-- end .tmnf_slider_wrap -->
<div class="clearfix"></div>