ldc-groupe/content/themes/ldc/page-engagements.php
Vincent BRIDIER 134507db43 - Backup DEV
- Add DotEnv
- Fix Bato
- Etc..
2020-05-04 15:59:02 +02:00

109 lines
4.6 KiB
PHP

<?php
/*
Template Name: Page Engagements
*/
?>
<?php
global $tp;
global $mob;
get_header();
$manifest = get_field('manifest');
$ecosystem = get_field('ecosystem');
$governance = get_field('governance');
$ethics = get_field('ethics');
?>
<div class="page-engagements">
<?php get_template_part('partials/hero'); ?>
<?php get_template_part('partials/breadcrumbs'); ?>
<?php if(!empty($manifest)) : ?>
<div class="manifest fw fw-container" id="engagements_1">
<div class="manifest__wrapper wrapper">
<?php if(!empty($manifest['title']) || !empty($manifest['subtitle']['text'])) : ?>
<h2 class="manifest__title textblock__title title">
<?php if(!empty($manifest['title'])) : ?>
<span class="title-text"><?php echo $manifest['title']; ?></span>
<?php endif; ?>
<?php if(!empty($manifest['subtitle'])) : ?>
<span class="manifest__subtitle subtitle-text textblock__subtitle subtitle subtitle_paint"><?php echo $manifest['subtitle']; ?></span>
<?php endif; ?>
</h2>
<?php endif; ?>
<div class="manifest__content textblock__container">
<div class="manifest__info">
<?php if(!empty($manifest['text'])) : ?>
<div class="manifest__text description"><?php echo $manifest['text']; ?></div>
<?php endif; ?>
<?php if(!empty($manifest['buttons'])) : ?>
<?php foreach ($manifest['buttons'] as $b) : ?>
<?php if(!empty($b['file'])) : ?>
<a class="manifest__btn btn" href="<?php echo $b['file']; ?>" title="<?php echo $b['title']; ?>" download><?php echo $b['title']; ?>
<i class="btn__icon btn__icon_dl"><svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"><defs><style>.cls-1{fill:#fff;}</style></defs><title>telecharger</title><path class="cls-1" d="M22,19c0-.75-.14-1.75-.35-4a.85.85,0,0,0-.76-.76A.84.84,0,0,0,20,15c-.22,2.26-.35,3.26-.35,4v.4a.05.05,0,0,1,0,0l-.06.06s0,0-.11,0h-.85l-3.39,0-4,0h-.28l-4,0-3.39,0H2.58c-.11,0-.07,0-.11,0s-.05,0-.06-.06a.05.05,0,0,1,0,0V19c0-.71-.13-1.75-.35-4a.84.84,0,0,0-.91-.76A.85.85,0,0,0,.36,15C.15,17.24,0,18.24,0,19v.44a2.35,2.35,0,0,0,.14.79,2.46,2.46,0,0,0,1,1.27A2.61,2.61,0,0,0,2.58,22h.85l3.39,0,4,0h.26l4,0,3.39,0h.85a2.61,2.61,0,0,0,1.49-.46,2.46,2.46,0,0,0,.95-1.27,2.35,2.35,0,0,0,.14-.79Z"/><path class="cls-1" d="M12.09,16h0l4.68-5.27a.87.87,0,0,0,0-1.16,1,1,0,0,0-1.31-.1l-2.88,2.37c.09-1,.09-1.31.15-2.33A43.72,43.72,0,0,0,11.82.68a.79.79,0,0,0-.7-.67.8.8,0,0,0-.87.67,40.51,40.51,0,0,0-.91,8.81c0,1,.06,1.32.15,2.35l-.15-.13L8,10.6c-.45-.39-1-.72-1.36-1.15l0,0a1,1,0,0,0-1.31,0,.87.87,0,0,0,.06,1.26A16.23,16.23,0,0,1,6.49,12l1.16,1.33L10,16c0,.05.1.11.16.16A1.43,1.43,0,0,0,12.09,16Z"/></svg></i>
</a>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
<?php if(!empty($manifest['quote'])) : ?>
<div class="manifest__info">
<div class="manifest__quote quote__text"><?php echo $manifest['quote']; ?></div>
<?php if(!empty($manifest['author'])) : ?>
<div class="manifest__author quote__author"><?php echo $manifest['author']; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="engagements-page-ecosystem-block" id="engagements_2">
<?php
set_query_var('text_block', $ecosystem['text_block']);
get_template_part('partials/text-block');
?>
</div>
<div id="engagements_3">
<?php get_template_part('partials/engagements'); ?>
</div>
<div class="extra-financiere" id="engagements_4">
<?php
set_query_var('text_block', $governance['text_block']);
get_template_part('partials/text-block');
?>
</div>
<div class="ethics" id="engagements_5">
<?php
set_query_var('text_block', $ethics['text_block']);
get_template_part('partials/text-block');
?>
</div>
<?php
if($mob) {
get_template_part('partials/documents', 'mobile');
} else {
get_template_part('partials/documents');
}
?>
</div>
<div class="gray-bg">
<?php
set_query_var('no_text', 1);
get_template_part('partials/engagements');
?>
</div>
<?php get_footer(); ?>