| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/d2m/sofident_cz/wp-content/themes/sofident/template-parts/ |
Upload File : |
<section id="reviews">
<div class="container">
<div class="row">
<div class="col-xs-12">
<h1 class="wow fadeInDown"><?php _e('Hodnocení zákazníků', 'sofident'); ?><strong><?php _e('Staráme se o naše klienty', 'sofident'); ?></strong></h1>
<div class="wow fadeInUp" id="quote-carousel">
<?php
$args = array(
'post_type' => 'reviews',
'posts_per_page' => 3,
);
$query1 = new WP_Query($args);
if ($query1->have_posts()) {
?>
<!-- Wrapper for Slides -->
<div id="reviewsSlider" class="text-center">
<?php
$count = 0;
while ($query1->have_posts()) {
$query1->the_post();
?>
<div class="item <?php if (0 == $count) echo 'active'; ?>">
<blockquote>
<div class="row">
<div class="col-sm-8 col-sm-offset-2 text-center">
<?php the_content(); ?>
<div class="client"><?php the_title(); ?></div>
</div>
</div>
</blockquote>
</div>
<?php
$count++;
}
wp_reset_postdata();
?>
</div>
<!-- Bottom Carousel Indicators -->
<ol class="review-indicators">
<?php
$count = 1;
while ($query1->have_posts()) {
$query1->the_post();
$avaSmall = get_the_post_thumbnail_url($query1->post->ID, 'lazy');
$avaFull = get_the_post_thumbnail_url($query1->post->ID, 'profile-photo');
echo ' <li data-slide-to="' . $count . '" ' . ($count == 1 ? 'class="active"' : '') . '>';
lazyImage($avaFull, $avaSmall, get_the_title());
echo '</li>';
$count++;
}
?>
</ol>
<?php
}
?>
</div>
</div>
</div>
</div>
</section>