
<div class="rse_flex_wrap">
    <?php foreach ($flexContents as $content): ?>
        <div class="rse_flex rse_flex--<?php echo $content['acf_fc_layout']; ?>">
            <?php if ($content['acf_fc_layout'] == 'text'): ?>
                <?php echo $content['text']; ?>
            <?php endif; ?>

            <?php if ($content['acf_fc_layout'] == 'intro'): ?>
                <?php echo $content['text']; ?>
            <?php endif; ?>

            <?php if ($content['acf_fc_layout'] == 'quote'): ?>
                <?php svg('quote') ?>
                <div class="firstLetter">
                    <span class="firstLetter_letter"><?php echo getFirstLetter($content['text']); ?></span>
                    <div class="firstLetter_content"><?php echo $content['text']; ?></div>
                </div>
            <?php endif; ?>

            <?php if ($content['acf_fc_layout'] == 'image'): ?>
                <div class="imageRender">
                    <img src="<?php echo getImageUrl($content['image'], 'lazy'); ?>"
                            <?php echo getImageSrcSetSizes($content['image']); ?>
                            alt="" class="__vhidden">
                </div>
                <?php if ($content['label']): ?>
                <div class="imageRender_label"><?php echo $content['label']; ?></div>
                <?php endif; ?>
            <?php endif; ?>

            <?php if ($content['acf_fc_layout'] == 'links'): ?>
                <ul class="rse-links">
                    <?php foreach ($content['link'] as $link): ?>
                        <li>
                            <a href="<?php echo $link['link']['url']; ?>" target="<?php echo $link['link']['target']; ?>"><?php echo $link['link']['title']; ?></a>
                        </li>
                    <?php endforeach; ?>
                </ul>
            <?php endif; ?>
        </div>
    <?php endforeach; ?>
</div>