Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dugnadshjelp

    (@dugnadshjelp)

    Thread Starter dugnadshjelp

    (@dugnadshjelp)

    <!– Carousel –>
    <?php $wl_theme_options = get_option(‘enigma_options_pro’);
    $side_interval = $wl_theme_options[‘side_interval’]; ?>
    <div id=”myCarousel” class=”carousel slide” data-ride=”carousel” <?php if($wl_theme_options[‘side_pause’]==”yes”) { echo “data-pause=’false'”; } ?> data-interval=”<?php echo $side_interval; ?>”>
    <?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() )
    { $t=1; ?>
    <div class=”carousel-inner”>
    <?php while ( $slider->have_posts() ) : $slider->the_post(); ?>
    <div class=”item <?php if($t==1) { echo ‘active’; } ?>”>
    <?php if(has_post_thumbnail()):
    $defalt_arg =array(‘class’=>”img-responsive”);
    the_post_thumbnail(‘home_slider_thumb’, $defalt_arg);
    endif; ?>
    <div class=”container”>
    <div class=”carousel-caption” <?php if( $wl_theme_options[‘front_pg’]==’parallax’) { ?> style=”top:35% !important” <?php } ?> >
    <div class=”carousel-text”><?php if(the_title(”,”,”)) { ?>
    <h1 class=”animated bounceInRight”><?php the_title(); ?></h1>
    <?php } ?>
    <ul class=”list-unstyled carousel-list”>
    <?php if(get_post_meta( get_the_ID(),’slider_desciption’, true )) { ?>
    <li class=”animated bounceInLeft”><?php echo get_post_meta( get_the_ID(),’slider_desciption’, true ); ?>
    <?php } ?>

    <?php if(get_post_meta( get_the_ID(),’slider_button_text’, true )) { ?>
    ” class=”enigma_blog_read_btn animated bounceInUp” <?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 ); ?>
    <?php } ?>
    </div>
    </div>

Viewing 2 replies - 1 through 2 (of 2 total)