<?php the_conditional_field('team_title', '<h2>', '</h2>'); ?> <?php the_conditional_field('team_intro', '<p>', '</p>'); ?> </div> <div class="row team-v3"> <?php foreach ($team as $post) { setup_postdata($post); ?> <div class="<?php echo get_col_x($team, 'md'); ?> md-margin-bottom-50"> <div class="team-img"> <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?> <div class="team-hover"> <span><?php the_title(); ?> </span> <small><?php the_field('position'); ?> </small>
<!--=== Content Part ===--> <div class="container content"> <div class="margin-bottom-10"></div> <!-- Service Blocks --> <div class="row content-boxes-v2 margin-bottom-30"> <?php $blocks = get_sub_field('blocks'); if (have_rows('blocks')) { while (have_rows('blocks')) { the_row(); $link = get_sub_field('link'); $b_s = $link ? '<a class="link-bg-icon" href="' . $link . '">' : '<div class="link-bg-icon">'; $b_e = $link ? '</a>' : '</div>'; ?> <div class="<?php echo get_col_x($blocks, 'md'); ?> md-margin-bottom-30"> <h2 class="heading-sm"> <?php echo $b_s; ?> <i class="icon-custom icon-sm rounded-x icon-bg-dark fa <?php the_sub_field('icon'); ?> "></i> <?php the_conditional_field('title', '<span>', '</span>', true); ?> <?php echo $b_e;
} ?> <?php if (have_rows('statistics')) { ?> <!--=== Parallax Counter ===--> <div class="parallax-counter-v2 parallaxBg1" style="background-position: 50% 90px;"> <div class="container"> <ul class="row list-row"> <?php while (have_rows('statistics')) { the_row(); ?> <li class="<?php echo get_col_x(get_field('statistics'), 'md'); ?> col-sm-6 md-margin-bottom-30"> <div class="counters rounded"> <span class="counter"><?php the_sub_field('number'); ?> </span> <h4 class="text-transform-normal"><?php the_sub_field('title'); ?> </h4> </div> </li> <?php }
<?php // check if the flexible content field has rows of data if (have_rows('footer_widgets', 'option')) { // loop through the rows of data while (have_rows('footer_widgets', 'option')) { the_row(); ?> <div class="<?php echo get_col_x(get_field('footer_widgets', 'option'), 'md'); ?> md-margin-bottom-40"> <?php // check current row layout get_template_part('parts/footer/widgets/widget', get_row_layout()); ?> </div> <?php } } else { // no layouts found }