mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-03 01:31:17 +03:00
Use pledge featured image for the logo
This commit is contained in:
parent
797607430d
commit
f4bbee20e8
|
@ -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[ $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.
|
// @todo Get real contributors from the post.
|
||||||
$contributors = array();
|
$contributors = array();
|
||||||
$count = count( $contributors );
|
$count = count( $contributors );
|
||||||
|
@ -32,9 +30,9 @@ $contributor_title = sprintf(
|
||||||
|
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<div class="entry-image">
|
<div class="entry-image">
|
||||||
<?php if ( $data['org-logo'] ) : ?>
|
<?php if ( has_post_thumbnail() ) : ?>
|
||||||
<div class="entry-image__logo">
|
<div class="entry-image__logo">
|
||||||
<?php printf( '<img src="%s" />', esc_url( $data['org-logo'] ) ); ?>
|
<?php the_post_thumbnail(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="entry-image__placeholder"></div>
|
<div class="entry-image__placeholder"></div>
|
||||||
|
|
Loading…
Reference in a new issue