<?php

use Proud\Agency;
?>
<div <?php 
post_class("card-wrap");
?>
>
  <div class="card">
    <?php 
if (has_post_thumbnail()) {
    ?>
    <div class="card-img-top text-center">
      <a href="<?php 
    echo esc_url(Agency\get_agency_permalink());
    ?>
"><?php 
    the_post_thumbnail('card-thumb');
    ?>
</a>
    </div>
    <?php 
}
?>
    <div class="card-block">
      <?php 
the_title(sprintf('<h3 class="entry-title margin-top-none"><a href="%s" rel="bookmark">', esc_url(Agency\get_agency_permalink())), '</a></h3>');
?>
    </div>
  </div>
</div>
<?php

use Proud\Agency;
?>
<div <?php 
post_class("card-wrap");
?>
>
  <a href="<?php 
echo esc_url(Agency\get_agency_permalink());
?>
" class="card text-center card-btn card-block">
    <i class="fa <?php 
echo $meta['agency_icon'][0];
?>
 fa-3x"></i>
      <?php 
the_title(sprintf('<h3 class="entry-title">'), '</h3>');
?>
  </a>
</div>
    ?>
    <a href="<?php 
    echo esc_url(Agency\get_agency_permalink());
    ?>
">
      <?php 
    the_post_thumbnail(array(64, 64));
    ?>
    </a>
  <?php 
}
?>
  </div>
  <div class="media-body">
    <?php 
the_title(sprintf('<h3 class="entry-title media-heading"><a href="%s" rel="bookmark">', esc_url(Agency\get_agency_permalink())), '</a></h3>');
?>
    <?php 
if (!empty($post->post_excerpt)) {
    ?>
      <p><?php 
    echo $post->post_excerpt;
    ?>
</p>
    <?php 
}
?>
  </div>
</div>
<?php 
echo $row_close;