| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/themes/novablog/post-template/ |
Upload File : |
<?php
/**
* Grid post template
*/
?>
<div class="post_content">
<div class="row">
<div class="col-sm-6 col-md-6 col-sm-push-6 col-md-push-6">
<?php if(has_post_thumbnail()) { ?>
<div class="thumb-container">
<?php
if(has_post_format('video')){
$embed = get_post_meta(get_the_ID(), 'novablog_video_embed', true);
$vimeo = strpos($embed, "vimeo");
$youtube = strpos($embed, "youtu");
if($youtube !== false){
$video_id = str_replace( 'http://', '', $embed );
$video_id = str_replace( 'https://', '', $video_id );
$video_id = str_replace( 'www.youtube.com/watch?v=', '', $video_id );
$video_id = str_replace( 'youtube.com/watch?v=', '', $video_id );
$video_id = str_replace( 'youtu.be/', '', $video_id );
$video_id = str_replace( '&feature=channel', '', $video_id );
$link = '//www.youtube.com/embed/'.esc_attr($video_id);
}
if($vimeo !== false){
//Get ID from video url
$video_id = str_replace( 'http://vimeo.com/', '', $embed );
$video_id = str_replace( 'http://www.vimeo.com/', '', $video_id );
$video_id = str_replace( 'https://vimeo.com/', '', $video_id );
$link = '//player.vimeo.com/video/'.esc_attr($video_id);
}
}
$img_url = wp_get_attachment_url( get_post_thumbnail_id());
$img_width = novablog_getVariable('blog_list_image_width') ? novablog_getVariable('blog_list_image_width') : 560;
$img_height = novablog_getVariable('blog_list_image_height') ? novablog_getVariable('blog_list_image_height') : 300;
$img = aq_resize( $img_url, $img_width, $img_height, true, true, true );
?>
<figure class="featured-thumbnail thumbnail large">
<?php novablog_pinterest_share(); ?>
<?php if(has_post_format('video')){ ?>
<a class="popup-youtube" href="<?php echo esc_attr($link); ?>" title="<?php esc_attr(the_title()); ?>">
<?php if(has_post_format('video')){
echo '<div class="cover-video"></div>';
} ?>
<img src="<?php echo esc_url($img); ?>" width="<?php echo esc_attr($img_width); ?>" height="<?php echo esc_attr($img_height); ?>" alt="<?php esc_attr(the_title());?>" /></a>
<?php }else{ ?>
<a href="<?php esc_url(the_permalink()); ?>" title="<?php esc_attr(the_title()); ?>">
<img src="<?php echo esc_url($img); ?>" width="<?php echo esc_attr($img_width); ?>" height="<?php echo esc_attr($img_height); ?>" alt="<?php esc_attr(the_title());?>" /></a>
<?php } ?>
</figure></div>
<?php } ?>
</div>
<div class="col-sm-6 col-md-6 col-sm-pull-6 col-md-pull-6">
<header class="post-header">
<?php novablog_post_category('',' '); ?>
<?php novablog_post_meta(array('author', 'date', 'comments', 'reading_time'), false, 'meta-space-top'); ?>
<h2 class="list-post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="isopad_grid">
<?php $post_excerpt = novablog_getVariable('post_excerpt'); ?>
<?php if ($post_excerpt=='yes') { ?>
<div class="excerpt">
<?php apply_filters('the_content', ''); ?>
<?php the_excerpt(); ?>
</div>
<?php } ?>
<?php $readmore_button = novablog_getVariable( 'readmore_button' );
if ($readmore_button=='yes') { ?>
<div class="viewpost-button"><a class="button" href="<?php esc_url(the_permalink()) ?>"><span><?php echo theme_locals("continue_reading"); ?></span></a></div>
<div class="clear"></div>
<?php } ?>
</div>
</header>
</div>
</div>
</div>