File: /var/www/html/wpmuhibbah_err/wp-content/plugins/give/templates/single-give-form/featured-image.php
<?php
/**
* Single Form Featured Image
*
* Displays the featured image for the single donation form - Override this template by copying it to yourtheme/give/single-give-form/featured-image.php
*
* @package Give/Templates
* @copyright Copyright (c) 2016, GiveWP
* @license https://opensource.org/licenses/gpl-license GNU Public License
* @since 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
global $post;
/**
* Fires in single form template, before the form featured image.
*
* Allows you to add elements before the image.
*
* @since 1.0
*/
do_action( 'give_pre_featured_thumbnail' );
?>
<div class="images">
<?php
// Featured Thumbnail
if ( has_post_thumbnail() ) {
$image_size = give_get_option( 'featured_image_size' );
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_give_form_large_thumbnail_size', ( ! empty( $image_size ) ? $image_size : 'large' ) ) );
echo apply_filters( 'single_give_form_image_html', $image );
} else {
// Placeholder Image
echo apply_filters( 'single_give_form_image_html', sprintf( '<img src="%s" alt="%s" />', give_get_placeholder_img_src(), esc_attr__( 'Placeholder', 'give' ) ), $post->ID );
}
?>
</div>
<?php
/**
* Fires in single form template, after the form featured image.
*
* Allows you to add elements after the image.
*
* @since 1.0
*/
do_action( 'give_post_featured_thumbnail' );
?>