?AlkantarClanX12
| Current Path : /home/r/a/n/rankinh/saintgilleslesbains/wp-content/themes/pressville/ |
| Current File : /home/r/a/n/rankinh/saintgilleslesbains/wp-content/themes/pressville/single-lsvr_event.php |
<?php get_header('lsvr_event'); ?>
<?php // Breadcrumbs
get_template_part( 'template-parts/breadcrumbs' ); ?>
<?php // Main begin
get_template_part( 'template-parts/main-begin' ); ?>
<!-- POST SINGLE : begin -->
<div class="lsvr_event-post-page post-single lsvr_event-post-single">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- POST : begin -->
<article <?php post_class( 'post' ); ?>>
<div class="post__inner">
<!-- POST HEADER : begin -->
<header class="post__header">
<!-- POST TITLE : begin -->
<h1 class="post__title is-main-headline"><?php the_title(); ?></h1>
<!-- POST TITLE : end -->
<?php // Post meta
get_template_part( 'template-parts/single-post-meta' ); ?>
</header>
<!-- POST HEADER : end -->
<?php // Add custom code before thumbnail
do_action( 'lsvr_pressville_event_single_thumbnail_before' ); ?>
<?php // Thumbnail
get_template_part( 'template-parts/single-post-thumbnail' ); ?>
<?php // Add custom code before info
do_action( 'lsvr_pressville_event_single_info_before' ); ?>
<?php // Event info
get_template_part( 'template-parts/lsvr_event/single-info' ); ?>
<!-- Custom code-->
<?php $address = get_field('adresse');
if($address) : ?>
<div class = "post__info post-info-address">
<span class="post__info-item-icon post__info-item-icon--location" aria-hidden="true"></span>
<h3 class="post__info-item-title">Adresse</h3>
<p class="post__info-item-text">
<?php echo esc_html( $address );
$location = get_field('location');
if($location):
?>
<br><a href="<?php echo esc_attr( $location ); ?>" target="_blank">Afficher sur un plan</a>
<?php endif; ?>
</p>
</div>
<?php endif;
$phone = get_field('telephone');
if($phone) : ?>
<div class = "post__info post-info-phone">
<span class="post__info-item-icon post__info-item-icon--phone" aria-hidden="true"></span>
<h3 class="post__info-item-title">Téléphone</h3>
<p class="post__info-item-text">
<?php echo esc_html( $phone ); ?>
</p>
</div>
<?php endif;
$price = get_field('tarif');
if($price) : ?>
<div class = "post__info post-info-price">
<span class="post__info-item-icon post__info-item-icon--price" aria-hidden="true"></span>
<h3 class="post__info-item-title">Tarif</h3>
<p class="post__info-item-text">
<?php echo esc_html( $price ); ?> €
</p>
</div>
<?php endif; ?>
<!-- End Custom code-->
<?php // Add custom code before content
do_action( 'lsvr_pressville_event_single_content_before' ); ?>
<?php // Post content
get_template_part( 'template-parts/lsvr_event/single-post-content' ); ?>
<!-- Custom code-->
<?php $booking = get_field('reservation');
if($booking) : ?>
<div class = "post__info post-info-booking">
<span class="post__info-item-icon post__info-item-icon--booking" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" fill="#2d93c5"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M72 88a56 56 0 1 1 112 0A56 56 0 1 1 72 88zM64 245.7C54 256.9 48 271.8 48 288s6 31.1 16 42.3V245.7zm144.4-49.3C178.7 222.7 160 261.2 160 304c0 34.3 12 65.8 32 90.5V416c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V389.2C26.2 371.2 0 332.7 0 288c0-61.9 50.1-112 112-112h32c24 0 46.2 7.5 64.4 20.3zM448 416V394.5c20-24.7 32-56.2 32-90.5c0-42.8-18.7-81.3-48.4-107.7C449.8 183.5 472 176 496 176h32c61.9 0 112 50.1 112 112c0 44.7-26.2 83.2-64 101.2V416c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32zm8-328a56 56 0 1 1 112 0A56 56 0 1 1 456 88zM576 245.7v84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM320 32a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM240 304c0 16.2 6 31 16 42.3V261.7c-10 11.3-16 26.1-16 42.3zm144-42.3v84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM448 304c0 44.7-26.2 83.2-64 101.2V448c0 17.7-14.3 32-32 32H288c-17.7 0-32-14.3-32-32V405.2c-37.8-18-64-56.5-64-101.2c0-61.9 50.1-112 112-112h32c61.9 0 112 50.1 112 112z"/></svg>
</span>
<h3 class="post__info-item-title">Voulez-vous y participer ?</h3>
<p class="post__info-item-text">
<a class ="c-button" href="<?php echo esc_attr( $booking); ?>" target="_blank">Réservez</a>
</p>
</div>
<?php endif; ?>
<div class = "post__info post-info-social-share">
<span class="post__info-item-icon post__info-item-icon--social-share" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="#2d93c5"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M307 34.8c-11.5 5.1-19 16.6-19 29.2v64H176C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96h96v64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z"/></svg>
</span>
<h3 class="post__info-item-title">Partager sur</h3>
<p class="post__info-item-text">
<?php echo do_shortcode('[Sassy_Social_Share]') ?>
</p>
</div>
<!-- End Custom code-->
<?php // Add custom code before map
do_action( 'lsvr_pressville_event_single_map_before' ); ?>
<?php // Map
get_template_part( 'template-parts/lsvr_event/single-map' ); ?>
<?php // Add custom code before upcoming occurrences
do_action( 'lsvr_pressville_event_single_upcoming_occurrences_before' ); ?>
<?php // Upcoming occurrences
get_template_part( 'template-parts/lsvr_event/single-upcoming-occurrences' ); ?>
<?php // Add custom code before footer
do_action( 'lsvr_pressville_event_single_footer_before' ); ?>
<?php // Post footer
get_template_part( 'template-parts/single-post-footer' ); ?>
<?php // Add custom code at post bottom
do_action( 'lsvr_pressville_event_single_bottom' ); ?>
</div>
</article>
<!-- POST : end -->
<?php endwhile; endif; ?>
<?php
if (is_user_logged_in()) { ?>
<div class="annonceur">
<h2>Vous souhaitez publier vos évènements sur ce site</h2>
<a href="/wp-admin/post-new.php?post_type=lsvr_event">Annoncer un évènement</a>
</div>
<?php } else {?>
<div class="annonceur">
<h2>Vous souhaitez publier vos évènements sur ce site</h2>
<a href="/connexion">SE CONNECTER / S'INSCRIRE</a>
</div><?php } ?>
</div>
<!-- POST SINGLE : end -->
<?php // Main end
get_template_part( 'template-parts/main-end' ); ?>
<?php get_footer(); ?>