| 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/ |
Upload File : |
<div class="grid js-masonry ajax-container row zoom-gallery">
<?php
if (have_posts()) :
while (have_posts()) : the_post();
?>
<div id="post-<?php the_ID(); ?>" class="post-list_h ajax-post-wrapper block <?php echo esc_attr($cols); ?>" >
<?php
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,'full');
$img_width = novablog_getVariable('gallery_image_width') ? novablog_getVariable('gallery_image_width') : 374;
$img_height = novablog_getVariable('gallery_image_height') ? novablog_getVariable('gallery_image_height') : 320;
$img = aq_resize( $img_url, $img_width, $img_height, true, true, true );
?>
<div class="post_content grid-block">
<?php if(has_post_thumbnail()) { ?>
<div class="thumb-container">
<figure class="featured-thumbnail thumbnail large">
<?php
$novablog_gal_url = get_post_meta( get_the_ID(), 'novablog_gallery_url', true );
$novablog_url_separate_window = get_post_meta( get_the_ID(), 'novablog_url_separate_window', true );
if ($novablog_url_separate_window != esc_html__('yes', 'novablog')) { ?>
<a class="gallery-ajax-popup archive-button image-wrap zoomer" data-source="<?php echo esc_url($img_url); ?>" href="<?php echo esc_url($img_url); ?>" title="<?php esc_attr(the_title()); ?>">
<?php }else{ ?>
<a class="archive-button image-wrap" href="<?php echo esc_url($novablog_gal_url); ?>" target="_blank" title="<?php esc_attr(the_title()); ?>">
<?php } ?>
<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());?>" >
<span class="zoom-icon"></span>
</a></figure>
<header class="post-header">
<?php if (novablog_getVariable( 'gallery_title' )=='yes' || novablog_getVariable( 'gallery_category' )=='yes' || novablog_getVariable( 'gallery_description' )=='yes') { ?>
<div class="meta-space-top">
<?php if (novablog_getVariable( 'gallery_category' )=='yes') { ?>
<span class="post_category">
<?php
$terms = wp_get_object_terms($post->ID, 'gallery_categories');
if(is_array($terms)) :
if(isset($terms[0])) : ?><?php echo esc_attr($terms[0]->name); ?>
<?php endif;endif; ?>
</span>
<?php } ?>
</div>
<?php if (novablog_getVariable( 'gallery_title' )=='yes') { ?>
<a href="<?php esc_url(the_permalink()); ?>" title="<?php esc_attr(the_title()); ?>"><h3 class="gall-title"><?php esc_attr(the_title()); ?></h3></a>
<?php } ?>
<?php if (novablog_getVariable('post_date')=='yes' or novablog_getVariable('post_date')=='') {novablog_post_meta(array('date'), false, 'meta-space-top'); } ?>
<?php if (novablog_getVariable( 'gallery_description' )=='yes') {
$gallery_excerpt = novablog_getVariable( 'gallery_excerpt_count' );
$content = get_the_content();
if($gallery_excerpt != 0) {
?>
<div class="post_content">
<?php echo novablog_limit_text($content,$gallery_excerpt); ?>
<div class="clear"></div>
</div>
<?php }} ?>
<?php } ?>
</header></div>
<?php } ?>
</div>
</div>
<?php
endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php else: ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
<?php get_template_part('post-template/post-nav'); ?>