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

32 lines
No EOL
1.3 KiB
PHP

<?php if(!empty($quotes)) : ?>
<div class="quotes">
<?php foreach($quotes as $q) : ?>
<div class="quotes__item quote">
<?php if(!empty($q['image'])) : ?>
<div class="quote__image"><img src="<?php echo $q['image'] ?>" alt="<?php echo (!empty($q['author']) ? $q['author'] : ' '); ?>"></div>
<?php endif; ?>
<div class="quote__info">
<?php if(!empty($q['quote'])) : ?>
<div class="quote__text"><?php echo $q['quote'] ?></div>
<?php endif; ?>
<?php if(!empty($q['author'])) : ?>
<div class="quote__author"><?php echo $q['author'] ?></div>
<?php endif; ?>
</div>
<?php if(!empty($q['text'])) : ?>
<div class="quote__description-toggle"></div>
<div class="quote__description">
<div class="quote__description-inner description">
<?php echo $q['text'] ?>
</div>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php
set_query_var('quotes', NULL);
?>