HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/www/wp-content/plugins/essential-blocks/views/post-partials/post-thumbnail.php
<?php

$thumbnailHTML = '';

if ( $showThumbnail ) {
    $thumbnailSize = ! empty( $thumbnailSize ) ? $thumbnailSize : 'full';
    $thumbnail     = wp_get_attachment_image( get_post_thumbnail_id( $result->ID ), $thumbnailSize );
    if ( ! empty( $thumbnail ) ) {
        $thumbnailHTML .= sprintf(
            '<div class="ebpg-entry-media">
                <div class="ebpg-entry-thumbnail">
                    %1$s
                    %2$s
                </div>
            </div>',
            $wrapper_link_html,
            $thumbnail
        );
    } else {
        if ( $showFallbackImg && ! empty( $fallbackImgUrl ) ) {
            $thumbnailHTML .= '<div class="ebpg-entry-media">
                <div class="ebpg-entry-thumbnail">
                    <img src="' . $fallbackImgUrl . '" alt="' . ( ! empty( $fallbackImgAlt ) ? $fallbackImgAlt : 'No Thumbnail Found' ) . '">
                </div>
            </div>';
        } else {
            $thumbnailHTML .= '<div class="ebpg-entry-media">
            <div class="ebpg-entry-thumbnail">
                <img src="' . ESSENTIAL_BLOCKS_PLACEHOLDER_IMAGE . '" alt="No Thumbnail Found">
            </div>
        </div>';
        }
    }
}

return $thumbnailHTML;