| Server IP : 91.134.83.25 / Your IP : 216.73.217.46 Web Server : Apache System : Linux plesk.serveurapc.fr 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64 User : marrasse ( 10057) PHP Version : 8.2.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/as-cp.fr/wpascp/wp-content/themes/agencepointcom/ |
Upload File : |
<?php/*
Template Name: Page prestation
*/
?>
<?php get_header(); ?>
<?php if(have_rows('bandeau')): ?>
<div class = "bandeau-prestation">
<?php while(have_rows('bandeau')): the_row() ?>
<?php
$bg = get_sub_field('fond')
? get_sub_field('fond')
: get_stylesheet_directory_uri().'/img/bg-bandeau.jpg';
$titre = get_sub_field('titre')
? get_sub_field('titre')
: get_the_title()
?>
<div class = "inner-bandeau" style="background-image: url('<?php echo $bg ?>')">
<img src = "<?php echo get_stylesheet_directory_uri() ?>/img/sep-bandeau.png"/>
<p class = "bandeau-title"><?php echo $titre ?></p>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<div class = "content-prestations size-site">
<?php if(have_rows('contenu')): ?>
<?php $i = 0 ?>
<?php while(have_rows('contenu')): the_row()?>
<?php $class = $i % 2 == 1
? 'revert'
: '';
$text = get_sub_field('texte');
$image = get_sub_field('image');
?>
<div class = "content-presation <?php echo $class ?>">
<div class = "inner-prestations">
<div class = "text-side content-text">
<?php echo $text ?>
</div>
<div class = "img-side">
<?php echo acf_to_img($image, 'prestations'); ?>
</div>
</div>
</div>
<?php $i++ ?>
<?php endwhile; ?>
<?php endif; ?>
<?php if(have_rows('liste')): ?>
<div class = "content-liste">
<?php while(have_rows('liste')): the_row(); ?>
<?php $icon = get_sub_field('icone');
$texte_liste = get_sub_field('texte');
?>
<div class = "liste">
<div class = 'content-icon'>
<?php echo $icon ?>
</div>
<div class = "content-text">
<?php echo $texte_liste ?>
</div>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<?php if(get_field('texte_bas_de_page')): ?>
<div class = "presation-basdepage">
<?php the_field('texte_bas_de_page'); ?>
</div>
<?php endif ?>
</div>
<?php get_footer(); ?>