← All changes
|
templates/partials/single-trip/content-location.php
+5
-1
3.0.4
→
3.0.16
View file →
| @@ -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 |