Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Carousel -->
- <?php $wl_theme_options = get_option('enigma_options_pro');
- $side_interval = $wl_theme_options['side_interval']; ?>
- <div class="row enigma-slider" id="enigma_slider">
- <div class="swiper-container home-slider">
- <?php $all_posts = wp_count_posts('weblizar_slider')->publish;
- $args = array( 'post_type' => 'weblizar_slider','posts_per_page' =>$all_posts);
- $slider = new WP_Query( $args );
- if( $slider->have_posts() ) { ?>
- <div class="swiper-wrapper ">
- <?php while ( $slider->have_posts() ) : $slider->the_post(); ?>
- <div class="swiper-slide">
- <?php if(has_post_thumbnail()) {
- $defalt_arg =array('class' => "img-responsive");
- the_post_thumbnail('home_slider_1_thumb', $defalt_arg);
- } else { $slider_youtube_url = get_post_meta( get_the_ID(), 'slider_youtube_url', true ); ?>
- <iframe id="slider_youtube_iframe2" src="<?php echo $slider_youtube_url; ?>?autoplay=1&rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe></p>
- <?php } ?>
- <div class="overlay"></div>
- <div class="carousel-caption">
- <div class="container">
- <div class="row slider-text">
- <?php if(the_title('','','')) { ?>
- <h1 class="animation animated-item-1" data-wow-iteration="5s" data-wow-duration="3s" data-wow-delay="0s" data-wow-timing-function="linear"><?php the_title(); ?></h1>
- <?php }
- if(get_post_meta( get_the_ID(),'slider_desciption', true )) { ?>
- <p class="animation animated-item-2"><?php echo get_post_meta( get_the_ID(),'slider_desciption', true ); ?></p>
- <?php }
- if(get_post_meta( get_the_ID(),'slider_button_text', true )) { ?>
- <a href="<?php echo get_post_meta( get_the_ID(),'slider_button_link', true ); ?>" class="btn s_link animation animated-item-3" <?php if(get_post_meta( get_the_ID(),'slider_button_target', true )) { echo "target='_blank'"; }?> ><?php echo get_post_meta( get_the_ID(),'slider_button_text', true ); ?></a>
- <?php } ?>
- </div>
- </div>
- </div>
- </div><?php endwhile; ?>
- </div>
- <?php } if($all_posts >= "2") { ?>
- <div class="swiper-button-prev slider-prev"><i class="fa fa-angle-left"></i></div>
- <div class="swiper-button-next slider-next"><i class="fa fa-angle-right"></i></div>
- <?php } ?>
- </div>
- </div>
- <!-- / Slider-->
Add Comment
Please, Sign In to add comment