<?php if (have_posts()) { while (have_posts()) { the_post(); $ddd_featured_news_heading = dfw_get_field('ddd_featured_news_heading'); $ddd_featured_news_link = dfw_get_field('ddd_featured_news_link'); $ddd_choose_featured_article = dfw_get_field('ddd_choose_featured_article'); } } wp_reset_postdata(); echo fcwp_heading_bar($ddd_featured_news_heading, $ddd_featured_news_link); $case_study_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => '1', 'post__in' => array($ddd_choose_featured_article->ID), 'no_found_rows' => true)); if (have_posts()) { while ($case_study_query->have_posts()) { $case_study_query->the_post(); $even_odd = $case_study_query->current_post % 2 == 0 ? 'odd' : 'even'; ?> <article id="entry-<?php get_the_ID(); ?> " <?php post_class('row entry news listing ' . $even_odd); ?> aria-labelledby="entry__header" role="article"> <div class="content__wrapper"> <?php if (has_post_thumbnail()) { ?> <section class="entry__profile-image col__1-2"> <a href="<?php
<?php if (have_posts()) { while (have_posts()) { the_post(); $ddd_affiliate_logo = dfw_get_field('ddd_affiliate_logo', true); $ddd_affiliate_logo_retina = dfw_get_field('ddd_affiliate_logo_retina', true); $ddd_affiliate_logo_svg = dfw_get_field('ddd_affiliate_logo_svg', true); $ddd_affiliate_header = dfw_get_field('ddd_affiliate_header'); $ddd_affiliate_copy = dfw_get_field('ddd_affiliate_copy'); echo fcwp_heading_bar($ddd_affiliate_header); ?> <section class="affiliates"> <h4 class="bene__logo"> <a href="http://benefactorgroup.com/"> <?php $bene_logo_paths = array('image' => $ddd_affiliate_logo['url'], 'retina' => $ddd_affiliate_logo_retina['url'], 'svg' => $ddd_affiliate_logo_svg['url']); dfw_svg_fallback($bene_logo_paths, $ddd_affiliate_logo['alt'], 'logo', 'svg logo__svg'); ?> </a> <span class="ir"> <?php echo _e('The Benefactor Group', 'fcwp'); ?> </span> </h4> <div class="affiliation__text"> <?php echo $ddd_affiliate_copy; ?> </div>
<?php if (have_posts()) { while (have_posts()) { the_post(); $ddd_btn_case_studies = dfw_get_field('ddd_btn_case_studies'); $ddd_btn_case_studies_link = dfw_get_field('ddd_btn_case_studies_link'); $ddd_choose_featured_case_study = dfw_get_field('ddd_choose_featured_case_study'); } } wp_reset_postdata(); echo fcwp_heading_bar($ddd_btn_case_studies, $ddd_btn_case_studies_link); $case_study_query = new WP_Query(array('post_type' => 'casestudies', 'posts_per_page' => '1', 'post__in' => array($ddd_choose_featured_case_study->ID), 'no_found_rows' => true)); if (have_posts()) { while ($case_study_query->have_posts()) { $case_study_query->the_post(); $even_odd = $case_study_query->current_post % 2 == 0 ? 'odd' : 'even'; ?> <article id="entry-<?php get_the_ID(); ?> " <?php post_class('row entry case_study listing ' . $even_odd); ?> aria-labelledby="entry__header" role="article"> <div class="content__wrapper"> <?php if (has_post_thumbnail()) { ?> <section class="entry__profile-image col__1-2"> <a href="<?php
<?php if (have_posts()) { while (have_posts()) { the_post(); $ddd_clients_heading = dfw_get_field('ddd_clients_heading'); } } wp_reset_postdata(); echo fcwp_heading_bar($ddd_clients_heading); ?> <section class="clients"> <?php if (have_rows('ddd_clients')) { $i = 0; while (have_rows('ddd_clients')) { the_row(); $ddd_client_logo = dfw_get_sub_field('ddd_clients', 'ddd_client_logo'); $ddd_client_url = dfw_get_sub_field('ddd_clients', 'ddd_client_url'); if ($i % 3 == 0) { ?> <div class="row"> <?php } ?> <div class="col__1-3 client"> <div class="inner"> <div class="client__logo"> <?php if ($ddd_client_logo) { ?>