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/plugins/ova-collections/templates/single-artist.php
<?php if ( !defined( 'ABSPATH' ) ) exit();
	get_header( );
	global $post;
	$collection_type = isset( $_GET['collection_type'] ) ? $_GET['collection_type'] : OVACOLL_Settings::archive_collection_type();
	$related_heading = OVACOLL_Settings::single_artist_related_heading();
?>

<?php if ( have_posts() ) : while( have_posts() ) : the_post();
	$slug_artist 	= $post->post_name;
	$id 			= get_the_id();
	$artist_skill 	= get_post_meta( $id, 'artist_skill', true ) ? $artist_skill = get_post_meta( $id, 'artist_skill', true ) : '';
	$artist_phone 	= get_post_meta( $id, 'artist_phone', true ) ? $artist_phone = get_post_meta( $id, 'artist_phone', true ) : '';
	$artist_email 	= get_post_meta( $id, 'artist_email', true ) ? $artist_email = get_post_meta( $id, 'artist_email', true ) : '';
	$artist_page 	= get_post_meta( $id, 'artist_page', true ) ? get_post_meta( $id, 'artist_page', true ) : 'default';
	$collections 	= apply_filters( 'OVACOLL_collection_get', $slug_artist );
?>
	
	<div class="row_site">
		<div class="container_site">

			<div class="single_artist">
				<div class="intro">
					<div class="image"><?php the_post_thumbnail( '' ); ?></div>
					<div class="desc">
						<h2 class="name second_font">
							<?php echo get_the_title(); ?>
						</h2>
						<?php if ( $artist_skill != '' ) { ?>
							<div class="skill">
								<?php echo esc_html( $artist_skill ); ?>
							</div>
						<?php } ?>
						<?php if ( $artist_phone != '' ) { ?>
							<a class="contact phone" href="tel:<?php echo preg_replace('/\s+/', '', $artist_phone);  ?>">
								<?php echo esc_html( $artist_phone ); ?>
							</a>
						<?php } ?>
						<?php if ($artist_email != '') { ?>
							<a class="contact email" href="mailto:<?php echo esc_html($artist_email); ?>">
								<?php echo esc_html( $artist_email ); ?>
							</a>
						<?php } ?>
						<div class="content">
							<?php the_content(); ?>	
						</div>
					</div>
				</div>

				<?php if ( !empty( $artist_page ) && $artist_page != 'default' && get_post_status( $artist_page ) == 'publish' ): ?>
				<div class="section_element_artist">
					<div class="container">
						<?php echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $artist_page ); ?>
					</div>
				</div>
				<?php endif; ?>

				<?php if ( $collections->have_posts() ) { ?>
					<div class="work">
						<?php if( !empty( $related_heading ) ) { ?>
							<h2 class="related-title">
								<?php echo esc_html($related_heading);  ?>	
							</h2>
						<?php } ?>
						<div class="content_archive_coll <?php echo esc_attr( $collection_type );?>">
							<?php while ( $collections->have_posts() ) : $collections->the_post(); 
								ovacoll_get_template( 'parts/item-collection.php' );
							endwhile; wp_reset_postdata(); ?>
						</div>
					</div>
				<?php } ?>

				<?php
					if ( comments_open() || get_comments_number() ) {
						comments_template();
					}
				?>
			</div>
			
		</div>
	</div>

<?php endwhile; endif; wp_reset_postdata();?>

<?php get_footer( );