| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the campaign thumbnail. |
| 4 |
* |
| 5 |
* @author WP Charitable LLC |
| 6 |
* @package Charitable/Templates/Campaign |
| 7 |
* @since 1.0.0 |
| 8 |
* @version 1.0.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
$campaign = $view_args['campaign']; |
| 12 |
|
| 13 |
if ( has_post_thumbnail( $campaign->ID ) ) : |
| 14 |
echo get_the_post_thumbnail( $campaign->ID, apply_filters( 'charitable_campaign_loop_thumbnail_size', 'medium' ) ); |
| 15 |
endif; |
| 16 |
|