HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/refonte2023/wordpress/wp-content/themes/gimont/template-parts/post/content-post.php
<?php $sticky_class = is_sticky()?'sticky':''; ?>

<article id="post-<?php the_ID(); ?>" <?php post_class('post-wrap '. $sticky_class); ?>  >
		
		<?php if( ( has_post_format('audio') || has_post_format('gallery') || has_post_format('video' ) || has_post_thumbnail() ) && gimont_post_show_media() == 'yes' ): ?>	
			<div class="post-media">
				<?php 
					if( has_post_format('audio') ){

					 	get_template_part( 'template-parts/parts/audio' );

					}elseif(has_post_format('gallery')){

						get_template_part( 'template-parts/parts/gallery' );

					}elseif(has_post_format('video')){

						get_template_part( 'template-parts/parts/video' );

					}elseif(has_post_thumbnail()){

						get_template_part( 'template-parts/parts/thumbnail' );

			        }
				?>
			</div>
		<?php endif; ?>

		<?php if ( !is_singular('elementor_library') ) { ?>
			<div class="post-meta">
				<?php get_template_part( 'template-parts/parts/meta' ); ?>
			</div>
		<?php } ?>
		
		<?php if( gimont_post_show_title() == 'yes' ){
			get_template_part( 'template-parts/parts/title' );
		} ?>

		<div class="post-content">
			<?php get_template_part( 'template-parts/parts/content' ); ?>
		</div>

		<?php if ( !is_singular('elementor_library') ) { ?>
			<div class="post-tags-and-share">
		        <?php if(has_tag() && gimont_post_show_tag() == 'yes' ){ ?>
					<div class="post-tags">
						<?php get_template_part( 'template-parts/parts/tags' ); ?>
					</div>
				<?php } ?>

				<?php if( gimont_post_show_share_social_icon() == 'yes' ){ ?>
			        <?php apply_filters( 'ova_share_social', get_the_permalink(), get_the_title()  ); ?>
		        <?php } ?>
			</div>
		<?php } ?>

	    <?php if( gimont_post_show_next_prev_post() == 'yes' && !is_singular('elementor_library') ){ ?>
	        <div class="ova-next-pre-post">
				<?php
					$prev_post = get_previous_post();
					$next_post = get_next_post();
				?>
				
				<?php if($prev_post) { ?>

						<a class="pre" href="<?php echo esc_attr(get_permalink($prev_post->ID)); ?>">
							<span class="num-pre">
								<?php echo esc_html(get_the_title($prev_post->ID)); ?>		
							</span>
						</a>

					<?php } else { ?>
						   <div class="none-pre"></div>
	                    <?php
					}
				?>		
				
				<?php if($next_post) { ?>
					<a class="next" href="<?php echo esc_attr(get_permalink($next_post->ID)); ?> ">
						<span class="num-next">
							<?php echo esc_html(get_the_title($next_post->ID)); ?>
						</span>
					</a>
				<?php } ?>
			</div>
		<?php } ?>
		
</article>