Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="feature_section29">
- <?php $wl_theme_options=get_option('guardian_options_pro'); ?>
- <h2><?php
- if($wl_theme_options['home_testi_title'] !='') { echo "<span style='color:#fff;'>".$wl_theme_options['home_testi_title']."</span>"; }
- ?>
- </h2><br/>
- <div class="container">
- <div class="ms-staff-carousel ms-round">
- <!-- masterslider -->
- <div class="master-slider" id="masterslider5">
- <?php $all_posts = wp_count_posts( 'weblizar_testimonial')->publish;
- $args = array( 'post_type' => 'weblizar_testimonial','posts_per_page' =>$all_posts);
- $testimonial = new WP_Query( $args );
- if( $testimonial->have_posts() )
- { while ( $testimonial->have_posts() ) : $testimonial->the_post();
- if(get_post_meta( get_the_ID(),'testimonial_link', true ))
- { $testimonial_link=get_post_meta( get_the_ID(),'testimonial_link', true ); }
- else { $testimonial_link = get_post_permalink(); }
- ?>
- <div class="ms-slide">
- <?php if(has_post_thumbnail()): ?>
- <?php the_post_thumbnail('home_test_thumb'); ?>
- <?php endif; ?>
- <div class="ms-info">
- <h4><a href="<?php echo $testimonial_link; ?>" <?php if(get_post_meta( get_the_ID(), 'testimonial_link_target', true )) { echo "target='_blank'"; } ?> ><?php the_title(); ?></a></h4>
- <h4>( <?php echo get_post_meta( get_the_ID(),'designation_meta_save', true ); ?> )</h4>
- <p><?php echo get_post_meta( get_the_ID(),'description_meta_save', true ); ?></p>
- </div>
- </div>
- <?php endwhile;
- } else {
- for($i=1; $i<=5; $i++) { ?>
- <div class="ms-slide">
- <img src="js/masterslider/blank.gif" data-src="http://placehold.it/240x240" alt="" />
- <div class="ms-info">
- <h4>Dan Mark</h4>
- <h4>SEO Expert</h4>
- <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt.</p>
- </div>
- </div>
- <?php }
- } ?>
- </div>
- <!-- end of masterslider -->
- <div class="ms-staff-info" id="staff-info"> </div>
- </div>
- </div>
- </div><!-- end features section 29 -->
- <div class="clearfix"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement