<?php
$post_id = function_exists('bricks_get_post_id') ? bricks_get_post_id() : get_the_ID();
$field_names = ['acf_galeria', 'galeria', 'gallery'];
$images = null;
foreach ($field_names as $name) {
if ($tmp = get_field($name, $post_id)) {
$images = $tmp;
break;
}
}
if (empty($images)) {
echo '<p style="color:red;">Galéria sa nenačítala – skontroluj názov poľa.</p>';
return;
}
if (!function_exists('acfg_src_alt')) {
function acfg_src_alt($img) {
if (is_array($img) && isset($img['ID']))
return [wp_get_attachment_image_url($img['ID'], 'large'), esc_attr($img['alt'] ?: get_the_title($img['ID']))];
if (is_numeric($img))
return [wp_get_attachment_image_url($img, 'large'), esc_attr(get_the_title($img))];
return [esc_url($img), ''];
}
}
foreach (array_slice($images, 0, 3) as $img) {
[$src, $alt] = acfg_src_alt($img);
echo '<div class="estate-gallery__img--wrapp">';
echo '<img src="' . esc_url($src) . '" alt="' . esc_attr($alt) . '" aria-label="' . esc_attr($alt) . '" class="estate-gallery__img">';
echo '</div>';
}
?>



Glamping tiny house (Bayaya) | mobilný dom, ihneď k dispozícii

veľa spokojných klientov
Dohodnite si obhliadku nehnuteľnosti
Referencie
Reakcie naších klientov hovoria samé za seba
Na našu prácu sa nepozeráme cez čísla, ale cez ľudí. Prečítajte si, čo hovoria tí, ktorým sme pomohli nájsť svoj nový domov alebo investičnú nehnuteľnosť.
Predaný byt v Trnave
V tejto video referencii budete počuť aj kupujúcich aj predávajúcu. Som rád že sa v procese predaja obe strany cítili bezpečne a spokojne. Riešili sme prenos hypotéky na nový byt ktorý sa podaril úspešne.

























