PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-shortcodes
/
templates
<?php /***************************************************************************** * * copyright(c) - aonetheme.com - Service Finder Team * More Info: http://aonetheme.com/ * Coder: Service Finder Team * Email: contact@aonetheme.com * ******************************************************************************/ ?> <!-- Testimonials Outer Template--> <?php $service_finder_options = get_option('service_finder_options'); $wpdb = service_finder_shortcode_global_vars('wpdb'); $imgurl = (!empty($service_finder_options['testimonials-bg-image']['url'])) ? $service_finder_options['testimonials-bg-image']['url'] : ''; $bgattachment = (isset($service_finder_options['testimonials-background-attachment'])) ? esc_html($service_finder_options['testimonials-background-attachment']) : ''; $bgcolor = (!empty($service_finder_options['testimonials-bg-color'])) ? $service_finder_options['testimonials-bg-color'] : ''; $bgopacity = (!empty($service_finder_options['testimonials-bg-opacity'])) ? $service_finder_options['testimonials-bg-opacity'] : ''; $bgopacity = ($bgopacity > 0) ? $bgopacity : ''; $curveleftcolor = (!empty($service_finder_options['testimonials-left-curve-color'])) ? $service_finder_options['testimonials-left-curve-color'] : ''; $curverightcolor = (!empty($service_finder_options['testimonials-right-curve-color'])) ? $service_finder_options['testimonials-right-curve-color'] : ''; $title = (!empty($service_finder_options['shortcode-testimonials-title'])) ? esc_html($service_finder_options['shortcode-testimonials-title']) : ''; $tagline = (!empty($service_finder_options['shortcode-testimonials-tagline'])) ? wp_kses_post($service_finder_options['shortcode-testimonials-tagline']) : ''; $titlecolor = (!empty($service_finder_options['shortcode-testimonials-title-color'])) ? esc_html($service_finder_options['shortcode-testimonials-title-color']) : ''; $taglinecolor = (!empty($service_finder_options['shortcode-testimonials-tagline-color'])) ? esc_html($service_finder_options['shortcode-testimonials-tagline-color']) : ''; $dividercolor = (!empty($service_finder_options['shortcode-testimonials-divider-color'])) ? esc_html($service_finder_options['shortcode-testimonials-divider-color']) : ''; $args = array( 'post_type'=> 'sf_testimonials', 'post_status' => 'publish', 'orderby' => 'post_date', 'order' => 'DESC', ); $the_query = new WP_Query( $args ); if(service_finder_themestyle_for_plugin() == 'style-2'){ ob_start(); ?> <section class="section-full bg-gray sf-testimonials" style="background:url(<?php echo esc_url($imgurl) ?>) center <?php echo esc_attr($bgattachment) ?> no-repeat;"> <div class="container"> <div class="section-head text-center"> <h2 style="color:<?php echo esc_attr($titlecolor); ?>"><?php echo esc_html($title); ?></h2> <?php echo service_finder_title_separator($dividercolor) ?> <div class="sf-tagile-outer" style="color:<?php echo esc_attr($taglinecolor); ?>"><?php echo wp_kses_post($tagline); ?></div> </div> <div class="section-content"> <div class="section-content"> <div class="owl-testimonials"> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $postid = get_the_id(); if ( has_post_thumbnail() ) { $imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id(), 'service_finder-blog-home-page' ); $imgsrc = $imgsrc[0]; }else{ $imgsrc = ''; } ?> <div class="sf-testimonial-2 item" data-hash="zero"> <div class="testimonial-thum"> <a class="item-thum" href="javascript:;"><img src="<?php echo esc_url($imgsrc); ?>" alt=""></a> </div> <div class="sf-testimonial-text quote-right quote-left"> <?php echo apply_filters('the_content', get_the_content()); ?> </div> <div class="sf-testimonial-detail"> <strong class="testimonial-name"><?php echo get_post_meta($postid,'authorname',true); ?></strong> <span class="testimonial-position"><?php echo get_post_meta($postid,'designation',true); ?></span> </div> </div> <?php endwhile; ?> </div> </div> </div> </div> <div class="sf-overlay-main" style="opacity:<?php echo esc_attr($bgopacity); ?>; background-color:<?php echo esc_attr($bgcolor); ?> "> </section> <?php $html = ob_get_clean(); }elseif(service_finder_themestyle_for_plugin() == 'style-3'){ ob_start(); ?> <section class="section-full sf-testimonials-wrap" style="background:url(<?php echo esc_url($imgurl) ?>) center <?php echo esc_attr($bgattachment) ?> no-repeat;"> <div class="container"> <div class="section-content"> <div class="container"> <div class="row"> <div class="col-md-4"> <div class="sf-testimonials-left"> <div class="sf-testimonials-title"><h2 style="color:<?php echo esc_attr($titlecolor); ?>"><?php echo esc_html($title); ?></h2></div> <div class="sf-testimonials-text"><div class="sf-tagile-outer" style="color:<?php echo esc_attr($taglinecolor); ?>"><?php echo wp_kses_post($tagline); ?></div></div> </div> </div> <div class="col-lg-8 col-md-8"> <div class="owl-carousel testimonial-two"> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $postid = get_the_id(); if ( has_post_thumbnail() ) { $imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id(), 'service_finder-blog-home-page' ); $imgsrc = $imgsrc[0]; }else{ $imgsrc = ''; } ?> <div class="item"> <div class="testimonial-2"> <div class="testimonial-text"> <div class="testimonial-reviews"><?php echo get_the_title(); ?></div> <?php echo apply_filters('the_content', get_the_content()); ?> </div> <div class="testimonial-detail clearfix"> <div class="testimonial-thum radius"><img src="<?php echo esc_url($imgsrc); ?>" width="100" height="100" alt=""></div> <strong class="testimonial-name"><?php echo get_post_meta($postid,'authorname',true); ?></strong> <span><?php echo get_post_meta($postid,'designation',true); ?></span> </div> </div> </div> <?php endwhile; ?> </div> </div> </div> </div> </div> </div> <div class="sf-curve-topWrap"><div class="sf-curveTop sf-testimo-curveTop" style="background-color:<?php echo esc_attr($curveleftcolor); ?>"></div></div> <div class="sf-curve-botWrap"><div class="sf-curveBot sf-testimo-curveBot" style="background-color:<?php echo esc_attr($curverightcolor); ?>"></div></div> <div class="sf-overlay-main" style="opacity:<?php echo esc_attr($bgopacity); ?>; background-color:<?php echo esc_attr($bgcolor); ?> "> </section> <?php $html = ob_get_clean(); }else{ ob_start(); ?> <section class="section-full bg-gray sf-testimonials" style="background:url(<?php echo esc_url($imgurl) ?>) center <?php echo esc_attr($bgattachment) ?> no-repeat;"> <div class="container"> <div class="section-head text-center "> <h2 style="color:<?php echo esc_attr($titlecolor); ?>"><?php echo esc_html($title); ?></h2> <?php echo service_finder_title_separator($dividercolor); ?> <div class="sf-tagile-outer" style="color:<?php echo esc_attr($taglinecolor); ?>"><?php echo wp_kses_post($tagline); ?></div> </div> <div class="section-content"> <div class="section-content"> <div class="owl-carousel"> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $postid = get_the_id(); if ( has_post_thumbnail() ) { $imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id(), 'service_finder-blog-home-page' ); $imgsrc = $imgsrc[0]; }else{ $imgsrc = ''; } ?> <div class="testimonial-bx item"> <div class="testimonial-pic"><img src="<?php echo esc_url($imgsrc); ?>" width="100" height="100" alt=""></div> <div class="testimonial-text"> <?php echo apply_filters('the_content', get_the_content()); ?> <div class="testimonial-detail"><strong><?php echo get_post_meta($postid,'authorname',true); ?></strong><span><?php echo get_post_meta($postid,'designation',true); ?></span></div> </div> </div> <?php endwhile; ?> </div> </div> </div> </div> <div class="sf-overlay-main" style="opacity:<?php echo esc_attr($bgopacity); ?>; background-color:<?php echo esc_attr($bgcolor); ?> "> </section> <?php $html = ob_get_clean(); } ?> <!-- Testimonials Outer Template-->
[+]
..
[-] pricing-table.php
[edit]
[-] aone-why-choose-us.php
[edit]
[-] categories.php
[edit]
[-] bio.php
[edit]
[-] followers.php
[edit]
[-] why-choose-us.php
[edit]
[-] aone-jobs-outer.php
[edit]
[-] cities.php
[edit]
[-] load-more-categories.php
[edit]
[-] aone-pricing-table.php
[edit]
[-] jobs-outer.php
[edit]
[-] aone-testimonials.php
[edit]
[-] features-outer.php
[edit]
[-] aone-cities.php
[edit]
[-] aone-categories.php
[edit]
[-] allcategories-v2.php
[edit]
[-] pricing-table-features.php
[edit]
[-] latest-blogs.php
[edit]
[-] aone-statistics.php
[edit]
[-] pricing-table-column.php
[edit]
[-] work-process.php
[edit]
[-] statistics.php
[edit]
[-] statistics-inner.php
[edit]
[-] why-choose-us-inner.php
[edit]
[-] features-inner.php
[edit]
[-] aone-how-it-works.php
[edit]
[-] aone-categories-v2.php
[edit]
[-] featured-providers.php
[edit]
[-] load-more-providers.php
[edit]
[-] categories-v2.php
[edit]
[-] testimonials-inner.php
[edit]
[-] allcategories-v1.php
[edit]
[-] aone-followers.php
[edit]
[-] sf-template-shortcodes.php
[edit]
[-] general-functions.php
[edit]
[-] aone-featured-providers.php
[edit]
[-] providers.php
[edit]
[-] how-it-works.php
[edit]
[-] aone-latest-blogs.php
[edit]
[-] request-quote.php
[edit]
[-] testimonials-outer.php
[edit]