← All changes
|
templates/partials/single-trip/content-location.php
+8
-4
3.0.3
→
3.0.16
View file →
| @@ -39,12 +39,12 @@ | ||
| 39 | 39 | <!-- Load Leaflet CSS and JS --> |
| 40 | 40 | <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" |
| 41 | 41 | integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" |
| 42 | 42 | crossorigin=""/> |
| 43 | - <script src="https://unpkg.com/[email protected]/dist/leaflet.js" | |
| 44 | - integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" | |
| 43 | + <script src="https://unpkg.com/[email protected]/dist/leaflet.js" | |
| 44 | + integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" | |
| 45 | 45 | crossorigin=""></script> |
| 46 | - | |
| 46 | + | |
| 47 | 47 | <script> |
| 48 | 48 | /** |
| 49 | 49 | * Yatra Trip Map Initialization |
| 50 | 50 | * Renders interactive map with trip route, markers, and directional arrows |
| @@ -149,9 +149,13 @@ | ||
| 149 | 149 | map.attributionControl.setPrefix(''); |
| 150 | 150 | |
| 151 | 151 | // Add OpenStreetMap tiles with error handling |
| 152 | 152 | var tileLayer = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |
| 153 | - attribution: <?php echo wp_json_encode(sprintf(__('© %s contributors', 'yatra'), '<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>')); ?>, | |
| 153 | + attribution: <?php echo wp_json_encode(sprintf( | |
| 154 | + /* translators: %s: map data provider link (e.g. OpenStreetMap). */ | |
| 155 | + __('© %s contributors', 'yatra'), | |
| 156 | + '<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>' | |
| 157 | + )); ?>, | |
| 154 | 158 | maxZoom: 19, |
| 155 | 159 | minZoom: 2, |
| 156 | 160 | errorTileUrl: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==', |
| 157 | 161 | crossOrigin: true |