Through the power of DanCE, we can change the Face of Alzheimer’s
testimonialcode

$hide_testimonials = get_theme_option(tk_theme_name.’_home_hide_testimonials’);
$testimonial_id = get_option(‘id_testimonials_page’);
if(empty($hide_testimonials)){
?>
<script type=”text/javascript”>
// FLEXSLIDER
jQuery(window).load(function() {
jQuery(‘.flexslider’).flexslider({
controlNav:false,
pauseOnHover: true
});
});
</script>

<div class=”home-testimonials-content left”>
<div class=”flexslider”>
<div class=”home-title-link left”>
<span><?php _e(‘TESTIMONIALS’, tk_theme_name); ?></span>
<p>-</p>
<ul class=”flex-direction-nav”>
<li><a href=”#” class=”prev”><?php _e(‘Prev’, tk_theme_name); ?></a></li>
<h6>/</h6>
<li><a href=”#” class=”next”><?php _e(‘Next’, tk_theme_name); ?></a></li>
<h6>-</h6>
</ul>
<a href=”<?php echo get_page_link($testimonial_id); ?>”><?php _e(‘View All’, tk_theme_name); ?></a>
</div><!–/home-title-link–>

<ul class=”slides left”>
<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 0;
$args=array(‘post_status’ => ‘publish’, ‘paged’ => $paged, ‘posts_per_page’ => get_option(‘posts_per_page’), ‘ignore_sticky_posts’=> 1, ‘post_type’ => ‘testimonials’);

//The Query
query_posts($args);

//The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
$email_avatar = get_post_meta($post->ID, $prefix.’email’, true);
$name_user = get_post_meta($post->ID, $prefix.’name’, true);
$avatar = get_avatar( $email_avatar, 74);
?>

<li>
<div class=”home-testimonials left”>
<div class=”home-testimonials-image left”><?php echo $avatar; ?></div>
<div class=”home-testimonials-right right”>
<div class=”home-latest-news-title left”><?php the_title(); ?></div><!–/home-latest-news-title–>
<div class=”home-latest-news-category left”>
<ul>
<li><?php echo $name_user; ?></li>
</ul>
</div><!–/home-latest-news-category–>
<div class=”home-latest-news-text left”>
<?php the_content(); ?>
</div><!–/home-latest-news-text–>
</div><!–/home-testimonials-right–>
</div><!–/home-testimonials–>
<div class=”home-testimonials-border left”></div>
</li>
<?php endwhile; endif; ?>
</ul>
</div><!– flexslider –>

<div class=”home-testimonials-border left”></div>
</div><!–/home-testimonials-content–>
<?php } ?>
<?php