ldc-groupe/content/themes/ldc/partials/engagements.php
Vincent BRIDIER 73e7688279 - Retours 1
2020-06-23 12:23:23 +02:00

29 lines
1.4 KiB
PHP

<?php
global $tp;
if(empty($engagements)) {
$engagements = get_field('engagements');
}
?>
<div class="engagements fw fw-container">
<div class="engagements__wrapper wrapper">
<?php if(empty($no_text)) : ?>
<?php if(!empty($engagements['title'])) : ?>
<h2 class="engagements__title title"><span class="title-text"><?php echo $engagements['title']; ?></span></h2>
<?php endif; ?>
<div class="engagements__wrapper">
<?php if(!empty($engagements['subtitle'])) : ?>
<h3 class="engagements__sub subtitle"><?php echo $engagements['subtitle']; ?></h3>
<?php endif; ?>
<?php if(!empty($engagements['text'])) : ?>
<div class="engagements__description description"><?php echo $engagements['text']; ?></div>
<?php endif; ?>
<?php if(!empty($engagements['button']['url'])) : ?>
<a class="engagements__btn btn" href="<?php echo $engagements['button']['url']; ?>" title="<?php echo $engagements['button']['title']; ?> "><?php echo $engagements['button']['title']; ?> <i class="btn__icon btn__icon_arrow-right"></i></a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php get_template_part('partials/engagements-list'); ?>
</div>
</div>