| 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/thevoux-wp/inc/templates/postbits/ |
Upload File : |
<?php
$logo = ot_get_option('logo', Thb_Theme_Admin::$thb_theme_directory_uri . 'assets/img/logo.png');
$post_gallery_photos = get_post_meta($id, 'post-gallery-photos', true);
$adv_gallery_header = ot_get_option('adv_gallery_header');
if ($post_gallery_photos) {
$post_gallery_photos_arr = explode(',', $post_gallery_photos);
$count = sizeof($post_gallery_photos_arr);
}
$i = 1;
?>
<div id="post-gallery-<?php the_ID(); ?>" class="mfp-hide">
<?php if ($post_gallery_photos) { foreach ($post_gallery_photos_arr as $photo_id) { ?>
<div class="post-gallery-content">
<div class="lightbox-header">
<div class="row full-width-row no-padding">
<div class="small-6 medium-2 columns">
<a href="<?php echo home_url(); ?>" class="logolink" title="<?php bloginfo('name'); ?>">
<img src="<?php echo esc_url($logo); ?>" class="logoimg" alt="<?php bloginfo('name'); ?>"/>
</a>
</div>
<div class="small-6 medium-8 columns show-for-medium center-column">
<?php echo '<aside class="ad_container_gallery_header">'.do_shortcode(wp_kses_post($adv_gallery_header)).'</aside>'; ?>
</div>
<div class="small-6 medium-2 columns close-column">
<button title="<?php _e('Close (Esc)', 'thevoux'); ?>" class="lightbox-close">× <?php _e('Close', 'thevoux'); ?></button>
</div>
</div>
</div>
<div class="row full-width-row no-padding">
<div class="small-12 medium-6 large-9 columns image">
<?php echo wp_get_attachment_image( $photo_id, 'full' ); ?>
<a href="#" class="arrow prev"><i class="fa fa-angle-left"></i></a>
<a href="#" class="arrow next"><i class="fa fa-angle-right"></i></a>
</div>
<div class="small-12 medium-6 large-3 columns image-text">
<aside class="meta">
<a href="#" class="arrow prev"><i class="fa fa-angle-left"></i></a>
<a href="#" class="arrow next"><i class="fa fa-angle-right"></i></a>
<span><?php echo '<em>'.esc_attr($i) .'</em> '. __('of', 'thevoux') .' '. esc_attr($count); ?></span>
</aside>
<h5><?php the_title(); ?></h5>
<?php if (get_post($photo_id)->post_title) { ?>
<h6><?php echo get_post($photo_id)->post_title; ?></h6>
<?php } ?>
<p><?php echo get_post($photo_id)->post_excerpt; ?></p>
<?php if (get_post($photo_id)->post_content) { ?>
<small><?php _e('Source:', 'thevoux'); ?> <?php echo get_post($photo_id)->post_content; ?></small>
<?php } ?>
</div>
</div>
</div>
<?php $i++; } }?>
</div>