<main class="reporting-dashboard"> <div class="hero"> <h1><?php echo get_userdata($current_user->ID)->data->display_name; ?>'s Dashboard</h1> </div> <div class="page-container"> <?php the_partial('report-section-title', array('title' => 'Reports')); ?> <?php if ( $the_query->have_posts() ) : ?> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $report = new Report_View_Model( $post );?> <a href="<?php echo $report->get_permalink();?>" class="report-card report__item"> <div class="report-card__header"> <div class="report-card__header-group"> <h2 class="report-card__title"><?php echo $report->get_title(); ?></h2> </div> <div class="report-card__header-group"> <p class="report-card__date"><?php echo $report->report_date; ?></p> <?php if ( $report->label ) : ?> <p class="report-card__label"><?php echo $report->label; ?></p> <?php endif; ?> </div> </div> <?php if( have_rows('pull_quotes') ): ?> <?php ; ?> <div class="report-card__body report-card__grid report-card__grid-<? echo count( get_field( 'pull_quotes' ) ); ?>-up"> <h3 class="report-card__subtitle report__item-title">Select Press Quotes</h3> <?php while ( have_rows('pull_quotes') ) : the_row(); ?>
?> <?php the_partial('nav'); ?> <?php if ( have_post ) : while ( have_posts() ) : the_post(); ?> <div class="hero"> <div class="page-container"> <div class="client-mantle"> <?php if (get_field('client_image', $report->report_client['ID'])): ?> <div class="client-mantle__img-wrap"> <img class="" src="<?php echo get_field( 'client_image', 'user_' . $report->report_client['ID'] )['url']; ?>" alt=""> </div> <?php endif ?> <div class="client-mantle__info"> <h2 class="hero__client"><?php echo $report->report_client['display_name']; ?></h2> <h1 class="hero__title"><?php echo $report->get_title(); ?></h1> <?php if ($report->label) : ?> <h3 class="hero__label"><?php echo $report->label; ?></h3> <?php endif; ?> <h4 class="hero__date"><?php echo $report->report_date; ?></h4> <?php if(function_exists('pf_show_link')){echo pf_show_link();} ?> </div> </div> </div> </div> <div class="page-container"> <?php if( $tv_radio_recap ): ?> <div class="report" id="radio"> <?php the_partial('report-section-title', array('title' => 'TV / Radio')