| 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/single/ |
Upload File : |
<?php
$id = get_the_id();
$vars = $wp_query->query_vars;
$thb_ajax = array_key_exists('thb_ajax', $vars) ? $vars['thb_ajax'] : false;
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id, 'full');
$post_image = get_post_meta($id, 'post-top-image', true) ? get_post_meta($id, 'post-top-image', true) : $image_url[0];
?>
<?php
$fixed = ot_get_option('article_fixed_sidebar', 'on');
$fullwidth = ot_get_option('article_fullwidth', 'off');
$dropcap = ot_get_option('article_dropcap', 'on');
$adv_postend = ot_get_option('adv_postend');
$adv_postend_ajax = ot_get_option('adv_postend_ajax');
?>
<div class="post-detail-row style3">
<article itemscope itemtype="http://schema.org/Article" <?php post_class('post post-detail'); ?> id="post-<?php the_ID(); ?>" data-id="<?php the_ID(); ?>" data-url="<?php the_permalink(); ?>">
<div class="post-header">
<div class="parallax_bg"
data-bottom-top="transform: translate3d(0px, -20%, 0px);"
data-top-bottom="transform: translate3d(0px, 20%, 0px);"
style="background-image: url(<?php echo esc_html($post_image); ?>);"></div>
<header class="post-title entry-header">
<div class="row">
<div class="small-12 large-push-1 large-10 columns">
<?php do_action('thb_categories'); ?>
<?php if ( !$thb_ajax ) { ?>
<?php the_title('<h1 class="entry-title" itemprop="headline">', '</h1>'); ?>
<?php } else { ?>
<?php the_title('<h1 class="entry-title" itemprop="headline"><a href="'.get_permalink().'" title="'.the_title_attribute("echo=0").'">', '</a></h1>'); ?>
<?php } ?>
<aside class="post-author">
<time class="time" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" itemprop="datePublished" content="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo thb_human_time_diff_enhanced(); ?></time> <em><?php _e('by', 'thevoux'); ?></em> <span itemprop="author"><?php the_author_posts_link(); ?></span>
</aside>
</div>
</div>
</header>
</div>
<div class="row align-center">
<div class="small-12 large-10 columns">
<?php do_action('thb_social_article_detail', false, true, 'show-for-medium'); ?>
<div class="post-content-container">
<?php
// The following determines what the post format is and shows the correct file accordingly
$format = get_post_format();
if ($format) {
set_query_var( 'thb_image_size', 'thevoux-single-2x' );
get_template_part( 'inc/templates/postbits/'.$format );
}
?>
<div class="post-content entry-content cf"<?php if ($dropcap== 'on') { ?> data-first="<?php echo thb_FirstLetter(); ?>"<?php } ?> itemprop="articleBody">
<?php echo the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'thevoux' ),
'after' => '</div>',
) );
?>
<?php do_action('thb_post_review'); ?>
<?php get_template_part( 'inc/templates/postbits/tags' ); ?>
<?php get_template_part( 'inc/templates/postbits/author' ); ?>
</div>
</div>
<?php do_action('thb_social_article_detail', false, false, 'hide-for-medium'); ?>
</div>
</div>
<?php do_action('thb_PostMeta'); ?>
</article>
<?php comments_template('', true ); ?>
<?php if (!$thb_ajax && ot_get_option('related_posts', 'on') !== 'off') { ?>
<?php get_template_part( 'inc/templates/postbits/post-related' ); ?>
<?php } ?>
<?php
if ( !$thb_ajax && $adv_postend) {
echo '<aside class="ad_container_bottom">'.do_shortcode(wp_kses_post($adv_postend)).'</aside>';
} else if ( $thb_ajax && $adv_postend_ajax) {
echo '<aside class="ad_container_bottom">'.do_shortcode(wp_kses_post($adv_postend_ajax)).'</aside>';
}
?>
</div>