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/user/location.php
<?php
/* @var \Vehica\Widgets\Car\Single\LocationSingleCarWidget $vehicaCurrentWidget */
/* @var \Vehica\Model\User\User $vehicaUser */
global $vehicaCurrentWidget, $vehicaUser;

if (!$vehicaUser || !$vehicaCurrentWidget) {
    return;
}

$vehicaUserLocation = $vehicaUser->getLocation();
if (empty($vehicaUserLocation)) {
    return;
}
?>
<div class="vehica-app">
    <div class="vehica-car-location">
        <?php if ($vehicaCurrentWidget->showLabel()) : ?>
            <h3 class="vehica-section-label"><?php echo esc_html($vehicaCurrentWidget->getLabel()); ?></h3>
        <?php endif; ?>

        <vehica-location
                map-id="vehica-car__location--<?php echo esc_attr($vehicaCurrentWidget->get_id()); ?>"
                :values="<?php echo htmlspecialchars(json_encode([['position' => $vehicaUserLocation]])); ?>"
                :zoom="<?php echo esc_attr($vehicaCurrentWidget->getZoom()); ?>"
                icon="<?php echo esc_url($vehicaCurrentWidget->getIcon()); ?>"
                map-type="<?php echo esc_attr(vehicaApp('map_type')); ?>"
                :snazzy="<?php echo esc_attr(vehicaApp('settings_config')->isGoogleMapsSnazzyLocationSelected('user_map') ? 'true' : 'false'); ?>"
        >
            <div
                    slot-scope="location"
                    id="vehica-car__location--<?php echo esc_attr($vehicaCurrentWidget->get_id()); ?>"
                    class="vehica-car__location"
            ></div>
        </vehica-location>
    </div>
</div>