Files

61 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Template part: Clients section
*
* @package bitwms-child
*/
$clients = [
[
'name' => 'Клиент А',
'logo' => '',
],
[
'name' => 'Клиент Б',
'logo' => '',
],
[
'name' => 'Клиент В',
'logo' => '',
],
[
'name' => 'Клиент Г',
'logo' => '',
],
[
'name' => 'Клиент Д',
'logo' => '',
],
[
'name' => 'Клиент Е',
'logo' => '',
],
];
?>
<section class="clients-section">
<div class="container">
<h2>Нам доверяют</h2>
<div class="clients-section__grid">
<?php foreach ( $clients as $client ) : ?>
<div class="clients-section__item">
<?php if ( ! empty( $client['logo'] ) ) : ?>
<img
src="<?php echo esc_url( $client['logo'] ); ?>"
alt="<?php echo esc_attr( $client['name'] ); ?>"
loading="lazy"
>
<?php else : ?>
<span class="clients-section__placeholder">
<?php echo esc_html( $client['name'] ); ?>
</span>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div><!-- .clients-section__grid -->
</div><!-- .container -->
</section><!-- .clients-section -->