$lop_testimonial->the_post(); $html .= '<div class="testimonial-item col-sm-' . $col . '">'; $web_link = get_post_meta(get_the_ID(), 'website_url', true); $before_web_link = $after_web_link = ''; if ($web_link != '') { $before_web_link = '<a href="' . $web_link . '">'; $after_web_link = "</a>"; } $regency = get_post_meta(get_the_ID(), 'regency', true); $html .= '<div class="testimonial-inner">'; $html .= ' <div class="content text-center">'; $html .= "<span>“</span>" . get_the_content() . "<span>”</span>"; $html .= ' </div>'; $html .= ' <div class="info text-center">'; $html .= ' <span class="regency">' . $before_web_link . the_title(' ', ' ', false) . $after_web_link; if ($regency != '') { $html .= ', ' . $regency . '</span>'; } $html .= ' </div>'; if (has_post_thumbnail()) { $html .= '<div class="avatar">'; $html .= feature_images(62, 62); $html .= '</div>'; } $html .= '</div>'; $html .= '</div>'; } $html .= '</div>'; } wp_reset_postdata(); echo ent2ncr($html);
$show_social = true; } $our_team_phone = get_post_meta(get_the_ID(), 'our_team_phone', true); if ($our_team_phone != '') { $our_team_phone = '<div class="phone"><i class="fa fa-phone"></i> ' . $our_team_phone . '</div>'; } $our_team_email = get_post_meta(get_the_ID(), 'our_team_email', true); if ($our_team_email != '') { $our_team_email = '<div class="email"><i class="fa fa-envelope"></i> ' . $our_team_email . '</div>'; } $html .= '<div class="member col-sm-' . $col . '">'; $html .= ' <div class="inner">'; if (has_post_thumbnail()) { $html .= '<div class="avatar-wrapper">'; $html .= '<div class="avatar-inner">'; $html .= feature_images(200, 200); $html .= '</div>'; if ($show_social) { $html .= '<div class="social"><ul>'; $html .= $face_url; $html .= $twitter_url; $html .= $rss_url; $html .= $skype_url; $html .= $dribbble_url; $html .= $linkedin_url; $html .= '</ul></div>'; } $html .= '</div>'; } $html .= ' <div class="info">'; $html .= ' <div class="name">' . the_title(' ', ' ', false) . '</div>';
if ($lop_testimonial->have_posts()) { $html .= '<div class="sc-testimonials row">'; while ($lop_testimonial->have_posts()) { $lop_testimonial->the_post(); $html .= '<div class="testimonial-item col-sm-' . $col . '">'; $web_link = get_post_meta(get_the_ID(), 'website_url', true); $before_web_link = $after_web_link = ''; if ($web_link != '') { $before_web_link = '<a href="' . $web_link . '">'; $after_web_link = "</a>"; } $regency = get_post_meta(get_the_ID(), 'regency', true); $html .= '<div class="testimonial-inner">'; if (has_post_thumbnail()) { $html .= '<div class="avatar">'; $html .= feature_images(570, 570); $html .= '</div>'; } $html .= '<div class="content">'; $html .= get_the_content(); $html .= '</div>'; $html .= '<div class="info">'; $html .= '<div class="name">' . $before_web_link . the_title(' ', ' ', false) . $after_web_link . '</div>'; if ($regency != '') { $html .= '<div class="regency">' . $regency . '</div>'; } $html .= '</div>'; $html .= '</div>'; $html .= '</div>'; } $html .= '</div>';