HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/zaklada/wp-content/themes/zaklada/page-elements/element14.php
<?php /*

Element label: Image, text and three buttons with deatils
Element name: element14

*/

$image_id = get_sub_field('image');
$image = wp_get_attachment_image_src($image_id, 'full')[0];
$image_alt = get_image_alt($image_id);

?>
<section class="hero-secondary hero-secondary--alt">
    <div class="hero-secondary__left">
        <div class="hero-secondary__img-wrap">
            <img data-src="<?php echo $image; ?>" class="lazyload hero-secondary__img" alt="<?= $image_alt; ?>">
        </div>
    </div>
    <div class="hero-secondary__right">
        <div class="hero-secondary__content">
            <h1 class="hero-secondary__title"><?= get_sub_field('title'); ?></h1>
            <div>
                <?= get_sub_field('text'); ?>
            </div>
        </div>
        <div class="hero-tabs">
<?php if (have_rows('buttons')) : ?>


    <?php while (have_rows('buttons')) : the_row(); ?>
            <div class="expandable expandable--hero">
                <div class="expandable__btn"><?= get_sub_field('button_label');  ?></div>
                <div class="expandable__content">
                    <?= get_sub_field('button_content');  ?>
                </div>
            </div>
            <?php
            endwhile;
            endif; ?>

        </div>
    </div>
</section>