| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/colleary/public_html/wp-content/themes/realhomes/post-formats/ |
Upload File : |
<?php
global $post;
$embed_code = get_post_meta($post->ID, 'REAL_HOMES_embed_code', true);
if(!empty($embed_code))
{
?>
<div class="post-video">
<span class="format-icon video"></span>
<div class="video-wrapper <?php if(is_page_template('template-home.php')){ echo 'on-home-page'; } ?>">
<?php echo stripslashes(htmlspecialchars_decode($embed_code)); ?>
</div>
</div>
<?php
}
elseif(has_post_thumbnail())
{
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_url($image_id);
?>
<div class="post-video">
<span class="format-icon video"></span>
<a href="<?php echo esc_url( $image_url ); ?>" class="pretty-photo" title="<?php the_title(); ?>">
<?php
if( is_page_template( 'template-home.php' )){
the_post_thumbnail('gallery-two-column-image');
}else{
the_post_thumbnail('post-featured-image');
}
?>
</a>
</div>
<?php
}
?>