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/element09.php
<?php /*

Element label: Programs
Element name: element09

*/
$program_types = get_terms(array(
 'taxonomy' => 'dinamo_program_type',
    'hide_empty' => false,
));




?>
<section class="programs">
    <div class="container">
        <div class="row">
            <div class="col-12 col-md-8 offset-md-2">
                <h1 class="programs__main-title"><?= get_sub_field('title'); ?></h1>
                <p class="programs__text"><?= get_sub_field('subtitle'); ?></p>
            </div>
        </div>
        <div class="row">
            <?php foreach($program_types as $program_type){

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

                ?>
            <div class="col-12 col-md-4 programs__box">
                <a href="<?= get_term_link($program_type); ?>" class="programs__img-wrap">
                    <img data-src="<?php echo $image; ?>" class="lazyload programs__img" alt="<?= $image_alt; ?>">
                    <div class="programs__text-wrap">
                        <h2 class="programs__title"><?= $program_type->name; ?></h2>
                    </div>
                </a>
            </div>
            <?php } ?>

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