HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/pewnabryka.pl/public_html/wp-content/themes/vehica/templates/shared/featured_cars.php
<?php
/* @var \Vehica\Components\Card\Car\Card $vehicaCarCard */
global $vehicaCarCard, $vehicaFeaturedCars, $vehicaCurrentCar;
$vehicaCurrentCar = $vehicaFeaturedCars->getMainCar();
$vehicaCars = $vehicaFeaturedCars->getCars();
?>
<div class="vehica-featured-v1__vehicles vehica-featured-v1__vehicles--count-<?php echo esc_attr(count($vehicaCars)); ?>">
    <div class="vehica-featured-v1__big-card">
        <?php $vehicaCarCard->loadBigCardTemplate(); ?>
    </div>

    <div class="vehica-featured-v1__grid">
        <?php foreach ($vehicaCars as $vehicaIndex => $vehicaCurrentCar) : ?>
            <div class="vehica-featured-v1__vehicle vehica-featured-v1__vehicle--<?php echo esc_attr($vehicaIndex + 1); ?>">
                <?php $vehicaCarCard->loadTemplate($vehicaCurrentCar); ?>
            </div>
        <?php endforeach; ?>
    </div>
</div>