Use pledge featured image for the logo

This commit is contained in:
Kelly Dwan 2019-10-09 14:44:22 -04:00
parent 797607430d
commit f4bbee20e8
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -13,8 +13,6 @@ foreach ( PledgeMeta\get_pledge_meta_config() as $key => $config ) {
$data[ $key ] = get_post_meta( get_the_ID(), PledgeMeta\META_PREFIX . $key, $config['single'] );
}
$data['org-logo'] = 'https://5ftf.test/content/uploads/2019/10/uh.png';
// @todo Get real contributors from the post.
$contributors = array();
$count = count( $contributors );
@ -32,9 +30,9 @@ $contributor_title = sprintf(
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-image">
<?php if ( $data['org-logo'] ) : ?>
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-image__logo">
<?php printf( '<img src="%s" />', esc_url( $data['org-logo'] ) ); ?>
<?php the_post_thumbnail(); ?>
</div>
<?php else : ?>
<div class="entry-image__placeholder"></div>