![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/walla3t.corals.io/wp-content/themes/apper/partials/single/media/ |
<?php /** * Displays the post single thumbmnail * * @package Apper WordPress theme */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } // Return if there isn't a thumbnail defined if ( ! has_post_thumbnail() ) { return; } // Image args $img_args = array( 'alt' => get_the_title(), ); if ( acmthemes_get_schema_markup( 'image' ) ) { $img_args['itemprop'] = 'image'; } // Caption $caption = get_the_post_thumbnail_caption(); ?> <div class="thumbnail"> <?php // Display post thumbnail the_post_thumbnail( 'apper_blog_featured', $img_args ); // Caption if ( $caption ) { ?> <div class="thumbnail-caption"> <?php echo esc_attr( $caption ); ?> </div> <?php } ?> </div><!-- .thumbnail -->