| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/www/wp-content/themes/trackstore/framework/modules/blog/templates/parts/ |
Upload File : |
<?php
$image_size = isset( $image_size ) ? $image_size : 'full';
$image_meta = get_post_meta( get_the_ID(), 'eltd_blog_list_featured_image_meta', true );
$has_featured = ! empty( $image_meta ) || has_post_thumbnail();
$blog_list_image_id = ! empty( $image_meta ) && trackstore_elated_blog_item_has_link() ? trackstore_elated_get_attachment_id_from_url( $image_meta ) : '';
?>
<?php if ( $has_featured ) { ?>
<div class="eltd-post-image">
<?php if ( trackstore_elated_blog_item_has_link() ) { ?>
<a itemprop="url" href="<?php echo get_the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php } ?>
<?php if ( ! empty( $blog_list_image_id ) ) {
echo wp_get_attachment_image( $blog_list_image_id, $image_size );
} else {
the_post_thumbnail( $image_size );
} ?>
<?php if ( trackstore_elated_blog_item_has_link() ) { ?>
</a>
<?php } ?>
<?php do_action('trackstore_elated_action_blog_inside_image_tag')?>
</div>
<?php } ?>