Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
Eric van der Vlist | 9a184384f8 | |
Eric van der Vlist | a1edd4f01c | |
Eric van der Vlist | a2c3ade47f | |
Eric van der Vlist | b572aafbb6 | |
bastianonm | 3308c70299 |
32
.eslintrc
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
"rules": {
|
||||
"camelcase": 0,
|
||||
"quotes": [2, "single", "avoid-escape"],
|
||||
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
|
||||
"space-before-function-paren": 2,
|
||||
"space-in-parens": 2,
|
||||
"object-curly-spacing": [2, "never"],
|
||||
"array-bracket-spacing": 2,
|
||||
"computed-property-spacing": 2,
|
||||
"space-before-blocks": 2,
|
||||
"keyword-spacing": 2,
|
||||
"no-lonely-if": 2,
|
||||
"comma-style": 2,
|
||||
"no-underscore-dangle": 0,
|
||||
"no-constant-condition": 0,
|
||||
"no-multi-spaces": 0,
|
||||
"strict": 0,
|
||||
"key-spacing": 0,
|
||||
"no-shadow": 0,
|
||||
"no-unused-vars": 2
|
||||
},
|
||||
"globals": {
|
||||
"L": true,
|
||||
"module": false,
|
||||
"define": false,
|
||||
"require": true
|
||||
},
|
||||
"env": {
|
||||
"browser": true
|
||||
}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
/nbproject/
|
||||
*.clpprj
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"commitMessage": "version %s",
|
||||
"tagName": "%s",
|
||||
"scripts": {
|
||||
"postcommit": "git push && git push --tags && npm publish"
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
.fullscreen-icon { background-image: url(icon-fullscreen.png); }
|
||||
.leaflet-retina .fullscreen-icon { background-image: url(icon-fullscreen-2x.png); background-size: 26px 26px; }
|
||||
/* one selector per rule as explained here : http://www.sitepoint.com/html5-full-screen-api/ */
|
||||
.leaflet-container:-webkit-full-screen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
.leaflet-container:-ms-fullscreen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
.leaflet-container:full-screen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
.leaflet-container:fullscreen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
.leaflet-pseudo-fullscreen { position: fixed !important; width: 100% !important; height: 100% !important; top: 0px !important; left: 0px !important; z-index: 99999; }
|
|
@ -1,202 +0,0 @@
|
|||
(function () {
|
||||
|
||||
L.Control.FullScreen = L.Control.extend({
|
||||
options: {
|
||||
position: 'topleft',
|
||||
title: 'Full Screen',
|
||||
titleCancel: 'Exit Full Screen',
|
||||
forceSeparateButton: false,
|
||||
forcePseudoFullscreen: false,
|
||||
fullscreenElement: false
|
||||
},
|
||||
|
||||
onAdd: function (map) {
|
||||
var className = 'leaflet-control-zoom-fullscreen', container, content = '';
|
||||
|
||||
if (map.zoomControl && !this.options.forceSeparateButton) {
|
||||
container = map.zoomControl._container;
|
||||
} else {
|
||||
container = L.DomUtil.create('div', 'leaflet-bar');
|
||||
}
|
||||
|
||||
if (this.options.content) {
|
||||
content = this.options.content;
|
||||
} else {
|
||||
className += ' fullscreen-icon';
|
||||
}
|
||||
|
||||
this._createButton(this.options.title, className, content, container, this.toggleFullScreen, this);
|
||||
|
||||
this._map.on('enterFullscreen exitFullscreen', this._toggleTitle, this);
|
||||
|
||||
return container;
|
||||
},
|
||||
|
||||
_createButton: function (title, className, content, container, fn, context) {
|
||||
this.link = L.DomUtil.create('a', className, container);
|
||||
this.link.href = '#';
|
||||
this.link.title = title;
|
||||
this.link.innerHTML = content;
|
||||
|
||||
L.DomEvent
|
||||
.addListener(this.link, 'click', L.DomEvent.stopPropagation)
|
||||
.addListener(this.link, 'click', L.DomEvent.preventDefault)
|
||||
.addListener(this.link, 'click', fn, context);
|
||||
|
||||
L.DomEvent
|
||||
.addListener(container, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation)
|
||||
.addListener(container, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault)
|
||||
.addListener(container, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, context);
|
||||
|
||||
L.DomEvent
|
||||
.addListener(document, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation)
|
||||
.addListener(document, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault)
|
||||
.addListener(document, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, context);
|
||||
|
||||
return this.link;
|
||||
},
|
||||
|
||||
toggleFullScreen: function () {
|
||||
var map = this._map;
|
||||
map._exitFired = false;
|
||||
if (map._isFullscreen) {
|
||||
if (fullScreenApi.supportsFullScreen && !this.options.forcePseudoFullscreen) {
|
||||
fullScreenApi.cancelFullScreen();
|
||||
} else {
|
||||
L.DomUtil.removeClass(this.options.fullscreenElement ? this.options.fullscreenElement : map._container, 'leaflet-pseudo-fullscreen');
|
||||
}
|
||||
map.fire('exitFullscreen');
|
||||
map._exitFired = true;
|
||||
map._isFullscreen = false;
|
||||
}
|
||||
else {
|
||||
if (fullScreenApi.supportsFullScreen && !this.options.forcePseudoFullscreen) {
|
||||
fullScreenApi.requestFullScreen(this.options.fullscreenElement ? this.options.fullscreenElement : map._container);
|
||||
} else {
|
||||
L.DomUtil.addClass(this.options.fullscreenElement ? this.options.fullscreenElement : map._container, 'leaflet-pseudo-fullscreen');
|
||||
}
|
||||
map.fire('enterFullscreen');
|
||||
map._isFullscreen = true;
|
||||
}
|
||||
},
|
||||
|
||||
_toggleTitle: function () {
|
||||
this.link.title = this._map._isFullscreen ? this.options.title : this.options.titleCancel;
|
||||
},
|
||||
|
||||
_handleFullscreenChange: function () {
|
||||
var map = this._map;
|
||||
map.invalidateSize();
|
||||
if (!fullScreenApi.isFullScreen() && !map._exitFired) {
|
||||
map.fire('exitFullscreen');
|
||||
map._exitFired = true;
|
||||
map._isFullscreen = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
L.Map.addInitHook(function () {
|
||||
if (this.options.fullscreenControl) {
|
||||
this.fullscreenControl = L.control.fullscreen(this.options.fullscreenControlOptions);
|
||||
this.addControl(this.fullscreenControl);
|
||||
}
|
||||
});
|
||||
|
||||
L.control.fullscreen = function (options) {
|
||||
return new L.Control.FullScreen(options);
|
||||
};
|
||||
|
||||
/*
|
||||
Native FullScreen JavaScript API
|
||||
-------------
|
||||
Assumes Mozilla naming conventions instead of W3C for now
|
||||
|
||||
source : http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/
|
||||
|
||||
*/
|
||||
|
||||
var
|
||||
fullScreenApi = {
|
||||
supportsFullScreen: false,
|
||||
isFullScreen: function () { return false; },
|
||||
requestFullScreen: function () {},
|
||||
cancelFullScreen: function () {},
|
||||
fullScreenEventName: '',
|
||||
prefix: ''
|
||||
},
|
||||
browserPrefixes = 'webkit moz o ms khtml'.split(' ');
|
||||
|
||||
// check for native support
|
||||
if (typeof document.exitFullscreen !== 'undefined') {
|
||||
fullScreenApi.supportsFullScreen = true;
|
||||
} else {
|
||||
// check for fullscreen support by vendor prefix
|
||||
for (var i = 0, il = browserPrefixes.length; i < il; i++) {
|
||||
fullScreenApi.prefix = browserPrefixes[i];
|
||||
if (typeof document[fullScreenApi.prefix + 'CancelFullScreen'] !== 'undefined') {
|
||||
fullScreenApi.supportsFullScreen = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof document['msExitFullscreen'] !== 'undefined') {
|
||||
fullScreenApi.prefix = 'ms';
|
||||
fullScreenApi.supportsFullScreen = true;
|
||||
}
|
||||
}
|
||||
|
||||
// update methods to do something useful
|
||||
if (fullScreenApi.supportsFullScreen) {
|
||||
if (fullScreenApi.prefix === 'ms') {
|
||||
fullScreenApi.fullScreenEventName = 'MSFullscreenChange';
|
||||
} else {
|
||||
fullScreenApi.fullScreenEventName = fullScreenApi.prefix + 'fullscreenchange';
|
||||
}
|
||||
fullScreenApi.isFullScreen = function () {
|
||||
switch (this.prefix) {
|
||||
case '':
|
||||
return document.fullscreen;
|
||||
case 'webkit':
|
||||
return document.webkitIsFullScreen;
|
||||
case 'ms':
|
||||
return document.msFullscreenElement;
|
||||
default:
|
||||
return document[this.prefix + 'FullScreen'];
|
||||
}
|
||||
};
|
||||
fullScreenApi.requestFullScreen = function (el) {
|
||||
switch (this.prefix) {
|
||||
case '':
|
||||
return el.requestFullscreen();
|
||||
case 'ms':
|
||||
return el.msRequestFullscreen();
|
||||
default:
|
||||
return el[this.prefix + 'RequestFullScreen']();
|
||||
}
|
||||
};
|
||||
fullScreenApi.cancelFullScreen = function () {
|
||||
switch (this.prefix) {
|
||||
case '':
|
||||
return document.exitFullscreen();
|
||||
case 'ms':
|
||||
return document.msExitFullscreen();
|
||||
default:
|
||||
return document[this.prefix + 'CancelFullScreen']();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// jQuery plugin
|
||||
if (typeof jQuery !== 'undefined') {
|
||||
jQuery.fn.requestFullScreen = function () {
|
||||
return this.each(function () {
|
||||
var el = jQuery(this);
|
||||
if (fullScreenApi.supportsFullScreen) {
|
||||
fullScreenApi.requestFullScreen(el);
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
// export api
|
||||
window.fullScreenApi = fullScreenApi;
|
||||
})();
|
19
LICENSE
|
@ -1,19 +0,0 @@
|
|||
Copyright (c) 2013, Bruno Bergot
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -1,27 +0,0 @@
|
|||
.leaflet-marker-photo {
|
||||
border: 2px solid #fff;
|
||||
box-shadow: 3px 3px 10px #888;
|
||||
}
|
||||
|
||||
.leaflet-marker-photo div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.leaflet-marker-photo b {
|
||||
position: absolute;
|
||||
top: -7px;
|
||||
right: -11px;
|
||||
color: #555;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
height: 12px;
|
||||
min-width: 12px;
|
||||
line-height: 12px;
|
||||
text-align: center;
|
||||
padding: 3px;
|
||||
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
||||
}
|
|
@ -1,83 +0,0 @@
|
|||
L.Photo = L.FeatureGroup.extend({
|
||||
options: {
|
||||
icon: {
|
||||
iconSize: [40, 40]
|
||||
}
|
||||
},
|
||||
|
||||
initialize: function (photos, options) {
|
||||
L.setOptions(this, options);
|
||||
L.FeatureGroup.prototype.initialize.call(this, photos);
|
||||
},
|
||||
|
||||
addLayers: function (photos) {
|
||||
if (photos) {
|
||||
for (var i = 0, len = photos.length; i < len; i++) {
|
||||
this.addLayer(photos[i]);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
addLayer: function (photo) {
|
||||
L.FeatureGroup.prototype.addLayer.call(this, this.createMarker(photo));
|
||||
},
|
||||
|
||||
createMarker: function (photo) {
|
||||
var marker = L.marker(photo, {
|
||||
icon: L.divIcon(L.extend({
|
||||
html: '<div style="background-image: url(' + photo.thumbnail + ');"></div>',
|
||||
className: 'leaflet-marker-photo'
|
||||
}, photo, this.options.icon)),
|
||||
title: photo.caption || ''
|
||||
});
|
||||
marker.photo = photo;
|
||||
return marker;
|
||||
}
|
||||
});
|
||||
|
||||
L.photo = function (photos, options) {
|
||||
return new L.Photo(photos, options);
|
||||
};
|
||||
|
||||
if (L.MarkerClusterGroup) {
|
||||
|
||||
L.Photo.Cluster = L.MarkerClusterGroup.extend({
|
||||
options: {
|
||||
featureGroup: L.photo,
|
||||
maxClusterRadius: 100,
|
||||
showCoverageOnHover: false,
|
||||
iconCreateFunction: function(cluster) {
|
||||
return new L.DivIcon(L.extend({
|
||||
className: 'leaflet-marker-photo',
|
||||
html: '<div style="background-image: url(' + cluster.getAllChildMarkers()[0].photo.thumbnail + ');"></div><b>' + cluster.getChildCount() + '</b>'
|
||||
}, this.icon));
|
||||
},
|
||||
icon: {
|
||||
iconSize: [40, 40]
|
||||
}
|
||||
},
|
||||
|
||||
initialize: function (options) {
|
||||
options = L.Util.setOptions(this, options);
|
||||
L.MarkerClusterGroup.prototype.initialize.call(this);
|
||||
this._photos = options.featureGroup(null, options);
|
||||
},
|
||||
|
||||
add: function (photos) {
|
||||
this.addLayer(this._photos.addLayers(photos));
|
||||
return this;
|
||||
},
|
||||
|
||||
clear: function () {
|
||||
this._photos.clearLayers();
|
||||
this.clearLayers();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
L.photo.cluster = function (options) {
|
||||
return new L.Photo.Cluster(options);
|
||||
};
|
||||
|
||||
}
|
|
@ -1,60 +0,0 @@
|
|||
.marker-cluster-small {
|
||||
background-color: rgba(181, 226, 140, 0.6);
|
||||
}
|
||||
.marker-cluster-small div {
|
||||
background-color: rgba(110, 204, 57, 0.6);
|
||||
}
|
||||
|
||||
.marker-cluster-medium {
|
||||
background-color: rgba(241, 211, 87, 0.6);
|
||||
}
|
||||
.marker-cluster-medium div {
|
||||
background-color: rgba(240, 194, 12, 0.6);
|
||||
}
|
||||
|
||||
.marker-cluster-large {
|
||||
background-color: rgba(253, 156, 115, 0.6);
|
||||
}
|
||||
.marker-cluster-large div {
|
||||
background-color: rgba(241, 128, 23, 0.6);
|
||||
}
|
||||
|
||||
/* IE 6-8 fallback colors */
|
||||
.leaflet-oldie .marker-cluster-small {
|
||||
background-color: rgb(181, 226, 140);
|
||||
}
|
||||
.leaflet-oldie .marker-cluster-small div {
|
||||
background-color: rgb(110, 204, 57);
|
||||
}
|
||||
|
||||
.leaflet-oldie .marker-cluster-medium {
|
||||
background-color: rgb(241, 211, 87);
|
||||
}
|
||||
.leaflet-oldie .marker-cluster-medium div {
|
||||
background-color: rgb(240, 194, 12);
|
||||
}
|
||||
|
||||
.leaflet-oldie .marker-cluster-large {
|
||||
background-color: rgb(253, 156, 115);
|
||||
}
|
||||
.leaflet-oldie .marker-cluster-large div {
|
||||
background-color: rgb(241, 128, 23);
|
||||
}
|
||||
|
||||
.marker-cluster {
|
||||
background-clip: padding-box;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.marker-cluster div {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
margin-left: 5px;
|
||||
margin-top: 5px;
|
||||
|
||||
text-align: center;
|
||||
border-radius: 15px;
|
||||
font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
.marker-cluster span {
|
||||
line-height: 30px;
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
|
||||
-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
|
||||
-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
|
||||
-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
|
||||
transition: transform 0.3s ease-out, opacity 0.3s ease-in;
|
||||
}
|
||||
|
||||
.leaflet-cluster-spider-leg {
|
||||
/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
|
||||
-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
|
||||
-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
|
||||
-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
|
||||
transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
|
||||
}
|
1507
WP-GPX-Maps.js
|
@ -1,62 +0,0 @@
|
|||
/**
|
||||
* This file contains the style definitions for the admin area
|
||||
*
|
||||
* Content:
|
||||
* --------
|
||||
* 1. Over the Tabs
|
||||
* 2. Tab: Tracks
|
||||
* 3. Tab: Settings
|
||||
* 4. Tab: Help
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1.0 Over the Tabs
|
||||
*/
|
||||
|
||||
/**
|
||||
* 2.0 Tab: Tracks
|
||||
*/
|
||||
|
||||
/**
|
||||
* 3.0 Tab: Settings
|
||||
*/
|
||||
.wpgpxmaps-container-tab-settings {
|
||||
display: block;
|
||||
padding: 5px 20px 1px 20px;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.0 Tab: Tracks
|
||||
*/
|
||||
.wpgpxmaps-container-tab-faq {
|
||||
display: block;
|
||||
padding: 5px 20px 1px 20px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-tab-faq {
|
||||
display: block;
|
||||
padding: 5px 20px 10px 20px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat {
|
||||
margin-bottom: 10px;
|
||||
border-bottom: none;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat tbody tr:hover {
|
||||
background:#eeeeee;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat th,
|
||||
.wpgpxmaps-container-tab-faq table.widefat td {
|
||||
padding: 4px 10px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat thead tr th {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat td {
|
||||
width: 200px;
|
||||
}
|
BIN
backToCenter.png
Before Width: | Height: | Size: 3.1 KiB |
33
bower.json
|
@ -1,33 +0,0 @@
|
|||
{
|
||||
"name": "leaflet.fullscreen",
|
||||
"version": "1.4.5",
|
||||
"homepage": "https://github.com/brunob/leaflet.fullscreen",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
"brunob <brunobergot@gmail.com>"
|
||||
],
|
||||
"description": "Leaflet.Control.FullScreen for Leaflet",
|
||||
"main": [
|
||||
"Control.FullScreen.js",
|
||||
"Control.FullScreen.css",
|
||||
"icon-fullscreen.png",
|
||||
"icon-fullscreen-2x.png"
|
||||
],
|
||||
"devDependencies": {
|
||||
"eslint": "2.3.0"
|
||||
},
|
||||
"keywords": [
|
||||
"leaflet",
|
||||
"plugins",
|
||||
"maps",
|
||||
"fullscreen"
|
||||
],
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests",
|
||||
"index.html"
|
||||
]
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
* 2. Tab: Tracks
|
||||
* 3. Tab: Settings
|
||||
* 4. Tab: Help
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -16,15 +17,31 @@
|
|||
/**
|
||||
* 2.0 Tab: Tracks
|
||||
*/
|
||||
#table tbody tr:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 3.0 Tab: Settings
|
||||
*/
|
||||
.wpgpxmaps-container-tab-settings {
|
||||
.wpgpxmaps-container-tab-settings {
|
||||
display: block;
|
||||
padding: 5px 20px 1px 20px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-settings table.form-table input[type="checkbox"] {
|
||||
margin-top: -4px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-settings table.form-table input[type="radio"] {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-settings table.form-table input[type="text"] {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
/**
|
||||
* 4.0 Tab: Tracks
|
||||
*/
|
||||
|
@ -44,8 +61,12 @@
|
|||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat tbody tr:hover {
|
||||
background:#eeeeee;
|
||||
.wpgpxmaps-container-tab-faq table.widefat thead th.title {
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat td {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat th,
|
||||
|
@ -53,10 +74,11 @@
|
|||
padding: 4px 10px;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat thead tr th {
|
||||
font-size: 14px;
|
||||
.wpgpxmaps-container-tab-faq table.widefat tbody tr:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat td {
|
||||
width: 200px;
|
||||
|
||||
.wpgpxmaps-container-tab-faq table.widefat thead th {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,337 @@
|
|||
/**
|
||||
* @author zhixin wen <wenzhixin2010@gmail.com>
|
||||
* version: 1.13.2
|
||||
* https://github.com/wenzhixin/bootstrap-table/
|
||||
*/
|
||||
|
||||
.bootstrap-table .table {
|
||||
margin-bottom: 0 !important;
|
||||
border-bottom: 1px solid #dddddd;
|
||||
border-collapse: collapse !important;
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
.bootstrap-table .table:not(.table-condensed),
|
||||
.bootstrap-table .table:not(.table-condensed) > tbody > tr > th,
|
||||
.bootstrap-table .table:not(.table-condensed) > tfoot > tr > th,
|
||||
.bootstrap-table .table:not(.table-condensed) > thead > tr > td,
|
||||
.bootstrap-table .table:not(.table-condensed) > tbody > tr > td,
|
||||
.bootstrap-table .table:not(.table-condensed) > tfoot > tr > td {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.bootstrap-table .table.table-no-bordered > thead > tr > th {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.bootstrap-table .table.table-no-bordered > thead > tr > th,
|
||||
.bootstrap-table .table.table-no-bordered > tbody > tr > td {
|
||||
border-right: 2px solid transparent;
|
||||
}
|
||||
|
||||
.bootstrap-table .table.table-no-bordered > tbody > tr > td:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.fixed-table-container {
|
||||
position: relative;
|
||||
clear: both;
|
||||
border: 1px solid #dddddd;
|
||||
border-radius: 4px;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
}
|
||||
|
||||
.fixed-table-container.table-no-bordered {
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.fixed-table-footer,
|
||||
.fixed-table-header {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.fixed-table-footer {
|
||||
border-top: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.fixed-table-body {
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.fixed-table-container table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.fixed-table-container thead th {
|
||||
height: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border-left: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.fixed-table-container thead th:focus {
|
||||
outline: 0 solid transparent;
|
||||
}
|
||||
|
||||
.fixed-table-container thead th:first-child:not([data-not-first-th]) {
|
||||
border-left: none;
|
||||
border-top-left-radius: 4px;
|
||||
-webkit-border-top-left-radius: 4px;
|
||||
-moz-border-radius-topleft: 4px;
|
||||
}
|
||||
|
||||
.fixed-table-container thead th .th-inner,
|
||||
.fixed-table-container tbody td .th-inner {
|
||||
padding: 8px;
|
||||
line-height: 24px;
|
||||
vertical-align: top;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.fixed-table-container thead th .sortable {
|
||||
cursor: pointer;
|
||||
background-position: right;
|
||||
background-repeat: no-repeat;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.fixed-table-container thead th .both {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7X QMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC');
|
||||
}
|
||||
|
||||
.fixed-table-container thead th .asc {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==');
|
||||
}
|
||||
|
||||
.fixed-table-container thead th .desc {
|
||||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII= ');
|
||||
}
|
||||
|
||||
.fixed-table-container th.detail {
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.fixed-table-container tbody td {
|
||||
border-left: 1px solid #dddddd;
|
||||
}
|
||||
|
||||
.fixed-table-container tbody tr:first-child td {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.fixed-table-container tbody td:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
/* the same color with .active */
|
||||
.fixed-table-container tbody .selected td {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.fixed-table-container .bs-checkbox {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fixed-table-container input[type="radio"],
|
||||
.fixed-table-container input[type="checkbox"] {
|
||||
margin: 0 auto !important;
|
||||
}
|
||||
|
||||
.fixed-table-container .no-records-found {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fixed-table-pagination div.pagination,
|
||||
.fixed-table-pagination .pagination-detail {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.fixed-table-pagination div.pagination .pagination {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.fixed-table-pagination .pagination a {
|
||||
padding: 6px 12px;
|
||||
line-height: 1.428571429;
|
||||
}
|
||||
|
||||
.fixed-table-pagination ul.pagination li.page-intermediate a {
|
||||
color:#c8c8c8;
|
||||
}
|
||||
|
||||
.fixed-table-pagination ul.pagination li.page-intermediate a:before {
|
||||
content: '\2B05';
|
||||
}
|
||||
|
||||
.fixed-table-pagination ul.pagination li.page-intermediate a:after {
|
||||
content: '\27A1';
|
||||
}
|
||||
|
||||
.fixed-table-pagination .pagination-info {
|
||||
line-height: 34px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.fixed-table-pagination .btn-group {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.fixed-table-pagination .dropup .dropdown-menu {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.fixed-table-pagination .page-list {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .columns-left {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .columns-right {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .columns label {
|
||||
display: block;
|
||||
padding: 3px 20px;
|
||||
clear: both;
|
||||
font-weight: normal;
|
||||
line-height: 1.428571429;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .bs-bars,
|
||||
.fixed-table-toolbar .search,
|
||||
.fixed-table-toolbar .columns {
|
||||
position: relative;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.fixed-table-pagination li.disabled a {
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.fixed-table-loading {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 42px;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 99;
|
||||
background-color: #fff;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.fixed-table-body .card-view .title {
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
min-width: 30%;
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
/* support bootstrap 2 */
|
||||
.fixed-table-body thead th .th-inner {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.table th, .table td {
|
||||
vertical-align: middle;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .dropdown-menu {
|
||||
text-align: left;
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .btn-group > .btn-group {
|
||||
display: inline-block;
|
||||
margin-left: -1px !important;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .btn-group > .btn-group > .btn {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .btn-group > .btn-group:first-child > .btn {
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
}
|
||||
|
||||
.fixed-table-toolbar .btn-group > .btn-group:last-child > .btn {
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
.bootstrap-table .table > thead > tr > th {
|
||||
vertical-align: bottom;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.bootstrap-table .table > thead.thead-dark > tr > th {
|
||||
border-bottom: 1px solid #212529;
|
||||
}
|
||||
|
||||
/* support bootstrap 3 */
|
||||
.bootstrap-table .table thead > tr > th {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.bootstrap-table .fixed-table-footer tbody > tr > td {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.bootstrap-table .fixed-table-footer .table {
|
||||
border-bottom: none;
|
||||
border-radius: 0;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.bootstrap-table .pull-right .dropdown-menu {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
/* calculate scrollbar width */
|
||||
p.fixed-table-scroll-inner {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
div.fixed-table-scroll-outer {
|
||||
top: 0;
|
||||
left: 0;
|
||||
visibility: hidden;
|
||||
width: 200px;
|
||||
height: 150px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* for get correct heights */
|
||||
.fixed-table-toolbar:after, .fixed-table-pagination:after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.bootstrap-table.fullscreen {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 1050;
|
||||
width: 100%!important;
|
||||
background: #FFF;
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
/**
|
||||
* This file contains the style definitions for the output
|
||||
*
|
||||
*/
|
||||
.wpgpxmaps img,
|
||||
.entry-content .wpgpxmaps img,
|
||||
#content .wpgpxmaps img {
|
||||
width: none;
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.wpgpxmaps {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.wpgpxmaps .ngimages {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wpgpxmaps .myngimages {
|
||||
position: absolute;
|
||||
z-index :1;
|
||||
margin:0;
|
||||
border: 1px solid #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wpgpxmaps_summary .summarylabel {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.wpgpxmaps_summary .summaryvalue {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.wpgpxmaps .report {
|
||||
line-height :120;
|
||||
}
|
||||
|
||||
.wpgpxmaps .gmnoprint div:first-child { }
|
||||
|
||||
.wpgpxmaps .wpgpxmaps_osm_footer {
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 13px;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.wpgpxmaps .wpgpxmaps_osm_footer span {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
padding: 0 6px 6px 6px;
|
||||
background: #fff;
|
||||
vertical-align: baseline;
|
||||
}
|
Before Width: | Height: | Size: 3.1 KiB |
BIN
expand.png
Before Width: | Height: | Size: 1.5 KiB |
BIN
goFullScreen.png
Before Width: | Height: | Size: 3.1 KiB |
BIN
hideImages.png
Before Width: | Height: | Size: 3.0 KiB |
BIN
icon-128x128.png
Before Width: | Height: | Size: 7.1 KiB |
BIN
icon-256x256.png
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 139 B |
1
icon.svg
|
@ -1 +0,0 @@
|
|||
<svg height="512pt" viewBox="0 0 512 512" width="512pt" xmlns="http://www.w3.org/2000/svg"><path d="m452 122c-27.601562 0-50 22.402344-50 50v280h100v-280c0-27.609375-22.390625-50-50-50zm0 0" fill="#ececf1"/><path d="m60 122c-27.601562 0-50 22.402344-50 50v280h100c0-10.460938 0-266.328125 0-280 0-27.609375-22.390625-50-50-50zm0 0" fill="#ececf1"/><path d="m260 322h142c0-54.882812 0-108.527344 0-120h-268s91.441406 87.089844 126 120zm0 0" fill="#7fe881"/><path d="m110 262v190c0-27.609375-22.390625-50-50-50s-50 22.390625-50 50c0 29.078125 25.246094 50 52.851562 50h47.148438l126-120zm0 0" fill="#76e2f8"/><path d="m465.320312 403.71875c-33.359374-8.617188-63.320312 16.332031-63.320312 48.28125 0-7.824219 0-35.589844 0-70h-86l-120 120h256c27.621094 0 50-22.378906 50-50 0-24.109375-16.308594-43.019531-36.679688-48.28125zm0 0" fill="#76e2f8"/><path d="m402 322v60h-86l-120 120h-86l126-120-126-120v-60h24s91.441406 87.089844 126 120zm0 0" fill="#fed2a4"/><path d="m256 10c49.710938 0 90 40.289062 90 90 0 24.488281-21.828125 66.089844-43.988281 102-22.832031 37.019531-46.011719 68-46.011719 68s-23.179688-30.980469-46.011719-68c-22.160156-35.910156-43.988281-77.511719-43.988281-102 0-49.710938 40.289062-90 90-90zm0 0" fill="#ff637b"/><path d="m256 60c22.058594 0 40 17.941406 40 40s-17.941406 40-40 40-40-17.941406-40-40 17.941406-40 40-40zm0 0" fill="#ececf1"/><path d="m452 112c-33.144531 0-60 26.847656-60 60v20h-72.3125c24.097656-41.210938 36.3125-72.117188 36.3125-92 0-55.140625-44.859375-100-100-100s-100 44.859375-100 100c0 19.882812 12.214844 50.792969 36.3125 92-8.117188 0-65.292969 0-72.3125 0v-20c0-33.085938-26.914062-60-60-60-33.144531 0-60 26.847656-60 60v56c0 5.523438 4.476562 10 10 10s10-4.476562 10-10v-56c0-22.09375 17.902344-40 40-40 22.054688 0 40 17.945312 40 40v235.316406c-10.621094-9.519531-24.648438-15.316406-40-15.316406-15.355469 0-29.375 5.804688-40 15.328125v-99.328125c0-5.523438-4.476562-10-10-10s-10 4.476562-10 10v144c0 34.308594 29.617188 60 62.851562 60h389.148438c33.085938 0 60-26.914062 60-60v-280c0-33.085938-26.914062-60-60-60zm-40 60c0-22.09375 17.902344-40 40-40 22.054688 0 40 17.945312 40 40v235.042969c-6.875-6.121094-15.152344-10.675781-24.179688-13.003907-20.042968-5.183593-40.664062-.304687-55.820312 13.230469 0-8.550781 0-223.265625 0-235.269531zm-20 140h-128c-33.511719-31.910156-97.515625-92.871094-104.996094-100h45.429688c21.832031 34.875 43.335937 63.691406 43.558594 63.992188 1.890624 2.523437 4.855468 4.007812 8.007812 4.007812s6.117188-1.484375 8.007812-4.007812c.222657-.300782 21.730469-29.117188 43.558594-63.992188h84.433594zm-136-292c44.113281 0 80 35.886719 80 80 0 37.128906-58.570312 122.988281-80 152.988281-21.765625-30.476562-80-116.199219-80-152.988281 0-44.113281 35.886719-80 80-80zm-236 432c0-22.054688 17.945312-40 40-40s40 17.945312 40 40c0 5.523438 4.476562 10 10 10s10-4.476562 10-10v-166.667969l101.5 96.667969-115.5 110h-43.148438c-22.425781 0-42.851562-16.761719-42.851562-40zm222.894531-62.757812c1.984375-1.890626 3.105469-4.507813 3.105469-7.242188s-1.121094-5.355469-3.105469-7.242188l-122.894531-117.042968v-45.714844h10c.683594.652344 118.339844 112.707031 123.105469 117.242188 1.859375 1.769531 4.328125 2.757812 6.894531 2.757812h132v40h-76c-2.652344 0-5.195312 1.054688-7.070312 2.929688l-117.074219 117.070312h-56.855469zm209.105469 102.757812h-231.855469l100-100h71.855469v60c0 5.523438 4.476562 10 10 10s10-4.476562 10-10c0-25.863281 24.21875-45.46875 50.820312-38.597656 16.238282 4.195312 29.179688 19.191406 29.179688 38.597656 0 22.054688-17.945312 40-40 40zm0 0"/><path d="m256 150c27.570312 0 50-22.429688 50-50s-22.429688-50-50-50-50 22.429688-50 50 22.429688 50 50 50zm0-80c16.542969 0 30 13.457031 30 30s-13.457031 30-30 30-30-13.457031-30-30 13.457031-30 30-30zm0 0"/><path d="m10 278c5.519531 0 10-4.480469 10-10s-4.480469-10-10-10-10 4.480469-10 10 4.480469 10 10 10zm0 0"/></svg>
|
Before Width: | Height: | Size: 3.8 KiB |
51
index.html
|
@ -1,51 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<title>Leaflet.Control.FullScreen Demo</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" />
|
||||
<style type="text/css">
|
||||
#map { width: 700px; height: 433px; }
|
||||
.fullscreen-icon { background-image: url(icon-fullscreen.png); }
|
||||
/* one selector per rule as explained here : http://www.sitepoint.com/html5-full-screen-api/ */
|
||||
#map:-webkit-full-screen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
#map:-ms-fullscreen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
#map:full-screen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
#map:fullscreen { width: 100% !important; height: 100% !important; z-index: 99999; }
|
||||
.leaflet-pseudo-fullscreen { position: fixed !important; width: 100% !important; height: 100% !important; top: 0px !important; left: 0px !important; z-index: 99999; }
|
||||
</style>
|
||||
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js"></script>
|
||||
<script src="Control.FullScreen.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="map"></div>
|
||||
|
||||
<script>
|
||||
var base = new L.TileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
subdomains: 'abcd',
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="http://cartodb.com/attributions">CartoDB</a>'
|
||||
});
|
||||
|
||||
var map = new L.Map('map', {
|
||||
layers: [base],
|
||||
center: new L.LatLng(48.5, -4.5),
|
||||
zoom: 5,
|
||||
fullscreenControl: true,
|
||||
fullscreenControlOptions: { // optional
|
||||
title:"Show me the fullscreen !",
|
||||
titleCancel:"Exit fullscreen mode"
|
||||
}
|
||||
});
|
||||
|
||||
// detect fullscreen toggling
|
||||
map.on('enterFullscreen', function(){
|
||||
if(window.console) window.console.log('enterFullscreen');
|
||||
});
|
||||
map.on('exitFullscreen', function(){
|
||||
if(window.console) window.console.log('exitFullscreen');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -48,7 +48,7 @@ var WPGPXMAPS = {
|
|||
|
||||
MapEngines: {
|
||||
|
||||
/* NOT WORKING AND TESTED! old code copy&pate */
|
||||
/* NOT WORKING AND TESTED! old code copy&paste */
|
||||
GoogleMaps: function() {
|
||||
this.map = null,
|
||||
this.EventSelectChart = null,
|
||||
|
|
BIN
layers-2x.png
Before Width: | Height: | Size: 1.2 KiB |
BIN
layers.png
Before Width: | Height: | Size: 696 B |
13926
leaflet-src.esm.js
14020
leaflet-src.js
640
leaflet.css
|
@ -1,640 +0,0 @@
|
|||
/* required styles */
|
||||
|
||||
.leaflet-pane,
|
||||
.leaflet-tile,
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow,
|
||||
.leaflet-tile-container,
|
||||
.leaflet-pane > svg,
|
||||
.leaflet-pane > canvas,
|
||||
.leaflet-zoom-box,
|
||||
.leaflet-image-layer,
|
||||
.leaflet-layer {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.leaflet-container {
|
||||
overflow: hidden;
|
||||
}
|
||||
.leaflet-tile,
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
-webkit-user-drag: none;
|
||||
}
|
||||
/* Prevents IE11 from highlighting tiles in blue */
|
||||
.leaflet-tile::selection {
|
||||
background: transparent;
|
||||
}
|
||||
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
||||
.leaflet-safari .leaflet-tile {
|
||||
image-rendering: -webkit-optimize-contrast;
|
||||
}
|
||||
/* hack that prevents hw layers "stretching" when loading new tiles */
|
||||
.leaflet-safari .leaflet-tile-container {
|
||||
width: 1600px;
|
||||
height: 1600px;
|
||||
-webkit-transform-origin: 0 0;
|
||||
}
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow {
|
||||
display: block;
|
||||
}
|
||||
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
||||
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
||||
.leaflet-container .leaflet-overlay-pane svg,
|
||||
.leaflet-container .leaflet-marker-pane img,
|
||||
.leaflet-container .leaflet-shadow-pane img,
|
||||
.leaflet-container .leaflet-tile-pane img,
|
||||
.leaflet-container img.leaflet-image-layer,
|
||||
.leaflet-container .leaflet-tile {
|
||||
max-width: none !important;
|
||||
max-height: none !important;
|
||||
}
|
||||
|
||||
.leaflet-container.leaflet-touch-zoom {
|
||||
-ms-touch-action: pan-x pan-y;
|
||||
touch-action: pan-x pan-y;
|
||||
}
|
||||
.leaflet-container.leaflet-touch-drag {
|
||||
-ms-touch-action: pinch-zoom;
|
||||
/* Fallback for FF which doesn't support pinch-zoom */
|
||||
touch-action: none;
|
||||
touch-action: pinch-zoom;
|
||||
}
|
||||
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
|
||||
-ms-touch-action: none;
|
||||
touch-action: none;
|
||||
}
|
||||
.leaflet-container {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.leaflet-container a {
|
||||
-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
|
||||
}
|
||||
.leaflet-tile {
|
||||
filter: inherit;
|
||||
visibility: hidden;
|
||||
}
|
||||
.leaflet-tile-loaded {
|
||||
visibility: inherit;
|
||||
}
|
||||
.leaflet-zoom-box {
|
||||
width: 0;
|
||||
height: 0;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
z-index: 800;
|
||||
}
|
||||
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
|
||||
.leaflet-overlay-pane svg {
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
.leaflet-pane { z-index: 400; }
|
||||
|
||||
.leaflet-tile-pane { z-index: 200; }
|
||||
.leaflet-overlay-pane { z-index: 400; }
|
||||
.leaflet-shadow-pane { z-index: 500; }
|
||||
.leaflet-marker-pane { z-index: 600; }
|
||||
.leaflet-tooltip-pane { z-index: 650; }
|
||||
.leaflet-popup-pane { z-index: 700; }
|
||||
|
||||
.leaflet-map-pane canvas { z-index: 100; }
|
||||
.leaflet-map-pane svg { z-index: 200; }
|
||||
|
||||
.leaflet-vml-shape {
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
}
|
||||
.lvml {
|
||||
behavior: url(#default#VML);
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
|
||||
/* control positioning */
|
||||
|
||||
.leaflet-control {
|
||||
position: relative;
|
||||
z-index: 800;
|
||||
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||
pointer-events: auto;
|
||||
}
|
||||
.leaflet-top,
|
||||
.leaflet-bottom {
|
||||
position: absolute;
|
||||
z-index: 1000;
|
||||
pointer-events: none;
|
||||
}
|
||||
.leaflet-top {
|
||||
top: 0;
|
||||
}
|
||||
.leaflet-right {
|
||||
right: 0;
|
||||
}
|
||||
.leaflet-bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
.leaflet-left {
|
||||
left: 0;
|
||||
}
|
||||
.leaflet-control {
|
||||
float: left;
|
||||
clear: both;
|
||||
}
|
||||
.leaflet-right .leaflet-control {
|
||||
float: right;
|
||||
}
|
||||
.leaflet-top .leaflet-control {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.leaflet-bottom .leaflet-control {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.leaflet-left .leaflet-control {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.leaflet-right .leaflet-control {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
|
||||
/* zoom and fade animations */
|
||||
|
||||
.leaflet-fade-anim .leaflet-tile {
|
||||
will-change: opacity;
|
||||
}
|
||||
.leaflet-fade-anim .leaflet-popup {
|
||||
opacity: 0;
|
||||
-webkit-transition: opacity 0.2s linear;
|
||||
-moz-transition: opacity 0.2s linear;
|
||||
transition: opacity 0.2s linear;
|
||||
}
|
||||
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
||||
opacity: 1;
|
||||
}
|
||||
.leaflet-zoom-animated {
|
||||
-webkit-transform-origin: 0 0;
|
||||
-ms-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.leaflet-zoom-anim .leaflet-zoom-animated {
|
||||
will-change: transform;
|
||||
}
|
||||
.leaflet-zoom-anim .leaflet-zoom-animated {
|
||||
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
}
|
||||
.leaflet-zoom-anim .leaflet-tile,
|
||||
.leaflet-pan-anim .leaflet-tile {
|
||||
-webkit-transition: none;
|
||||
-moz-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.leaflet-zoom-anim .leaflet-zoom-hide {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
/* cursors */
|
||||
|
||||
.leaflet-interactive {
|
||||
cursor: pointer;
|
||||
}
|
||||
.leaflet-grab {
|
||||
cursor: -webkit-grab;
|
||||
cursor: -moz-grab;
|
||||
cursor: grab;
|
||||
}
|
||||
.leaflet-crosshair,
|
||||
.leaflet-crosshair .leaflet-interactive {
|
||||
cursor: crosshair;
|
||||
}
|
||||
.leaflet-popup-pane,
|
||||
.leaflet-control {
|
||||
cursor: auto;
|
||||
}
|
||||
.leaflet-dragging .leaflet-grab,
|
||||
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
||||
.leaflet-dragging .leaflet-marker-draggable {
|
||||
cursor: move;
|
||||
cursor: -webkit-grabbing;
|
||||
cursor: -moz-grabbing;
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
/* marker & overlays interactivity */
|
||||
.leaflet-marker-icon,
|
||||
.leaflet-marker-shadow,
|
||||
.leaflet-image-layer,
|
||||
.leaflet-pane > svg path,
|
||||
.leaflet-tile-container {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.leaflet-marker-icon.leaflet-interactive,
|
||||
.leaflet-image-layer.leaflet-interactive,
|
||||
.leaflet-pane > svg path.leaflet-interactive,
|
||||
svg.leaflet-image-layer.leaflet-interactive path {
|
||||
pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
/* visual tweaks */
|
||||
|
||||
.leaflet-container {
|
||||
background: #ddd;
|
||||
outline: 0;
|
||||
}
|
||||
.leaflet-container a {
|
||||
color: #0078A8;
|
||||
}
|
||||
.leaflet-container a.leaflet-active {
|
||||
outline: 2px solid orange;
|
||||
}
|
||||
.leaflet-zoom-box {
|
||||
border: 2px dotted #38f;
|
||||
background: rgba(255,255,255,0.5);
|
||||
}
|
||||
|
||||
|
||||
/* general typography */
|
||||
.leaflet-container {
|
||||
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
/* general toolbar styles */
|
||||
|
||||
.leaflet-bar {
|
||||
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.leaflet-bar a,
|
||||
.leaflet-bar a:hover {
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #ccc;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
.leaflet-bar a,
|
||||
.leaflet-control-layers-toggle {
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
display: block;
|
||||
}
|
||||
.leaflet-bar a:hover {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
.leaflet-bar a:first-child {
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
.leaflet-bar a:last-child {
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-bottom: none;
|
||||
}
|
||||
.leaflet-bar a.leaflet-disabled {
|
||||
cursor: default;
|
||||
background-color: #f4f4f4;
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.leaflet-touch .leaflet-bar a {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.leaflet-touch .leaflet-bar a:first-child {
|
||||
border-top-left-radius: 2px;
|
||||
border-top-right-radius: 2px;
|
||||
}
|
||||
.leaflet-touch .leaflet-bar a:last-child {
|
||||
border-bottom-left-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
}
|
||||
|
||||
/* zoom control */
|
||||
|
||||
.leaflet-control-zoom-in,
|
||||
.leaflet-control-zoom-out {
|
||||
font: bold 18px 'Lucida Console', Monaco, monospace;
|
||||
text-indent: 1px;
|
||||
}
|
||||
|
||||
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
|
||||
/* layers control */
|
||||
|
||||
.leaflet-control-layers {
|
||||
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
|
||||
background: #fff;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.leaflet-control-layers-toggle {
|
||||
background-image: url(images/layers.png);
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
.leaflet-retina .leaflet-control-layers-toggle {
|
||||
background-image: url(images/layers-2x.png);
|
||||
background-size: 26px 26px;
|
||||
}
|
||||
.leaflet-touch .leaflet-control-layers-toggle {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
}
|
||||
.leaflet-control-layers .leaflet-control-layers-list,
|
||||
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
||||
display: none;
|
||||
}
|
||||
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
.leaflet-control-layers-expanded {
|
||||
padding: 6px 10px 6px 6px;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
}
|
||||
.leaflet-control-layers-scrollbar {
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
padding-right: 5px;
|
||||
}
|
||||
.leaflet-control-layers-selector {
|
||||
margin-top: 2px;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
.leaflet-control-layers label {
|
||||
display: block;
|
||||
}
|
||||
.leaflet-control-layers-separator {
|
||||
height: 0;
|
||||
border-top: 1px solid #ddd;
|
||||
margin: 5px -10px 5px -6px;
|
||||
}
|
||||
|
||||
/* Default icon URLs */
|
||||
.leaflet-default-icon-path {
|
||||
background-image: url(images/marker-icon.png);
|
||||
}
|
||||
|
||||
|
||||
/* attribution and scale controls */
|
||||
|
||||
.leaflet-container .leaflet-control-attribution {
|
||||
background: #fff;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
margin: 0;
|
||||
}
|
||||
.leaflet-control-attribution,
|
||||
.leaflet-control-scale-line {
|
||||
padding: 0 5px;
|
||||
color: #333;
|
||||
}
|
||||
.leaflet-control-attribution a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.leaflet-control-attribution a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.leaflet-container .leaflet-control-attribution,
|
||||
.leaflet-container .leaflet-control-scale {
|
||||
font-size: 11px;
|
||||
}
|
||||
.leaflet-left .leaflet-control-scale {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.leaflet-bottom .leaflet-control-scale {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.leaflet-control-scale-line {
|
||||
border: 2px solid #777;
|
||||
border-top: none;
|
||||
line-height: 1.1;
|
||||
padding: 2px 5px 1px;
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
|
||||
background: #fff;
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.leaflet-control-scale-line:not(:first-child) {
|
||||
border-top: 2px solid #777;
|
||||
border-bottom: none;
|
||||
margin-top: -2px;
|
||||
}
|
||||
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
||||
border-bottom: 2px solid #777;
|
||||
}
|
||||
|
||||
.leaflet-touch .leaflet-control-attribution,
|
||||
.leaflet-touch .leaflet-control-layers,
|
||||
.leaflet-touch .leaflet-bar {
|
||||
box-shadow: none;
|
||||
}
|
||||
.leaflet-touch .leaflet-control-layers,
|
||||
.leaflet-touch .leaflet-bar {
|
||||
border: 2px solid rgba(0,0,0,0.2);
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
|
||||
/* popup */
|
||||
|
||||
.leaflet-popup {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.leaflet-popup-content-wrapper {
|
||||
padding: 1px;
|
||||
text-align: left;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.leaflet-popup-content {
|
||||
margin: 13px 19px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.leaflet-popup-content p {
|
||||
margin: 18px 0;
|
||||
}
|
||||
.leaflet-popup-tip-container {
|
||||
width: 40px;
|
||||
height: 20px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
margin-left: -20px;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
.leaflet-popup-tip {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
padding: 1px;
|
||||
|
||||
margin: -10px auto 0;
|
||||
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.leaflet-popup-content-wrapper,
|
||||
.leaflet-popup-tip {
|
||||
background: white;
|
||||
color: #333;
|
||||
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
||||
}
|
||||
.leaflet-container a.leaflet-popup-close-button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 4px 4px 0 0;
|
||||
border: none;
|
||||
text-align: center;
|
||||
width: 18px;
|
||||
height: 14px;
|
||||
font: 16px/14px Tahoma, Verdana, sans-serif;
|
||||
color: #c3c3c3;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
background: transparent;
|
||||
}
|
||||
.leaflet-container a.leaflet-popup-close-button:hover {
|
||||
color: #999;
|
||||
}
|
||||
.leaflet-popup-scrolled {
|
||||
overflow: auto;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.leaflet-oldie .leaflet-popup-content-wrapper {
|
||||
zoom: 1;
|
||||
}
|
||||
.leaflet-oldie .leaflet-popup-tip {
|
||||
width: 24px;
|
||||
margin: 0 auto;
|
||||
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
|
||||
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
|
||||
}
|
||||
.leaflet-oldie .leaflet-popup-tip-container {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.leaflet-oldie .leaflet-control-zoom,
|
||||
.leaflet-oldie .leaflet-control-layers,
|
||||
.leaflet-oldie .leaflet-popup-content-wrapper,
|
||||
.leaflet-oldie .leaflet-popup-tip {
|
||||
border: 1px solid #999;
|
||||
}
|
||||
|
||||
|
||||
/* div icon */
|
||||
|
||||
.leaflet-div-icon {
|
||||
background: #fff;
|
||||
border: 1px solid #666;
|
||||
}
|
||||
|
||||
|
||||
/* Tooltip */
|
||||
/* Base styles for the element that has a tooltip */
|
||||
.leaflet-tooltip {
|
||||
position: absolute;
|
||||
padding: 6px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #fff;
|
||||
border-radius: 3px;
|
||||
color: #222;
|
||||
white-space: nowrap;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
||||
}
|
||||
.leaflet-tooltip.leaflet-clickable {
|
||||
cursor: pointer;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.leaflet-tooltip-top:before,
|
||||
.leaflet-tooltip-bottom:before,
|
||||
.leaflet-tooltip-left:before,
|
||||
.leaflet-tooltip-right:before {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
border: 6px solid transparent;
|
||||
background: transparent;
|
||||
content: "";
|
||||
}
|
||||
|
||||
/* Directions */
|
||||
|
||||
.leaflet-tooltip-bottom {
|
||||
margin-top: 6px;
|
||||
}
|
||||
.leaflet-tooltip-top {
|
||||
margin-top: -6px;
|
||||
}
|
||||
.leaflet-tooltip-bottom:before,
|
||||
.leaflet-tooltip-top:before {
|
||||
left: 50%;
|
||||
margin-left: -6px;
|
||||
}
|
||||
.leaflet-tooltip-top:before {
|
||||
bottom: 0;
|
||||
margin-bottom: -12px;
|
||||
border-top-color: #fff;
|
||||
}
|
||||
.leaflet-tooltip-bottom:before {
|
||||
top: 0;
|
||||
margin-top: -12px;
|
||||
margin-left: -6px;
|
||||
border-bottom-color: #fff;
|
||||
}
|
||||
.leaflet-tooltip-left {
|
||||
margin-left: -6px;
|
||||
}
|
||||
.leaflet-tooltip-right {
|
||||
margin-left: 6px;
|
||||
}
|
||||
.leaflet-tooltip-left:before,
|
||||
.leaflet-tooltip-right:before {
|
||||
top: 50%;
|
||||
margin-top: -6px;
|
||||
}
|
||||
.leaflet-tooltip-left:before {
|
||||
right: 0;
|
||||
margin-right: -12px;
|
||||
border-left-color: #fff;
|
||||
}
|
||||
.leaflet-tooltip-right:before {
|
||||
left: 0;
|
||||
margin-left: -12px;
|
||||
border-right-color: #fff;
|
||||
}
|
Before Width: | Height: | Size: 2.4 KiB |
BIN
marker-icon.png
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 618 B |
25
package.json
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
"name": "leaflet.fullscreen",
|
||||
"version": "1.4.5",
|
||||
"description": "Simple plugin for Leaflet that adds fullscreen button to your maps.",
|
||||
"main": "Control.FullScreen.js",
|
||||
"scripts": {
|
||||
"test": "eslint --config .eslintrc Control.FullScreen.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/brunob/leaflet.fullscreen.git"
|
||||
},
|
||||
"keywords": [
|
||||
"leaflet",
|
||||
"plugins",
|
||||
"maps",
|
||||
"fullscreen"
|
||||
],
|
||||
"devDependencies": {
|
||||
"eslint": "2.3.0"
|
||||
},
|
||||
"author": "b_b",
|
||||
"license": "MIT License",
|
||||
"readmeFilename": "README.md"
|
||||
}
|
380
readme.txt
|
@ -1,380 +0,0 @@
|
|||
=== WP GPX Maps ===
|
||||
|
||||
Contributors: bastianonm, Stephan Klein, Michel Selerin, TosattoSimonePio, Kniebremser
|
||||
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8VHWLRW6JBTML
|
||||
Tags: maps, gpx, gps, graph, chart, leaflet, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence
|
||||
Requires at least: 4.6.0
|
||||
Tested up to: 5.2.1
|
||||
Stable tag: 1.7.00
|
||||
|
||||
Draws a GPX track with altitude graph. You can also display your nextgen gallery images in the map.
|
||||
|
||||
== Description ==
|
||||
|
||||
This plugin has, as input, the GPX file with the track you've made and as output it shows the map of the track and an interactive altitude graph (where available).
|
||||
|
||||
Fully configurable:
|
||||
|
||||
- Custom colors
|
||||
- Custom icons
|
||||
- Multiple language support
|
||||
|
||||
Supported charts:
|
||||
|
||||
- Altitude
|
||||
- Speed
|
||||
- Heart rate
|
||||
- Temperature
|
||||
- Cadence
|
||||
- Grade
|
||||
|
||||
NextGen Gallery Integration:
|
||||
|
||||
Display your NextGen Gallery images inside the map!
|
||||
Even if you don't have a GPS camera, this plugin can retrive the image position starting from the image date and your GPX file.
|
||||
|
||||
Post Attachments Integration:
|
||||
|
||||
This version is extended by: <a href="https://klein-gedruckt.de/2015/03/wordpress-plugin-wp-gpx-maps/" target="_blank" rel="noopener noreferrer">Stephan Klein</a> and supports displaying all images attached to a post without using NGG.
|
||||
|
||||
Try this plugin: <a href="https://devfarm.it/wp-gpx-maps-demo/" target="_blank" rel="noopener noreferrer">https://devfarm.it/wp-gpx-maps-demo/</a>
|
||||
|
||||
Support:
|
||||
|
||||
If you need help, please use: <a href="http://www.devfarm.it/forums/forum/wp-gpx-maps/" target="_blank" rel="noopener noreferrer">www.devfarm.it Support Forum</a>
|
||||
Would you like to help fix bugs or further develop the plugin? On <a href="https://github.com/devfarm-it/wp-gpx-maps" target="_blank" rel="noopener noreferrer">Github</a> you can contribuite easly with your code.
|
||||
|
||||
Translations:
|
||||
|
||||
Translators are welcome to contribute to the plugin. Please use the <a href="https://translate.wordpress.org/projects/wp-plugins/wp-gpx-maps/)" target="_blank" rel="noopener noreferrer">WordPress translation website</a>.
|
||||
|
||||
The language files in the plugin contain 19 translatable texts for 14 languages:
|
||||
|
||||
- Catalan ca
|
||||
- Dutch nl_NL
|
||||
- English (default)
|
||||
- French fr_FR
|
||||
- German de_DE
|
||||
- Hungarian hu_HU
|
||||
- Italian it_IT
|
||||
- Norwegian nb_NO
|
||||
- Polish pl_PL
|
||||
- Portuguese (Brazilian) pt_BR
|
||||
- Russian ru_RU
|
||||
- Spanish es_ES
|
||||
- Swedish sv_SE
|
||||
- Turkish tr_TR
|
||||
- Bulgarian bg_BG
|
||||
- Slovak cs_CZ
|
||||
- Norwegian nb_NO
|
||||
- Japanese ja_JP
|
||||
|
||||
(Many thanks to all guys who helped me with the translations)
|
||||
|
||||
Currently are 222 texts are translatable in the plugin.
|
||||
|
||||
With your help, the plugin can be translated into any language. For updating the language file you no longer need to wait for a new version of the plugin.
|
||||
Are 95% WordPress generates a new language file for your language.
|
||||
If the translation is available via WP Translate, the language file will be deleted in the next version of the plugin.
|
||||
Please also help with the translation of the readme. The more languages that are available, the wider the spread of the plugin will be.
|
||||
|
||||
Supported GPX namespaces are:
|
||||
|
||||
1. http://www.topografix.com/GPX/1/0
|
||||
|
||||
1. <a href="http://www.topografix.com/GPX/1/1" target="_blank" rel="noopener noreferrer">www.topografix.com/GPX/1/1</a>
|
||||
|
||||
1. http://www.garmin.com/xmlschemas/GpxExtensions/v3
|
||||
|
||||
1. http://www.garmin.com/xmlschemas/TrackPointExtension/v1
|
||||
|
||||
Thanks to: <a href="http://www.securcube.net/" target="_blank" rel="noopener noreferrer">www.securcube.net</a>, <a href="http://www.devfarm.it/" target="_blank" rel="noopener noreferrer">www.devfarm.it</a>
|
||||
|
||||
Icons made by <a href="https://www.freepik.com/" target="_blank" rel="noopener noreferrer">Freepik</a> from <a href="https://www.flaticon.com/" target="_blank" rel="noopener noreferrer">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" target="_blank" rel="noopener noreferrer">Creative Commons BY 3.0</a>
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. Use the classic wordpress plugin installer or copy the plugins folder to the `/wp-content/plugins/` directory
|
||||
|
||||
1. Activate the plugin through the 'Plugins' menu in WordPress
|
||||
|
||||
1. Add the shortcode [sgpx gpx=">relative path to your gpx<"] or [sgpx gpx=">http://somesite.com/files/yourfile.gpx<"]
|
||||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
= Which shortcode attributes are available? =
|
||||
|
||||
You can use the following shortcodes:
|
||||
|
||||
1. gpx: Relative path to the GPX file
|
||||
1. width: Width in pixels
|
||||
1. mheight: Map height
|
||||
1. gheight: Graph height
|
||||
1. skipcache: Do not use cache. If TRUE might be very slow (default is false)
|
||||
1. download: Allow users to download your GPX file (default is false)
|
||||
1. summary: Print summary details of your GPX track (default is false)
|
||||
1. summarytotlen: Print total distance in summary table (default is false)
|
||||
1. summarymaxele: Print max elevation in summary table (default is false)
|
||||
1. summaryminele: Print min Elevation in summary table (default is false)
|
||||
1. summaryeleup: Print total climbing in summary table (default is false)
|
||||
1. summaryeledown: Print total descent in summary table (default is false)
|
||||
1. summaryavgspeed: Print average Speed in summary table (default is false)
|
||||
1. summarytotaltime: Print total time in summary table (default is false)
|
||||
1. mtype: Map available types are: HYBRID, ROADMAP, SATELLITE, TERRAIN, OSM1 (Open Street Map), OSM2 (Open Cycle Map), OSM4 (Open Cycle Map - Transport), OSM5 (Open Cycle Map - Landscape), OSM6 (MapToolKit - Terrain), OSM7 (Open Street Map - Humanitarian map style), OSM 9 (Hike & Bike), OSM10 (Open Sea Map)
|
||||
1. mlinecolor: Map line color (default is #3366cc)
|
||||
1. zoomonscrollwheel: Zoom on map when mouse scroll wheel (default is false)
|
||||
1. waypoints: Print the gpx waypoints inside the map (default is false)
|
||||
1. startIcon: Start track icon
|
||||
1. endIcon: End track icon
|
||||
1. currentIcon: Current position icon (when mouse hover)
|
||||
1. waypointicon: Waypoint custom icon
|
||||
1. showele: Show elevation data inside the chart (default is true)
|
||||
1. uom: Distance/altitude possible unit of measure (0 = meters, 1 = feet/miles, 2 = meters/kilometers, 3 = meters/nautical miles, 4 = meters/miles, 5 = feet/nautical miles)
|
||||
1. glinecolor: Altitude line color (default is #3366cc)
|
||||
1. chartFrom1: Minimun value for altitude chart
|
||||
1. chartTo1: Maxumin value for altitude chart
|
||||
1. showspeed: Show speed inside the chart (default is false)
|
||||
1. glinecolorspeed: Speed line color (default is #ff0000)
|
||||
1. uomspeed: Unit of measure for speed (0 = m/s, 1 = km/h, 2 = miles/h, 3 = min/km, 4 = min/miles, 5 = Nautical Miles/Hour (Knots), 6 = min/100 meters)
|
||||
1. chartFrom2: Minimun value for speed chart
|
||||
1. chartTo2: Maxumin value for speed chart
|
||||
1. showhr: Show heart rate inside the chart (default is false)
|
||||
1. glinecolorhr: Heart rate line color (default is #ff77bd)
|
||||
1. showatemp: Show temperature inside the chart (default is false)
|
||||
1. glinecoloratemp: Temperature line color (default is #ff77bd)
|
||||
1. showcad: Show cadence inside the chart (default is false)
|
||||
1. glinecolorcad: Cadence line color (default is #beecff)
|
||||
1. showgrade: Show grade inside the chart (default is false)
|
||||
1. glinecolorgrade: Grade line color (default is #beecff)
|
||||
1. nggalleries: NextGen Gallery id or a list of Galleries id separated by a comma
|
||||
1. ngimages: NextGen Image id or a list of Images id separated by a comma
|
||||
1. attachments: Show all images that are attached to post (default is false)
|
||||
1. dtoffset: The difference (in seconds) between your gpx tool date and your camera date
|
||||
1. pointsoffset: Skip points closer than XX meters (default is 10)
|
||||
1. donotreducegpx: Print all the point without reduce it (default is false)
|
||||
|
||||
= What happening if I've a very large GPX files? =
|
||||
|
||||
This plugin will print a small amout of points to speedup javascript and pageload.
|
||||
|
||||
= Is it free? =
|
||||
|
||||
Yes!
|
||||
|
||||
== Screenshots ==
|
||||
1. Simple Gpx
|
||||
1. Gpx with waypoints
|
||||
1. Admin area - List of tracks
|
||||
1. Admin area - Settings
|
||||
1. Altitude & Speed
|
||||
1. Altitude & Speed & Heart rate
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.7.00 =
|
||||
* Added: Authors can upload GPX tracks in a folder called as *your user name*, inside [../wp-upload dir/gpx/[*your user name*] (thanks to wildcomputations)
|
||||
* Added: Authors an Admins can see the current values for shortcodes in help tab
|
||||
* Added: Button to instant copy the shortcode of the selected GPX file in the tab track
|
||||
* Added: different size logos for the plugin store (icon.svg, icon128x128.png and icon256x256.png) [inside ../plugins/wp-gpx-maps/assets]
|
||||
* Changed: Settings tab is for non-Admin users is not more visible
|
||||
* Tweak: Help tab is easier to read
|
||||
* Tweak: Plugin is now complete translatable (Backend + Frontend)
|
||||
* Tweak: WordPress coding standards
|
||||
* Upgrade: Leaflet to 1.5.1
|
||||
* Upgrade: leaflet.fullscreen to 1.4.5
|
||||
* Upgrade: Chart.min.js to 2.8.0
|
||||
= 1.6.07 =
|
||||
* resolve admin error
|
||||
= 1.6.06 =
|
||||
* Added average values under the graph (thanks to cyclinggeorgian)
|
||||
= 1.6.04 =
|
||||
* NGG gallery is working
|
||||
* Getting HR, Cad and Temp working again (thanks to cyclinggeorgian)
|
||||
* Fix javascript errors
|
||||
* Fix multiple traks gpx
|
||||
= 1.6.03 =
|
||||
* Fix syntax error causing graph not to display (thanks to nickstabler)
|
||||
= 1.6.02 =
|
||||
* Resolved errors with start and end icons
|
||||
= 1.6.01 =
|
||||
* Removed Gogole maps. Leafletjs instead.
|
||||
* -- NextGen Gallery is not working, due next gen image format changed -- I'll fix soon
|
||||
= 1.5.05 =
|
||||
* renamed javascript functions to avoid collision with other plugins
|
||||
* reduced chart line thickness
|
||||
= 1.5.04 =
|
||||
* fix uom
|
||||
* fix file not found
|
||||
= 1.5.03 =
|
||||
* fix random error
|
||||
= 1.5.02 =
|
||||
* Security improvements
|
||||
= 1.5.01 =
|
||||
* Improved security
|
||||
* Included javascript
|
||||
* Multiple file upload
|
||||
* Implemented sorting in file list
|
||||
* Renamed internal function to improve wp compatibility
|
||||
= 1.5.00 =
|
||||
* replaced highcharts with chartjs. This is a forced choice due highcharts license issue, view: https://devfarm.it/wordpress-plugin/wordpress-plugin-directory-notice-wp-gpx-maps-temporarily-disabled/
|
||||
= 1.3.16 =
|
||||
* Added Norwegian nb_NO translation (thanks to thordivel)
|
||||
* Added Japanese ja_JP translation (thanks to dentos)
|
||||
= 1.3.15 =
|
||||
* Switched to HTTPS where possible (thanks to delitestudio)
|
||||
= 1.3.14 =
|
||||
* Added Thunderforest Api Key on settings: for OpenCycleMap
|
||||
= 1.3.13 =
|
||||
* Added google maps api key on settings
|
||||
* Removed parameter 'sensor' on google maps js
|
||||
* Added unit of measure of speed for swimmers: min/100 meters
|
||||
= 1.3.12 =
|
||||
* Fix incompatibility with Debian PHP7 (thanks to phbaer) https://github.com/devfarm-it/wp-gpx-maps/pull/5
|
||||
= 1.3.10 =
|
||||
* Improved german translations (thanks to Konrad) http://tadesse.de/7882/2015-wanderung-ostrov-tisa-ii/
|
||||
= 1.3.9 =
|
||||
* Retrieve waypoints in JSON, possibility to add a custom marker (Changed by Michel Selerin)
|
||||
= 1.3.8 =
|
||||
* Improved Google Maps visualization
|
||||
= 1.3.7 =
|
||||
* NextGen Gallery's Attachment support. Thanks to Stephan Klein (https://klein-gedruckt.de/2015/03/wordpress-plugin-wp-gpx-maps/)
|
||||
= 1.3.6 =
|
||||
* Fix: remote file download issue
|
||||
* Fix: download file link with WPML
|
||||
* Improved cache with filetime (thanks to David)
|
||||
= 1.3.5 =
|
||||
* Fix: Garmin cadence again
|
||||
* Fix: WP Tabs
|
||||
= 1.3.4 =
|
||||
* Fix: Garmin cadence
|
||||
* Infowindows closing on mouseout
|
||||
= 1.3.3 =
|
||||
* Add feet/Nautical Miles units (thanks to elperepat)
|
||||
* Update OpenStreetMaps Credits
|
||||
* WP Tabs fix
|
||||
= 1.3.2 =
|
||||
* fix: left axis not visible (downgrade highcharts to v3.0.10)
|
||||
* fix: fullscreen map js error
|
||||
= 1.3.1 =
|
||||
* fix: http/https javascript registration
|
||||
* fix: full screen map css issue
|
||||
= 1.3.0 =
|
||||
* Speed improvement
|
||||
* Rewritten js classes
|
||||
* Added Temperature chart
|
||||
* Added HTML5 Gps position (you can now follow the gpx with your mobile phone/tablet/pc)
|
||||
= 1.2.6 =
|
||||
* Speed improvement
|
||||
= 1.2.5 =
|
||||
* Added Catalan translation, thanks to Edgar
|
||||
* Updated Spanish translation, thanks to Dani
|
||||
* Added different types of distance: Normal, Flat (don't consider altitude) and Climb distance
|
||||
= 1.2.4 =
|
||||
* Added Bulgarian translation, thanks to Svilen Savov
|
||||
* Added possibility to hide the elevation chart
|
||||
= 1.2.2 =
|
||||
* Smaller map type selector
|
||||
* New map: MapToolKit - Terrain
|
||||
* Fix: Google maps exception for NextGen Gallery
|
||||
= 1.2.1 =
|
||||
* Fix: NextGen Gallery 1.9 compatibility
|
||||
= 1.2.0 =
|
||||
* NextGen Gallery 2 support
|
||||
* NextGen Gallery Pro support
|
||||
= 1.1.46 =
|
||||
* Added meters/miles chart unit of measure
|
||||
* Added Russian translation, thanks to G.A.P
|
||||
= 1.1.45 =
|
||||
* Added nautical miles as distance (Many thanks to Anders)
|
||||
= 1.1.44 =
|
||||
* Added Chart zoom feature
|
||||
* Some small bug fixes
|
||||
= 1.1.43 =
|
||||
* Added Portuguese (Brazilian) translation, thanks to André Ramos
|
||||
* new map: Open Cycle Map - Transport
|
||||
* new map: Open Cycle Map - Landscape
|
||||
= 1.1.42 =
|
||||
* qTranslate compatible
|
||||
= 1.1.41 =
|
||||
* Added Polish translation, thanks to Sebastian
|
||||
* Fix: Spanish translation
|
||||
* Minor javascript improvement
|
||||
= 1.1.40 =
|
||||
* Improved italian translation
|
||||
* Added grade chart (beta)
|
||||
= 1.1.39 =
|
||||
* Added French translation, thanks to Hervé
|
||||
* Added Nautical Miles per Hour (Knots) unit of measure
|
||||
= 1.1.38 =
|
||||
* Fix: garmin gpx cadence and heart rate
|
||||
* Updated Turkish translation, thanks to Edip
|
||||
* Added Hungarian translation, thanks to Tami
|
||||
= 1.1.36 =
|
||||
* Even Editor and Author users can upload their own gpx. Administrators can see all the administrators gpx. The other users can see only their uploads
|
||||
= 1.1.35 =
|
||||
* Fix: In the post list, sometime, the maps was not displaying correctly ( the php rand() function was not working?? )
|
||||
* Various improvements for multi track gpx. Thanks to GPSracks.tv
|
||||
* Summary table is now avaiable even without chart. Thanks to David
|
||||
= 1.1.34 =
|
||||
* 2 decimals for unit of measure min/km and min/mi
|
||||
* translation file updated (a couple of phrases added)
|
||||
* File list reverse order (from the newer to the older)
|
||||
* nggallery integration: division by zero fixed
|
||||
= 1.1.33 =
|
||||
* Decimals reducted to 1 for unit of measure min/km and min/mi
|
||||
* map zoom and center position is working with waypoints only files
|
||||
* automatic scale works again (thanks to MArkus)
|
||||
= 1.1.32 =
|
||||
* You can exclude cache (slower and not recommended)
|
||||
* You can decide what show in the summary table
|
||||
* German translation (thanks to Ali)
|
||||
= 1.1.31 =
|
||||
* Fixed fullscreen map image slideshow
|
||||
= 1.1.30 =
|
||||
* Multi track gpx support
|
||||
* Next Gen Gallery images positions derived from date. You can adjust the date with the shortcode attribute dtoffset
|
||||
* If you set Chart Height (shortcode gheight) = 0 means hide the graph
|
||||
* Fix: All images should work, independent from browser cache
|
||||
= 1.1.29 =
|
||||
* Decimal separator is working with all the browsers
|
||||
* minutes per mile and minutes per kilometer was wrong
|
||||
= 1.1.28 =
|
||||
* Decimal and thousand separator derived from browser language
|
||||
* Added summary table (see settings): Total distance, Max elevation, Min elevation, Total climbing, Total descent, Average speed
|
||||
* Added 2 speed units of measure: minutes per mile and minutes per kilometer
|
||||
= 1.1.26 =
|
||||
* Multilanguage implementation (only front-end). I've implemented the italian one, I hope somebody will help me with other languages..
|
||||
* Map Full screen mode (I'm sure it's not working in ie6. don't even ask!)
|
||||
* Added waypoint custom icon
|
||||
= 1.1.25 =
|
||||
* Added possibility to download your gpx
|
||||
= 1.1.23 =
|
||||
* Security fix, please update!
|
||||
= 1.1.22 =
|
||||
* enable map zoom on scroll wheel (check settings)
|
||||
* test attributes in get params
|
||||
= 1.1.21 =
|
||||
* google maps images fixed (templates with bad css)
|
||||
* upgrade to google maps 3.9
|
||||
= 1.1.20 =
|
||||
* google maps images fixed in <a href="http://wordpress.org/extend/themes/yoko">Yoko theme</a>
|
||||
= 1.1.19 =
|
||||
* include jQuery if needed
|
||||
= 1.1.17 =
|
||||
* Remove zero values from cadence and heart rate charts
|
||||
* nextgen gallery improvement
|
||||
= 1.1.16 =
|
||||
* Cadence chart (where available)
|
||||
* minor bug fixes
|
||||
= 1.1.15 =
|
||||
* migration from google chart to highcharts. Highcharts are much better than google chart! This is the base for a new serie of improvements. Stay in touch for the next releases!
|
||||
* heart rate chart (where available)
|
||||
= 1.1.14 =
|
||||
* added css to avoid map bars display issue
|
||||
= 1.1.13 =
|
||||
* added new types of maps: Open Street Map, Open Cycle Map, Hike & Bike.
|
||||
* fixed nextgen gallery caching problem
|
||||
= 1.1.12 =
|
||||
* nextgen gallery display bug fixes
|
||||
|
||||
== Upgrade Notice ==
|
BIN
showImages.png
Before Width: | Height: | Size: 3.1 KiB |
|
@ -1,93 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2013-11-16 23:13+0200\n"
|
||||
"Last-Translator: Svilen Savov <svilen@svilen.org>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.7\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Височина"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Текуща Позиция"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Скорост"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Пулс"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Ритъм"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Покажи на цял екран"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Изход от цял екран"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Скрий Снимките"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Покажи Снкмките"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Центрирай"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Обща дистанция"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Максимална височина"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Минимална височина"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Общо изкачване"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Общо спускане"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Средна скорост"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Общо Време"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Свали"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Запази Промените"
|
|
@ -1,93 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2013-12-14 21:43+0100\n"
|
||||
"Last-Translator: edgar <forced_to_confess@yahoo.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.5\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Altitud"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Posició actual"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Velocitat"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Ritme cardíac"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Cadència"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Anar a pantalla completa"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Sortir de pantalla completa"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Amagar imatges"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Mostrar imatges"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Centrar"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Distància total"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Altitud màxima"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Altitud mínima"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Ascensió total"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Descens total"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Velocitat mitjana"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Temps total"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Descarregar"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Desar canvis"
|
|
@ -1,95 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-11-21 11:14+0100\n"
|
||||
"PO-Revision-Date: 2015-11-21 11:18+0100\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.8.6\n"
|
||||
"Last-Translator: \n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
||||
"Language: cs_CZ\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Nadmořská výška"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Aktuální pozice"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Rychlost"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Srdeční tep"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Kadence"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Zvětšit"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Zmenšit"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Skrýt obrázky"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Zobrazit obrázky"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Vycentrovat"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Celková vzdálenost"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Max. výška"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Min. výška"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Celkem nastoupáno"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Celkem naklesáno"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Průměrná rychlost"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Celkový čas"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Stáhnout"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Uložit změny"
|
1006
wp-gpx-maps-de_DE.po
|
@ -1,93 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:42+0100\n"
|
||||
"PO-Revision-Date: 2013-12-14 21:43+0100\n"
|
||||
"Last-Translator: edgar <forced_to_confess@yahoo.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.5\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Altitud"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Posición actual"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Velocidad"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Ritmo cardíaco"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Cadencia"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Ir a pantalla completa"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Salir de pantalla completa"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Ocultar Imágenes"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Mostrar Imágenes"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Centrar"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Distancia total"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Elevación máxima"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Elevación mínima"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Total ascendido"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Total descendido"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Velocidad media"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Tiempo total"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Descargar"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Salvar cambios"
|
|
@ -1,81 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-08-01 13:41+0100\n"
|
||||
"PO-Revision-Date: 2012-11-01 22:02+0100\n"
|
||||
"Last-Translator: Hervé <herve.rieu@free.fr>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Altitude"
|
||||
msgstr "Altitude"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Current Position"
|
||||
msgstr "Position actuelle"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Speed"
|
||||
msgstr "Vitesse"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Heart rate"
|
||||
msgstr "Fréquence cardiaque"
|
||||
|
||||
#: ../wp-gpx-maps.php:477
|
||||
msgid "Cadence"
|
||||
msgstr "Cadence"
|
||||
|
||||
#: ../wp-gpx-maps.php:478
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Plein écran"
|
||||
|
||||
#: ../wp-gpx-maps.php:479
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Sortir du plein écran"
|
||||
|
||||
#: ../wp-gpx-maps.php:492
|
||||
msgid "Total distance"
|
||||
msgstr "Distance totale"
|
||||
|
||||
#: ../wp-gpx-maps.php:497
|
||||
msgid "Max elevation"
|
||||
msgstr "Altitude maximum"
|
||||
|
||||
#: ../wp-gpx-maps.php:499
|
||||
msgid "Min elevation"
|
||||
msgstr "Altitude minimum"
|
||||
|
||||
#: ../wp-gpx-maps.php:501
|
||||
msgid "Total climbing"
|
||||
msgstr "Denivelé total positif "
|
||||
|
||||
#: ../wp-gpx-maps.php:503
|
||||
msgid "Total descent"
|
||||
msgstr "Denivelé total négatif"
|
||||
|
||||
#: ../wp-gpx-maps.php:507
|
||||
msgid "Average speed"
|
||||
msgstr "Vitesse moyenne"
|
||||
|
||||
#: ../wp-gpx-maps.php:512
|
||||
msgid "Total Time"
|
||||
msgstr "Durée totale"
|
||||
|
||||
#: ../wp-gpx-maps.php:528
|
||||
msgid "Download"
|
||||
msgstr "Télécharger"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Enregistrer"
|
|
@ -1,92 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:42+0100\n"
|
||||
"PO-Revision-Date: 2012-10-30 14:43+0100\n"
|
||||
"Last-Translator: Biró Tamás <tami@freemail.hu>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Magasság"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Aktuális pozíció"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Sebesség"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Szívritmus"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Kadencia"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Teljes képernyő BE"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Teljes képernyő KI"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Teljes távolság"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Max magasság"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Min magasság"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Össz. emelkedés"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Össz. ereszkedés"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Átlagsebesség"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Teljes Idő"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Letöltés"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Beállítások mentése"
|
|
@ -1,94 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:48+0100\n"
|
||||
"PO-Revision-Date: 2013-02-04 09:22+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: it_IT\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Altitudine"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Posizione Corrente"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Velocità"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Battito Cardiaco"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Cadenza"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Schermo intero"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Torna a dimensioni originali"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Nascondi immagini"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Mostra immagini"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Ritorna al centro della mappa"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Distanza totale"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Altitudine massima"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Altitudine minima"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Totale salita"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Totale discesa"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Velocità media"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Tempo totale"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Scarica"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Salva"
|
|
@ -1,94 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2017-10-26 11:18+0900\n"
|
||||
"Last-Translator: Taisuke Shimamoto <dentostar@gmail.com>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x;_ex;_nx\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: Poedit 1.5.7\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "標高"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "現在位置"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "速度"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "心拍数"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "ケイデンス"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "全画面表示"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "全画面を閉じる"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "画像を非表示"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "画像を表示"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "中心に戻る"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "走行距離"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "最大標高"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "最小標高"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "累積上昇"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "累積下降"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "平均速度"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "総走行時間"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "ダウンロード"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "変更を保存"
|
|
@ -1,95 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2017-09-21 20:50+0000\n"
|
||||
"Last-Translator: Thor Fredrik Eie <thordivel@gmail.com>\n"
|
||||
"Language-Team: Norwegian (Bokmål)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
"Language: nb-NO\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
||||
"X-Generator: Loco - https://localise.biz/"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Kadens"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Høyde"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Nåværende posisjon"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Fart"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Hjerterate"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Fullskjerm"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Avslutt fullskjerm"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Skjul bilder"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Vis bilder"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Sentrer"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Total distanse"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Maksimum høyde"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Minimum høyde"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Total klatring"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Total nedstigning"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Gjennomsnittsfart"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Total tid"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Last ned"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Lagre endringer"
|
|
@ -1,93 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2012-10-30 14:41+0100\n"
|
||||
"Last-Translator: Simon Koelewijn\n"
|
||||
"Language-Team: \n"
|
||||
"Language: nl_NL\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Hoogte"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Huidige Positie"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Snelheid"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Hartslag"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Cadans"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Volledige Scherm"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Verlaat Volledige Scherm"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Download"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Wijzigingen Opslaan"
|
|
@ -1,95 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2013-03-10 12:33+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.5\n"
|
||||
"Language: pl_PL\n"
|
||||
"X-Poedit-SourceCharset: UTF-8\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Wysokość"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Aktualna pozycja"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Prędkość"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Tętno"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Kadencja"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Pełny ekran"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Zamknij pełny ekran"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Ukryj obrazy"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Pokaż obrazy"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Wyśrodkuj"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Całkowity dystans"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Najwyższy punkt"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Najniższy punkt"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Wyskokość podjazdów"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Wysokość zjazdów"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Średnia prędkość"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Łączny czas"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Pobieranie"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Zapisz zmiany"
|
|
@ -1,93 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:42+0100\n"
|
||||
"PO-Revision-Date: 2013-04-23 18:36-0300\n"
|
||||
"Last-Translator: André Ramos <kurukuru@ig.com.br>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Altitude"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Posição atual"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Velocidade"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Ritmo cardíaco"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Cadência"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Tela cheia"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Restaura janela"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Ocultar imagens"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Centralizar"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Distância total"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Elevação máxima"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Elevação mínima"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Total subida"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Total descida"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Velocidade média"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Tempo total"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Baixar arquivo"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Salvar alterações"
|
|
@ -1,93 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2013-07-17 20:50+0400\n"
|
||||
"Last-Translator: G.A.P <g.a.p@mail.ru>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.7\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Высота"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Текущая позиция"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Скорость"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Пульс"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Каденс"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "На весь экран"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Свернуть в окно"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Скрыть картинки"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr "Показать картинки"
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "По центру"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Дистанция"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Максимальная высота"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Минимальная высота"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Подъём"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Спуск"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Средняя скорость"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Время"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Скачать"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Сохранить изменения"
|
|
@ -1,93 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:41+0100\n"
|
||||
"PO-Revision-Date: 2012-10-30 14:41+0100\n"
|
||||
"Last-Translator: Per Bjälevik <per.bjalevik@tauzero.se>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Höjd"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Aktuell position"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Hastighet"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Hjärtfrekvens"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Kadens"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Gå till fullskärm"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Avsluta fullskärm"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Total distans"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Max höjd"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Min höjd"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Höjdstigning"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Höjdförlust"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Medelhastighet"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
#, fuzzy
|
||||
msgid "Total Time"
|
||||
msgstr "Total distans"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Ladda ner"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Spara ändringar"
|
|
@ -1,94 +0,0 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:42+0100\n"
|
||||
"PO-Revision-Date: 2012-10-30 14:42+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: tr_TR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Rakım"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Güncel Pozisyon"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Hız"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Nabız"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Kadans"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Tam Ekran Gör"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Tam Ekrandan Çık"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Toplam Mesafe"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Maks. İrtifa"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Min. İrtifa"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Toplam Tırmanış"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Toplam İniş"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Ortalama Hız"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Toplam Süre"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "İndir"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Değişiklikleri Kaydet"
|
383
wp-gpx-maps.php
|
@ -23,7 +23,6 @@ add_shortcode( 'sgpxf', 'handle_WP_GPX_Maps_folder_Shortcodes' );
|
|||
register_activation_hook( __FILE__, 'WP_GPX_Maps_install' );
|
||||
register_deactivation_hook( __FILE__, 'WP_GPX_Maps_remove' );
|
||||
add_filter( 'plugin_action_links', 'WP_GPX_Maps_action_links', 10, 2 );
|
||||
add_action( 'wp_print_styles', 'print_WP_GPX_Maps_styles' );
|
||||
add_action( 'wp_enqueue_scripts', 'enqueue_WP_GPX_Maps_scripts' );
|
||||
add_action( 'admin_enqueue_scripts', 'enqueue_WP_GPX_Maps_scripts_admin' );
|
||||
add_action( 'plugins_loaded', 'WP_GPX_Maps_lang_init' );
|
||||
|
@ -65,29 +64,38 @@ function enqueue_WP_GPX_Maps_scripts_admin( $hook ) {
|
|||
if ( strpos( $hook, 'WP-GPX-Maps' ) !== false ) {
|
||||
|
||||
/* Admin Style CSS */
|
||||
wp_register_style( 'admin-stye', plugins_url( 'css/admin-style.css', __FILE__ ), array(), '1.0.0' );
|
||||
wp_enqueue_style( 'admin-stye' );
|
||||
wp_register_style( 'admin-style', plugins_url( 'css/admin-style.css', __FILE__ ), array(), '1.0.0' );
|
||||
wp_enqueue_style( 'admin-style' );
|
||||
/* mColorPicker */
|
||||
wp_register_script( 'mColorPicker', plugins_url( '/js/mColorPicker_min.js', __FILE__ ), array(), '1.0 r39' );
|
||||
wp_enqueue_script( 'mColorPicker' );
|
||||
/* bootstrap-table */
|
||||
wp_register_script( 'bootstrap-table', plugins_url( '/js/bootstrap-table.min.js', __FILE__ ), array(), '1.11.1' );
|
||||
wp_register_script( 'bootstrap-table', plugins_url( '/js/bootstrap-table.js', __FILE__ ), array(), '1.13.2' );
|
||||
wp_enqueue_script( 'bootstrap-table' );
|
||||
wp_register_style( 'bootstrap-table', plugins_url( '/css/bootstrap-table.min.css', __FILE__ ), array(), '1.11.1' );
|
||||
wp_register_style( 'bootstrap-table', plugins_url( '/css/bootstrap-table.css', __FILE__ ), array(), '1.13.2' );
|
||||
wp_enqueue_style( 'bootstrap-table' );
|
||||
}
|
||||
}
|
||||
|
||||
function enqueue_WP_GPX_Maps_scripts() {
|
||||
|
||||
/* leaflet */
|
||||
/* Output Style CSS */
|
||||
wp_register_style( 'output-style', plugins_url( 'css/output-style.css', __FILE__ ), array(), '1.0.0' );
|
||||
wp_enqueue_style( 'output-style' );
|
||||
|
||||
/* Leaflet */
|
||||
wp_register_style( 'leaflet', plugins_url( '/ThirdParties/Leaflet_1.5.1/leaflet.css', __FILE__ ), array(), '1.5.1' );
|
||||
wp_enqueue_style( 'leaflet' );
|
||||
|
||||
/* Leaflet.markercluster */
|
||||
wp_register_style( 'leaflet.markercluster', plugins_url( '/ThirdParties/Leaflet.markercluster-1.4.1/MarkerCluster.css', __FILE__ ), array(), '1.4.1,' );
|
||||
wp_enqueue_style( 'leaflet.markercluster' );
|
||||
|
||||
/* Leaflet.Photo */
|
||||
wp_register_style( 'leaflet.Photo', plugins_url( '/ThirdParties/Leaflet.Photo/Leaflet.Photo.css', __FILE__ ), array(), '0' );
|
||||
wp_enqueue_style( 'leaflet.Photo' );
|
||||
|
||||
/* Leaflet.fullscreen */
|
||||
wp_register_style( 'leaflet.fullscreen', plugins_url( '/ThirdParties/leaflet.fullscreen-1.4.5/Control.FullScreen.css', __FILE__ ), array(), '1.5.1' );
|
||||
wp_enqueue_style( 'leaflet.fullscreen' );
|
||||
|
||||
|
@ -96,11 +104,12 @@ function enqueue_WP_GPX_Maps_scripts() {
|
|||
wp_register_script( 'leaflet.Photo', plugins_url( '/ThirdParties/Leaflet.Photo/Leaflet.Photo.js', __FILE__ ), array( 'leaflet', 'leaflet.markercluster' ), '0' );
|
||||
wp_register_script( 'leaflet.fullscreen', plugins_url( '/ThirdParties/leaflet.fullscreen-1.4.5/Control.FullScreen.js', __FILE__ ), array( 'leaflet' ), '1.4.5' );
|
||||
|
||||
/* chartjs */
|
||||
/* Chartjs */
|
||||
wp_register_script( 'chartjs', plugins_url( '/js/Chart.min.js', __FILE__ ), array(), '2.8.0' );
|
||||
|
||||
wp_register_script( 'WP-GPX-Maps', plugins_url( '/js/WP-GPX-Maps.js', __FILE__ ), array( 'jquery', 'leaflet', 'chartjs' ), '1.6.02' );
|
||||
|
||||
wp_enqueue_script( 'output-style' );
|
||||
wp_enqueue_script( 'leaflet' );
|
||||
wp_enqueue_script( 'leaflet.markercluster' );
|
||||
wp_enqueue_script( 'leaflet.Photo' );
|
||||
|
@ -110,72 +119,6 @@ function enqueue_WP_GPX_Maps_scripts() {
|
|||
wp_enqueue_script( 'WP-GPX-Maps' );
|
||||
}
|
||||
|
||||
function print_WP_GPX_Maps_styles() {
|
||||
?>
|
||||
|
||||
<style type="text/css">
|
||||
.wpgpxmaps {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#content .wpgpxmaps img,
|
||||
.entry-content .wpgpxmaps img,
|
||||
.wpgpxmaps img {
|
||||
max-width: none;
|
||||
width: none;
|
||||
padding: 0;
|
||||
background: none;
|
||||
margin: 0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.wpgpxmaps .ngimages {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wpgpxmaps .myngimages {
|
||||
border: 1px solid #fff;
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
margin:0;
|
||||
z-index :1;
|
||||
}
|
||||
|
||||
.wpgpxmaps_summary .summarylabel { }
|
||||
.wpgpxmaps_summary .summaryvalue {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.wpgpxmaps .report {
|
||||
line-height :120%;
|
||||
}
|
||||
|
||||
.wpgpxmaps .gmnoprint div:first-child { }
|
||||
.wpgpxmaps .wpgpxmaps_osm_footer {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 13px;
|
||||
margin: 0;
|
||||
z-index: 999;
|
||||
background: WHITE;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.wpgpxmaps .wpgpxmaps_osm_footer span {
|
||||
background: WHITE;
|
||||
padding: 0 6px 6px 6px;
|
||||
vertical-align: baseline;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
function wpgpxmaps_findValue( $attr, $attributeName, $optionName, $defaultValue ) {
|
||||
|
||||
$val = '';
|
||||
|
@ -217,20 +160,20 @@ function handle_WP_GPX_Maps_folder_Shortcodes( $attr, $content = '' ) {
|
|||
$gpx = $folder . DIRECTORY_SEPARATOR . $file;
|
||||
$points = wpgpxmaps_getPoints( $gpx, $pointsoffset, $donotreducegpx, $distanceType );
|
||||
|
||||
$points_maps = '';
|
||||
$points_maps = '';
|
||||
$points_graph_dist = '';
|
||||
$points_graph_ele = '';
|
||||
$points_graph_ele = '';
|
||||
|
||||
if ( is_array ( $points_x_lat ) )
|
||||
if ( is_array( $points_x_lat ) )
|
||||
foreach ( array_keys( $points_x_lat ) as $i ) {
|
||||
|
||||
$_lat = (float) $points_x_lat[$i];
|
||||
$_lon = (float) $points_x_lon[$i];
|
||||
|
||||
if ( $_lat == 0 && $_lon == 0 ) {
|
||||
$points_maps .= 'null,';
|
||||
$points_maps .= 'null,';
|
||||
$points_graph_dist .= 'null,';
|
||||
$points_graph_ele .= 'null,';
|
||||
$points_graph_ele .= 'null,';
|
||||
|
||||
} else {
|
||||
$points_maps .= '[' . number_format( (float) $points_x_lat[$i], 7, '.', '' ) . ',' . number_format( (float) $points_x_lon[$i], 7, '.', '' ) . '],';
|
||||
|
@ -239,7 +182,7 @@ function handle_WP_GPX_Maps_folder_Shortcodes( $attr, $content = '' ) {
|
|||
$_dist = (float) $points->dist[$i];
|
||||
|
||||
if ( $uom == '1' ) {
|
||||
/* miles and feet */
|
||||
/* feet / miles */
|
||||
$_dist *= 0.000621371192;
|
||||
$_ele *= 3.2808399;
|
||||
|
||||
|
@ -248,7 +191,7 @@ function handle_WP_GPX_Maps_folder_Shortcodes( $attr, $content = '' ) {
|
|||
$_dist = (float) ( $_dist / 1000 );
|
||||
|
||||
} elseif ( $uom == '3' ) {
|
||||
/* meters / kilometers / nautical miles */
|
||||
/* meters / nautical miles */
|
||||
$_dist = (float) ( $_dist / 1000 / 1.852 );
|
||||
|
||||
} elseif ( $uom == '4' ) {
|
||||
|
@ -256,7 +199,7 @@ function handle_WP_GPX_Maps_folder_Shortcodes( $attr, $content = '' ) {
|
|||
$_dist *= 0.000621371192;
|
||||
|
||||
} elseif ( $uom == '5' ) {
|
||||
/* meters / kilometers / nautical miles and feet */
|
||||
/* feet / nautical miles */
|
||||
$_dist = (float) ( $_dist / 1000 / 1.852 );
|
||||
$_ele *= 3.2808399;
|
||||
}
|
||||
|
@ -284,7 +227,7 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$download = wpgpxmaps_findValue( $attr, 'download', 'wpgpxmaps_download', '' );
|
||||
$usegpsposition = wpgpxmaps_findValue( $attr, 'usegpsposition', 'wpgpxmaps_usegpsposition', false );
|
||||
/* Print Summary Table */
|
||||
$summary = wpgpxmaps_findValue( $attr, 'summary', 'wpgpxmaps_summary', '' );
|
||||
$summary = wpgpxmaps_findValue( $attr, 'summary', 'wpgpxmaps_summary', false );
|
||||
$p_tot_len = wpgpxmaps_findValue( $attr, 'summarytotlen', 'wpgpxmaps_summary_tot_len', false );
|
||||
$p_max_ele = wpgpxmaps_findValue( $attr, 'summarymaxele', 'wpgpxmaps_summary_max_ele', false );
|
||||
$p_min_ele = wpgpxmaps_findValue( $attr, 'summaryminele', 'wpgpxmaps_summary_min_ele', false );
|
||||
|
@ -306,7 +249,7 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$currentIcon = wpgpxmaps_findValue( $attr, 'currenticon', 'wpgpxmaps_map_current_icon', '' );
|
||||
$waypointIcon = wpgpxmaps_findValue( $attr, 'waypointicon', 'wpgpxmaps_map_waypoint_icon', '' );
|
||||
/* Diagram - Elevation */
|
||||
$showEle = wpgpxmaps_findValue( $attr, 'showele', 'wpgpxmaps_show_elevation', 'true' );
|
||||
$showEle = wpgpxmaps_findValue( $attr, 'showele', 'wpgpxmaps_show_elevation', true );
|
||||
$color_graph = wpgpxmaps_findValue( $attr, 'glinecolor', 'wpgpxmaps_graph_line_color', '#3366cc' );
|
||||
$uom = wpgpxmaps_findValue( $attr, 'uom', 'wpgpxmaps_unit_of_measure', '0' );
|
||||
$chartFrom1 = wpgpxmaps_findValue( $attr, 'chartfrom1', 'wpgpxmaps_graph_offset_from1', '' );
|
||||
|
@ -324,8 +267,8 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$showAtemp = wpgpxmaps_findValue( $attr, 'showatemp', 'wpgpxmaps_show_atemp', false );
|
||||
$color_graph_atemp = wpgpxmaps_findValue( $attr, 'glinecoloratemp', 'wpgpxmaps_graph_line_color_atemp', '#ff77bd' );
|
||||
/* Diagram - Cadence */
|
||||
$showCad = wpgpxmaps_findValue( $attr, 'showcad', 'wpgpxmaps_show_cadence', false );
|
||||
$color_graph_cad = wpgpxmaps_findValue( $attr, 'glinecolorcad', 'wpgpxmaps_graph_line_color_cad', '#beecff' );
|
||||
$showCad = wpgpxmaps_findValue( $attr, 'showcad', 'wpgpxmaps_show_cadence', false );
|
||||
$color_graph_cad = wpgpxmaps_findValue( $attr, 'glinecolorcad', 'wpgpxmaps_graph_line_color_cad', '#beecff' );
|
||||
/* Diagram - Grade */
|
||||
$showGrade = wpgpxmaps_findValue( $attr, 'showgrade', 'wpgpxmaps_show_grade', false );
|
||||
$color_graph_grade = wpgpxmaps_findValue( $attr, 'glinecolorgrade', 'wpgpxmaps_graph_line_color_grade', '#beecff' );
|
||||
|
@ -339,11 +282,9 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$donotreducegpx = wpgpxmaps_findValue( $attr, 'donotreducegpx', 'wpgpxmaps_donotreducegpx', false );
|
||||
$allow_users_upload = wpgpxmaps_findValue( $attr, 'wpgpxmaps_allow_users_upload', 'wpgpxmaps_allow_users_view', false );
|
||||
|
||||
$colors_map = "\"" . implode( "\",\"", ( explode( " ", $color_map ) ) ) . "\"";
|
||||
$colors_map = "\"" . implode( "\",\"", ( explode( ' ', $color_map ) ) ) . "\"";
|
||||
|
||||
$gpxurl = $gpx;
|
||||
|
||||
if ( ! $gpx == null ) {
|
||||
|
||||
/* Add file modification time to cache filename to catch new uploads with same file name */
|
||||
$mtime = wp_gpx_maps_sitePath() . str_replace( array( '/', '\\' ), DIRECTORY_SEPARATOR, trim( $gpx ) );
|
||||
|
@ -420,7 +361,7 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
}
|
||||
}
|
||||
|
||||
$isGpxUrl = ( preg_match( '/^(http(s)?\:\/\/)/', trim( $gpx ) ) == 1);
|
||||
$isGpxUrl = ( preg_match( '/^(http(s)?\:\/\/)/', trim( $gpx ) ) == 1 );
|
||||
|
||||
if ( ( ! isset( $points_maps ) || $points_maps == '' ) && $gpx != '' ) {
|
||||
// if (true) {
|
||||
|
@ -435,9 +376,9 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$gpx = str_replace( array( '/', '\\' ), DIRECTORY_SEPARATOR, $gpx );
|
||||
$gpx = $sitePath . $gpx;
|
||||
}
|
||||
//if ( $gpx == '' ) {
|
||||
// return "No gpx found";
|
||||
//}
|
||||
if ( $gpx == '' ) {
|
||||
return "No gpx found";
|
||||
}
|
||||
|
||||
$points = wpgpxmaps_getPoints( $gpx, $pointsoffset, $donotreducegpx, $distanceType );
|
||||
|
||||
|
@ -498,7 +439,7 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$_dist = (float) $points->dist[$i];
|
||||
|
||||
if ( $uom == '1') {
|
||||
/* miles and feet */
|
||||
/* feet / miles */
|
||||
$_dist *= 0.000621371192;
|
||||
$_ele *= 3.2808399;
|
||||
|
||||
|
@ -507,7 +448,7 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$_dist = (float) ( $_dist / 1000 );
|
||||
|
||||
} elseif ( $uom == '3') {
|
||||
/* meters / kilometers / nautical miles */
|
||||
/* meters / nautical miles */
|
||||
$_dist = (float) ( $_dist / 1000 / 1.852 );
|
||||
|
||||
} elseif ( $uom == '4' ) {
|
||||
|
@ -515,7 +456,7 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$_dist *= 0.000621371192;
|
||||
|
||||
} elseif ( $uom == '5' ) {
|
||||
/* meters / kilometers / nautical miles and feet */
|
||||
/* feet / nautical miles */
|
||||
$_dist = (float) ( $_dist / 1000 / 1.852 );
|
||||
$_ele *= 3.2808399;
|
||||
}
|
||||
|
@ -529,25 +470,25 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
}
|
||||
|
||||
if ( $showHr == true ) {
|
||||
$points_graph_hr .= number_format( $points->hr[$i], 2, '.', '' ).',';
|
||||
$points_graph_hr .= number_format( $points->hr[$i], 2, '.', '' ) . ',';
|
||||
}
|
||||
|
||||
if ( $showAtemp == true ) {
|
||||
$points_graph_atemp .= number_format( $points->atemp[$i], 1, '.', '' ).',';
|
||||
$points_graph_atemp .= number_format( $points->atemp[$i], 1, '.', '' ) . ',';
|
||||
}
|
||||
|
||||
if ( $showCad == true ) {
|
||||
$points_graph_cad .= number_format( $points->cad[$i], 2, '.', '' ).',';
|
||||
$points_graph_cad .= number_format( $points->cad[$i], 2, '.', '' ) . ',';
|
||||
}
|
||||
|
||||
if ( $showGrade == true ) {
|
||||
$points_graph_grade .= number_format( $points->grade[$i], 2, '.', '' ).',';
|
||||
$points_graph_grade .= number_format( $points->grade[$i], 2, '.', '' ) . ',';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $uom == '1' ) {
|
||||
/* miles and feet */
|
||||
/* feet / miles */
|
||||
$tot_len = round( $tot_len * 0.000621371192, 2 ) . ' mi';
|
||||
$max_ele = round( $max_ele * 3.2808399, 0 ) . ' ft';
|
||||
$min_ele = round( $min_ele * 3.2808399, 0 ) . ' ft';
|
||||
|
@ -563,15 +504,15 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$total_ele_down = round( $total_ele_down, 0 ) . ' m';
|
||||
|
||||
} elseif ( $uom == '3' ) {
|
||||
/* meters / kilometers / nautical miles */
|
||||
$tot_len = round( $tot_len / 1000/1.852, 2 ) . ' NM';
|
||||
/* meters / nautical miles */
|
||||
$tot_len = round( $tot_len / 1000 / 1.852, 2 ) . ' NM';
|
||||
$max_ele = round( $max_ele, 0 ) . ' m';
|
||||
$min_ele = round( $min_ele, 0 ) . ' m';
|
||||
$total_ele_up = round( $total_ele_up, 0 ) . ' m';
|
||||
$total_ele_down = round( $total_ele_down, 0 ) . ' m';
|
||||
|
||||
} elseif ( $uom == '4' ) {
|
||||
/* meters / kilometers / nautical miles */
|
||||
/* meters / miles */
|
||||
$tot_len = round( $tot_len * 0.000621371192, 2 ) . ' mi';
|
||||
$max_ele = round( $max_ele, 0 ) . ' m';
|
||||
$min_ele = round( $min_ele, 0 ) . ' m';
|
||||
|
@ -579,8 +520,8 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$total_ele_down = round( $total_ele_down, 0 ) . ' m';
|
||||
|
||||
} elseif ( $uom == '5' ) {
|
||||
/* meters / kilometers / nautical miles and feet */
|
||||
$tot_len = round( $tot_len / 1000/1.852, 2 ) . ' NM';
|
||||
/* feet / nautical miles */
|
||||
$tot_len = round( $tot_len / 1000 / 1.852, 2 ) . ' NM';
|
||||
$max_ele = round( $max_ele * 3.2808399, 0 ) . ' ft';
|
||||
$min_ele = round( $min_ele * 3.2808399, 0 ) . ' ft';
|
||||
$total_ele_up = round( $total_ele_up * 3.2808399, 0 ) . ' ft';
|
||||
|
@ -602,11 +543,11 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$wpoints = wpgpxmaps_getWayPoints( $gpx );
|
||||
$waypoints = wp_json_encode( $wpoints );
|
||||
}
|
||||
if ( $showEle == 'false' ) {
|
||||
$points_graph_ele = "";
|
||||
if ( $showEle == false ) {
|
||||
$points_graph_ele = '';
|
||||
}
|
||||
|
||||
$p = "/(,|,null,)$/";
|
||||
$p = '/(,|,null,)$/';
|
||||
|
||||
$points_maps = preg_replace( $p, '', $points_maps );
|
||||
|
||||
|
@ -642,23 +583,15 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$points_graph_grade = '';
|
||||
|
||||
}
|
||||
} else {
|
||||
// $gpx == null (no GPX track to display, only images...)
|
||||
$points_x_time = array();
|
||||
$points_x_lat = array();
|
||||
$points_x_lon = array();
|
||||
$waypoints = '[]';
|
||||
$points_maps = '';
|
||||
}
|
||||
|
||||
$ngimgs_data = '';
|
||||
if ( $ngGalleries != '' || $ngImages != '' ) {
|
||||
$ngimgs = getNGGalleryImages( $ngGalleries, $ngImages, $points_x_time, $points_x_lat, $points_x_lon, $dtoffset, $error );
|
||||
$ngimgs_data ='';
|
||||
$ngimgs_data = '';
|
||||
|
||||
foreach ( $ngimgs as $img ) {
|
||||
$data = $img['data'];
|
||||
$data = str_replace( "\n", "", $data );
|
||||
$data = str_replace( '\n', '', $data );
|
||||
$ngimgs_data .= '<span lat="' . $img['lat'] . '" lon="' . $img['lon'] . '">' . $data . '</span>';
|
||||
}
|
||||
}
|
||||
|
@ -667,12 +600,12 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$attimgs = wpgpxmaps_getAttachedImages( $points_x_time, $points_x_lat, $points_x_lon, $dtoffset, $error );
|
||||
foreach ( $attimgs as $img ) {
|
||||
$data = $img['data'];
|
||||
$data = str_replace( "\n", "", $data );
|
||||
$data = str_replace( '\n', '', $data );
|
||||
$ngimgs_data .= '<span lat="' . $img['lat'] . '" lon="' . $img['lon'] . '">' . $data . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! ( $skipcache == true ) && ! ( $gpx == null ) ) {
|
||||
if ( ! ( $skipcache == true ) ) {
|
||||
|
||||
@file_put_contents( $gpxcache, serialize( array(
|
||||
'points_maps' => $points_maps,
|
||||
|
@ -704,7 +637,7 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
@chmod( $gpxcache, 0755 );
|
||||
}
|
||||
|
||||
$hideGraph = ( $gh == '0' || $gh == '0px' || $gpx == null );
|
||||
$hideGraph = ( $gh == '0' || $gh == '0px' );
|
||||
|
||||
global $post;
|
||||
$r = $post->ID . '_' . rand( 1,5000000 );
|
||||
|
@ -724,55 +657,56 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
jQuery("#wpgpxmaps_' . $r . '").wpgpxmaps({
|
||||
targetId : "' . $r . '",
|
||||
mapType : "' . $mt . '",
|
||||
mapData : [' . $points_maps . '],
|
||||
graphDist : [' . ( $hideGraph ? '' : $points_graph_dist ) . '],
|
||||
graphEle : [' . ( $hideGraph ? '' : $points_graph_ele ) . '],
|
||||
graphSpeed : [' . ( $hideGraph ? '' : $points_graph_speed ) . '],
|
||||
graphHr : [' . ( $hideGraph ? '' : $points_graph_hr ) . '],
|
||||
graphAtemp : [' . ( $hideGraph ? '' : $points_graph_atemp ) . '],
|
||||
graphCad : [' . ( $hideGraph ? '' : $points_graph_cad ) . '],
|
||||
graphGrade : [' . ( $hideGraph ? '' : $points_graph_grade ) . '],
|
||||
waypoints : ' . $waypoints . ',
|
||||
unit : "' . $uom . '",
|
||||
unitspeed : "' . $uomspeed . '",
|
||||
color1 : [' . $colors_map . '],
|
||||
color2 : "' . $color_graph . '",
|
||||
color3 : "' . $color_graph_speed . '",
|
||||
color4 : "' . $color_graph_hr . '",
|
||||
color5 : "' . $color_graph_cad . '",
|
||||
color6 : "' . $color_graph_grade . '",
|
||||
color7 : "' . $color_graph_atemp . '",
|
||||
chartFrom1 : "' . $chartFrom1 . '",
|
||||
chartTo1 : "' . $chartTo1 . '",
|
||||
chartFrom2 : "' . $chartFrom2 . '",
|
||||
chartTo2 : "' . $chartTo2 . '",
|
||||
startIcon : "' . $startIcon . '",
|
||||
endIcon : "' . $endIcon . '",
|
||||
currentIcon : "' . $currentIcon . '",
|
||||
waypointIcon : "' . $waypointIcon . '",
|
||||
jQuery( "#wpgpxmaps_' . $r . '" ).wpgpxmaps( {
|
||||
targetId : "' . $r . '",
|
||||
mapType : "' . $mt . '",
|
||||
mapData : [' . $points_maps . '],
|
||||
graphDist : [' . ( $hideGraph ? '' : $points_graph_dist ) . '],
|
||||
graphEle : [' . ( $hideGraph ? '' : $points_graph_ele ) . '],
|
||||
graphSpeed : [' . ( $hideGraph ? '' : $points_graph_speed ) . '],
|
||||
graphHr : [' . ( $hideGraph ? '' : $points_graph_hr ) . '],
|
||||
graphAtemp : [' . ( $hideGraph ? '' : $points_graph_atemp ) . '],
|
||||
graphCad : [' . ( $hideGraph ? '' : $points_graph_cad ) . '],
|
||||
graphGrade : [' . ( $hideGraph ? '' : $points_graph_grade ) . '],
|
||||
waypoints : ' . $waypoints . ',
|
||||
unit : "' . $uom . '",
|
||||
unitspeed : "' . $uomspeed . '",
|
||||
color1 : [' . $colors_map . '],
|
||||
color2 : "' . $color_graph . '",
|
||||
color3 : "' . $color_graph_speed . '",
|
||||
color4 : "' . $color_graph_hr . '",
|
||||
color5 : "' . $color_graph_cad . '",
|
||||
color6 : "' . $color_graph_grade . '",
|
||||
color7 : "' . $color_graph_atemp . '",
|
||||
chartFrom1 : "' . $chartFrom1 . '",
|
||||
chartTo1 : "' . $chartTo1 . '",
|
||||
chartFrom2 : "' . $chartFrom2 . '",
|
||||
chartTo2 : "' . $chartTo2 . '",
|
||||
startIcon : "' . $startIcon . '",
|
||||
endIcon : "' . $endIcon . '",
|
||||
currentIcon : "' . $currentIcon . '",
|
||||
waypointIcon : "' . $waypointIcon . '",
|
||||
currentpositioncon : "' . $currentpositioncon . '",
|
||||
usegpsposition : "' . $usegpsposition . '",
|
||||
zoomOnScrollWheel : "' . $zoomOnScrollWheel . '",
|
||||
ngGalleries : [' . $ngGalleries . '],
|
||||
ngImages : [' . $ngImages . '],
|
||||
pluginUrl : "' . plugins_url() . '",
|
||||
TFApiKey : "' . get_option( 'wpgpxmaps_openstreetmap_apikey' ) . '",
|
||||
langs : { altitude : "' . __( 'Altitude', 'wp-gpx-maps' ) . '",
|
||||
currentPosition : "' . __( 'Current position', 'wp-gpx-maps' ) . '",
|
||||
speed : "' . __( 'Speed', 'wp-gpx-maps' ) . '",
|
||||
grade : "' . __( 'Grade', 'wp-gpx-maps' ) . '",
|
||||
heartRate : "' . __( 'Heart rate', 'wp-gpx-maps' ) . '",
|
||||
atemp : "' . __( 'Temperature', 'wp-gpx-maps' ) . '",
|
||||
cadence : "' . __( 'Cadence', 'wp-gpx-maps' ) . '",
|
||||
goFullScreen : "' . __( 'Go full screen', 'wp-gpx-maps' ) . '",
|
||||
exitFullFcreen : "' . __( 'Exit full screen', 'wp-gpx-maps' ) . '",
|
||||
hideImages : "' . __( 'Hide images', 'wp-gpx-maps' ) . '",
|
||||
showImages : "' . __( 'Show images', 'wp-gpx-maps' ) . '",
|
||||
backToCenter : "' . __( 'Back to center', 'wp-gpx-maps' ) . '"
|
||||
}
|
||||
usegpsposition : "' . $usegpsposition . '",
|
||||
zoomOnScrollWheel : "' . $zoomOnScrollWheel . '",
|
||||
ngGalleries : [' . $ngGalleries . '],
|
||||
ngImages : [' . $ngImages . '],
|
||||
pluginUrl : "' . plugins_url() . '",
|
||||
TFApiKey : "' . get_option( 'wpgpxmaps_openstreetmap_apikey' ) . '",
|
||||
langs : {
|
||||
altitude : "' . __( 'Altitude', 'wp-gpx-maps' ) . '",
|
||||
currentPosition : "' . __( 'Current position', 'wp-gpx-maps' ) . '",
|
||||
speed : "' . __( 'Speed', 'wp-gpx-maps' ) . '",
|
||||
grade : "' . __( 'Grade', 'wp-gpx-maps' ) . '",
|
||||
heartRate : "' . __( 'Heart rate', 'wp-gpx-maps' ) . '",
|
||||
atemp : "' . __( 'Temperature', 'wp-gpx-maps' ) . '",
|
||||
cadence : "' . __( 'Cadence', 'wp-gpx-maps' ) . '",
|
||||
goFullScreen : "' . __( 'Go full screen', 'wp-gpx-maps' ) . '",
|
||||
exitFullFcreen : "' . __( 'Exit full screen', 'wp-gpx-maps' ) . '",
|
||||
hideImages : "' . __( 'Hide images', 'wp-gpx-maps' ) . '",
|
||||
showImages : "' . __( 'Show images', 'wp-gpx-maps' ) . '",
|
||||
backToCenter : "' . __( 'Back to center', 'wp-gpx-maps' ) . '"
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -780,43 +714,43 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
</script>';
|
||||
|
||||
/* Print summary */
|
||||
if ( $summary == 'true' && ( $points_graph_speed != '' || $points_graph_ele != '' || $points_graph_dist != '') ) {
|
||||
if ( $summary == true && ( $points_graph_speed != '' || $points_graph_ele != '' || $points_graph_dist != '' ) ) {
|
||||
|
||||
$output .= "<div id='wpgpxmaps_summary_" . $r . "' class='wpgpxmaps_summary'>";
|
||||
if ( $points_graph_dist != '' && $p_tot_len == 'true' ) {
|
||||
$output .= "<span class='totlen'><span class='summarylabel'>" . __( 'Total distance', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $tot_len</span></span><br />";
|
||||
if ( $points_graph_dist != '' && $p_tot_len == true ) {
|
||||
$output .= "<span class='totlen'><span class='summarylabel'>" . __( 'Total distance:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $tot_len</span></span><br />";
|
||||
}
|
||||
if ( $points_graph_ele != ' ' ) {
|
||||
if ( $p_max_ele == 'true' )
|
||||
$output .= "<span class='maxele'><span class='summarylabel'>" . __( 'Max elevation', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $max_ele</span></span><br />";
|
||||
if ( $p_min_ele == 'true' )
|
||||
$output .= "<span class='minele'><span class='summarylabel'>" . __( 'Min elevation', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $min_ele</span></span><br />";
|
||||
if ( $p_total_ele_up == 'true' )
|
||||
$output .= "<span class='totaleleup'><span class='summarylabel'>" . __( 'Total climbing', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $total_ele_up</span></span><br />";
|
||||
if ( $p_total_ele_down == 'true' )
|
||||
$output .= "<span class='totaleledown'><span class='summarylabel'>" . __( 'Total descent', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $total_ele_down</span></span><br />";
|
||||
if ( $p_max_ele == true )
|
||||
$output .= "<span class='maxele'><span class='summarylabel'>" . __( 'Max elevation:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $max_ele</span></span><br />";
|
||||
if ( $p_min_ele == true )
|
||||
$output .= "<span class='minele'><span class='summarylabel'>" . __( 'Min elevation:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $min_ele</span></span><br />";
|
||||
if ( $p_total_ele_up == true )
|
||||
$output .= "<span class='totaleleup'><span class='summarylabel'>" . __( 'Total climbing:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $total_ele_up</span></span><br />";
|
||||
if ( $p_total_ele_down == true )
|
||||
$output .= "<span class='totaleledown'><span class='summarylabel'>" . __( 'Total descent:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $total_ele_down</span></span><br />";
|
||||
}
|
||||
if ( $points_graph_speed != '' && $p_avg_speed == 'true' ) {
|
||||
$output .= "<span class='avgspeed'><span class='summarylabel'>" . __( 'Average speed', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $avg_speed</span></span><br />";
|
||||
if ( $points_graph_speed != '' && $p_avg_speed == true ) {
|
||||
$output .= "<span class='avgspeed'><span class='summarylabel'>" . __( 'Average speed:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $avg_speed</span></span><br />";
|
||||
}
|
||||
if ( $points_graph_cad != '' && $p_avg_cad == 'true' ) {
|
||||
$output .= "<span class='avgcad'><span class='summarylabel'>" . __( 'Average cadence', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $avg_cad</span></span><br />";
|
||||
if ( $points_graph_cad != '' && $p_avg_cad == true ) {
|
||||
$output .= "<span class='avgcad'><span class='summarylabel'>" . __( 'Average cadence:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $avg_cad</span></span><br />";
|
||||
}
|
||||
if ( $points_graph_hr != '' && $p_avg_hr == 'true' ) {
|
||||
$output .= "<span class='avghr'><span class='summarylabel'>" . __( 'Average heart rate', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $avg_hr</span></span><br />";
|
||||
if ( $points_graph_hr != '' && $p_avg_hr == true ) {
|
||||
$output .= "<span class='avghr'><span class='summarylabel'>" . __( 'Average heart rate:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $avg_hr</span></span><br />";
|
||||
}
|
||||
if ( $points_graph_atemp != '' && $p_avg_temp == 'true' ) {
|
||||
$output .= "<span class='avgtemp'><span class='summarylabel'>" . __( 'Average temperature', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $avg_temp</span></span><br />";
|
||||
if ( $points_graph_atemp != '' && $p_avg_temp == true ) {
|
||||
$output .= "<span class='avgtemp'><span class='summarylabel'>" . __( 'Average temperature:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $avg_temp</span></span><br />";
|
||||
}
|
||||
if ( $p_total_time == 'true' && $max_time > 0 ) {
|
||||
$time_diff = date( "H:i:s", ( $max_time - $min_time ) );
|
||||
$output .= "<span class='totaltime'><span class='summarylabel'>" . __( 'Total time', 'wp-gpx-maps' ) . ":</span><span class='summaryvalue'> $time_diff</span></span><br />";
|
||||
if ( $p_total_time == true && $max_time > 0 ) {
|
||||
$time_diff = date( 'H:i:s', ( $max_time - $min_time ) );
|
||||
$output .= "<span class='totaltime'><span class='summarylabel'>" . __( 'Total time:', 'wp-gpx-maps' ) . "</span><span class='summaryvalue'> $time_diff</span></span><br />";
|
||||
}
|
||||
$output .= "</div>";
|
||||
$output .= '</div>';
|
||||
}
|
||||
|
||||
/* Print download link */
|
||||
if ( $download == 'true' && $gpxurl != '' ) {
|
||||
if ( $download == true && $gpxurl != '' ) {
|
||||
if ( $isGpxUrl == true ) {
|
||||
|
||||
} else {
|
||||
|
@ -824,25 +758,28 @@ function handle_WP_GPX_Maps_Shortcodes( $attr, $content = '' ) {
|
|||
$dummy = ( defined( 'WP_SITEURL' ) ) ? WP_SITEURL : get_bloginfo( 'url' );
|
||||
$gpxurl = $dummy . $gpxurl;
|
||||
}
|
||||
$output .= "<a href='$gpxurl' target='_new' download>" . __( 'Download', 'wp-gpx-maps' ) . "</a>";
|
||||
$output .= "<a href='$gpxurl' target='_new' download>" . __( 'Download', 'wp-gpx-maps' ) . '</a>';
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
function convertSeconds( $s ) {
|
||||
|
||||
if ( $s == 0 )
|
||||
return 0;
|
||||
$s = 1.0 / $s;
|
||||
$_sSecT = $s * 60; // sec/km
|
||||
$_sMin = floor ( $_sSecT / 60 );
|
||||
$_sMin = floor( $_sSecT / 60 );
|
||||
$_sSec = $_sSecT - $_sMin * 60;
|
||||
return $_sMin + $_sSec / 100;
|
||||
}
|
||||
|
||||
function convertSpeed( $speed, $uomspeed, $addUom = false ) {
|
||||
|
||||
$uom = '';
|
||||
if ( $uomspeed == '6' ) {
|
||||
|
||||
if ( $uomspeed == '6' ) {
|
||||
/* min/100 meters */
|
||||
$speed = 1 / $speed * 100 / 60;
|
||||
$uom = ' min/100m';
|
||||
|
@ -871,6 +808,7 @@ function convertSpeed( $speed, $uomspeed, $addUom = false ) {
|
|||
/* km/h */
|
||||
$speed *= 3.6;
|
||||
$uom = ' km/h';
|
||||
|
||||
} else {
|
||||
/* dafault m/s */
|
||||
$uom = ' m/s';
|
||||
|
@ -884,38 +822,31 @@ function convertSpeed( $speed, $uomspeed, $addUom = false ) {
|
|||
}
|
||||
|
||||
function downloadRemoteFile( $remoteFile ) {
|
||||
|
||||
try {
|
||||
$newfname = tempnam( '/tmp', 'gpx' );
|
||||
|
||||
if ( function_exists ( 'file_put_contents' ) ) {
|
||||
if ( function_exists( 'file_put_contents' ) ) {
|
||||
file_put_contents( $newfname, fopen( $remoteFile, 'r' ) );
|
||||
return $newfname;
|
||||
}
|
||||
|
||||
$file = fopen ( $remoteFile, 'rb' );
|
||||
$file = fopen( $remoteFile, 'rb' );
|
||||
if ( $file ) {
|
||||
$newf = fopen ( $newfname, 'wb' );
|
||||
|
||||
$newf = fopen( $newfname, 'wb' );
|
||||
if ( $newf )
|
||||
while ( ! feof( $file ) ) {
|
||||
fwrite( $newf, fread( $file, 1024 * 8 ), 1024 * 8 );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $file ) {
|
||||
fclose( $file );
|
||||
}
|
||||
|
||||
if ( $newf ) {
|
||||
fclose( $newf );
|
||||
}
|
||||
|
||||
return $newfname;
|
||||
|
||||
} catch ( Exception $e ) {
|
||||
|
||||
print_r( $e );
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
@ -923,7 +854,7 @@ function downloadRemoteFile( $remoteFile ) {
|
|||
function unescape( $value ) {
|
||||
|
||||
$value = str_replace( "'", "\'", $value );
|
||||
$value = str_replace( array( "\n", "\r" ), "", $value );
|
||||
$value = str_replace( array( '\n', '\r' ), '', $value );
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
@ -933,10 +864,22 @@ function WP_GPX_Maps_install() {
|
|||
add_option( 'wpgpxmaps_width', '100%', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_height', '450px', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_graph_height', '200px', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_distance_type', '0', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_skipcache', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_download', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_usegpsposition', '', '', 'yes' );
|
||||
/* Print Summary Table */
|
||||
add_option( 'wpgpxmaps_summary', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_tot_len', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_max_ele', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_min_ele', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_total_ele_up', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_total_ele_down', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_avg_speed', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_avg_cad', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_avg_hr', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_avg_temp', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_summary_total_time', '', '', 'yes' );
|
||||
/* Map */
|
||||
add_option( 'wpgpxmaps_map_type', 'HYBRID', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_map_line_color', '#3366cc', '', 'yes' );
|
||||
|
@ -944,9 +887,11 @@ function WP_GPX_Maps_install() {
|
|||
add_option( 'wpgpxmaps_show_waypoint', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_map_start_icon', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_map_end_icon', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_currentpositioncon', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_map_current_icon', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_map_waypoint_icon', '', '', 'yes' );
|
||||
/* Diagram - Elevation */
|
||||
add_option( 'wpgpxmaps_show_elevation', 'true', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_graph_line_color', '#3366cc', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_unit_of_measure', '0', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_graph_offset_from1', '', '', 'yes' );
|
||||
|
@ -967,7 +912,8 @@ function WP_GPX_Maps_install() {
|
|||
add_option( 'wpgpxmaps_show_cadence', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_graph_line_color_cad', '#beecff', '', 'yes' );
|
||||
/* Diagram - Grade */
|
||||
|
||||
add_option( 'wpgpxmaps_show_grade', '', '', 'yes' );
|
||||
add_option( 'wpgpxmaps_graph_line_color_grade', '#beecff', '', 'yes' );
|
||||
/* Pictures */
|
||||
add_option( 'wpgpxmaps_map_nggallery', '', '', 'yes' );
|
||||
/* Advanced */
|
||||
|
@ -981,10 +927,22 @@ function WP_GPX_Maps_remove() {
|
|||
delete_option( 'wpgpxmaps_width' );
|
||||
delete_option( 'wpgpxmaps_graph_height' );
|
||||
delete_option( 'wpgpxmaps_height' );
|
||||
delete_option( 'wpgpxmaps_distance_type' );
|
||||
delete_option( 'wpgpxmaps_skipcache' );
|
||||
delete_option( 'wpgpxmaps_download' );
|
||||
delete_option( 'wpgpxmaps_usegpsposition' );
|
||||
/* Print Summary Table */
|
||||
delete_option( 'wpgpxmaps_summary' );
|
||||
delete_option( 'wpgpxmaps_summary_tot_len' );
|
||||
delete_option( 'wpgpxmaps_summary_max_ele' );
|
||||
delete_option( 'wpgpxmaps_summary_min_ele' );
|
||||
delete_option( 'wpgpxmaps_summary_total_ele_up' );
|
||||
delete_option( 'wpgpxmaps_summary_total_ele_down' );
|
||||
delete_option( 'wpgpxmaps_summary_avg_speed' );
|
||||
delete_option( 'wpgpxmaps_summary_avg_cad' );
|
||||
delete_option( 'wpgpxmaps_summary_avg_hr' );
|
||||
delete_option( 'wpgpxmaps_summary_avg_temp' );
|
||||
delete_option( 'wpgpxmaps_summary_total_time' );
|
||||
/* Map */
|
||||
delete_option( 'wpgpxmaps_map_type' );
|
||||
delete_option( 'wpgpxmaps_map_line_color' );
|
||||
|
@ -992,9 +950,11 @@ function WP_GPX_Maps_remove() {
|
|||
delete_option( 'wpgpxmaps_show_waypoint' );
|
||||
delete_option( 'wpgpxmaps_map_start_icon' );
|
||||
delete_option( 'wpgpxmaps_map_end_icon' );
|
||||
delete_option( 'wpgpxmaps_currentpositioncon' );
|
||||
delete_option( 'wpgpxmaps_map_current_icon' );
|
||||
delete_option( 'wpgpxmaps_map_waypoint_icon' );
|
||||
/* Diagram - Elevation */
|
||||
delete_option( 'wpgpxmaps_show_elevation' );
|
||||
delete_option( 'wpgpxmaps_graph_line_color' );
|
||||
delete_option( 'wpgpxmaps_unit_of_measure' );
|
||||
delete_option( 'wpgpxmaps_graph_offset_from1' );
|
||||
|
@ -1015,12 +975,11 @@ function WP_GPX_Maps_remove() {
|
|||
delete_option( 'wpgpxmaps_show_cadence' );
|
||||
delete_option( 'wpgpxmaps_graph_line_color_cad' );
|
||||
/* Diagram - Grade */
|
||||
|
||||
delete_option( 'wpgpxmaps_show_grade' );
|
||||
delete_option( 'wpgpxmaps_graph_line_color_grade' );
|
||||
/* Pictures */
|
||||
delete_option( 'wpgpxmaps_map_nggallery' );
|
||||
/* Advanced */
|
||||
delete_option( 'wpgpxmaps_pointsoffset' );
|
||||
delete_option( 'wpgpxmaps_donotreducegpx' );
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
956
wp-gpx-maps.pot
|
@ -1,956 +0,0 @@
|
|||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-06-12 18:57+0200\n"
|
||||
"PO-Revision-Date: 2012-10-30 14:41+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 2.2.3\n"
|
||||
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:53 ../wp-gpx-maps_admin.php:50
|
||||
#: ../wp-gpx-maps_admin.php:102
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:737
|
||||
msgid "Altitude"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:738
|
||||
msgid "Current position"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:739
|
||||
msgid "Speed"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:740
|
||||
msgid "Grade"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:741
|
||||
msgid "Heart rate"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:742
|
||||
msgid "Temperature"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:743
|
||||
msgid "Cadence"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:744
|
||||
msgid "Go full screen"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:745
|
||||
msgid "Exit full screen"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:746
|
||||
msgid "Hide images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:747
|
||||
msgid "Show images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:748
|
||||
msgid "Back to center"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:761
|
||||
msgid "Total distance"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:765
|
||||
msgid "Max elevation"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:767
|
||||
msgid "Min elevation"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:769
|
||||
msgid "Total climbing"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:771
|
||||
msgid "Total descent"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:774
|
||||
msgid "Average speed"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:777
|
||||
msgid "Average cadence"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:780
|
||||
msgid "Average heart rate"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:783
|
||||
msgid "Average temperature"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:787
|
||||
msgid "Total time"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:801 ../wp-gpx-maps_admin_tracks.php:183
|
||||
msgid "Download"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin.php:49 ../wp-gpx-maps_admin.php:56
|
||||
msgid "Tracks"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin.php:51 ../wp-gpx-maps_admin.php:57
|
||||
msgid "Help"
|
||||
msgstr ""
|
||||
|
||||
#. translators: Relative path of the GPX folder
|
||||
#: ../wp-gpx-maps_admin.php:116
|
||||
#, php-format
|
||||
msgid "Can not create the folder %1s for GPX files. Please create the folder and make it writable! If not, you will must update the files manually!"
|
||||
msgstr ""
|
||||
|
||||
#. translators: Relative path of the GPX cache folder
|
||||
#: ../wp-gpx-maps_admin.php:133
|
||||
#, php-format
|
||||
msgid "Can not create the cache folder %1s for the GPX files. Please create the folder and make it writable! If not, you will must update the files manually!"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:56 ../wp-gpx-maps_help.php:64
|
||||
msgid "General"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:62
|
||||
msgid "Map width:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:71
|
||||
msgid "Map height:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:80
|
||||
msgid "Graph height:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:89
|
||||
msgid "Distance type:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:93
|
||||
msgid "Normal (default)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:94
|
||||
msgid "Flat → (Only flat distance, don’t take care of altitude)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:95
|
||||
msgid "Climb ↑ (Only climb distance)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:102
|
||||
msgid "Cache:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:109
|
||||
msgid "Do not use cache"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:117
|
||||
msgid "GPX Download:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:124 ../wp-gpx-maps_help.php:119
|
||||
msgid "Allow users to download your GPX file"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:132
|
||||
msgid "Use browser GPS position:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:139
|
||||
msgid "Allow users to use browser GPS in order to display their current position on map"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:147
|
||||
msgid "Thunderforest API Key (Open Cycle Map):"
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: Link to documentation of Thunderforest API Key's 2: Additional link attribute
|
||||
#: ../wp-gpx-maps_admin_settings.php:155
|
||||
msgid "Go to <a href=\"%1$1s\" %2&2s>Thunderforest API Key</a> and signing in to your Thunderforest account."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:169 ../wp-gpx-maps_admin_settings.php:353
|
||||
#: ../wp-gpx-maps_admin_settings.php:529 ../wp-gpx-maps_admin_settings.php:747
|
||||
#: ../wp-gpx-maps_admin_settings.php:815
|
||||
msgid "Save Changes"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:180 ../wp-gpx-maps_help.php:547
|
||||
msgid "Summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:186
|
||||
msgid "Summary table:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:193 ../wp-gpx-maps_help.php:566
|
||||
msgid "Print summary details of your GPX track"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:201
|
||||
msgid "Total distance:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:208
|
||||
msgid "Print total distance"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:216
|
||||
msgid "Max elevation:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:223
|
||||
msgid "Print max elevation"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:231
|
||||
msgid "Min elevation:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:238
|
||||
msgid "Print min elevation"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:246
|
||||
msgid "Total climbing:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:253
|
||||
msgid "Print total climbing"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:261
|
||||
msgid "Total descent:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:268
|
||||
msgid "Print total descent"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:275
|
||||
msgid "Average speed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:282
|
||||
msgid "Print average speed"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:290
|
||||
msgid "Average cadence:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:297
|
||||
msgid "Print average cadence"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:305
|
||||
msgid "Average heart rate:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:312
|
||||
msgid "Print average heart rate"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:320
|
||||
msgid "Average temperature:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:327
|
||||
msgid "Print average temperature"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:335
|
||||
msgid "Total time:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:342
|
||||
msgid "Print total time"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:364 ../wp-gpx-maps_help.php:148
|
||||
msgid "Map"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:371
|
||||
msgid "Default map type:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:377 ../wp-gpx-maps_help.php:172
|
||||
msgid "Open Street Map"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:383 ../wp-gpx-maps_help.php:174
|
||||
msgid "Open Cycle Map"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:389 ../wp-gpx-maps_help.php:176
|
||||
msgid "Open Cycle Map - Transport"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:395 ../wp-gpx-maps_help.php:178
|
||||
msgid "Open Cycle Map - Landscape"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:401 ../wp-gpx-maps_help.php:180
|
||||
msgid "MapToolKit - Terrain"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:407 ../wp-gpx-maps_help.php:182
|
||||
msgid "Open Street Map - Humanitarian map style"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:413 ../wp-gpx-maps_help.php:184
|
||||
msgid "Hike & Bike"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:419 ../wp-gpx-maps_help.php:186
|
||||
msgid "Open Sea Map"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:427
|
||||
msgid "Map line color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:436
|
||||
msgid "On mouse scroll wheel:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:443
|
||||
msgid "Enable zoom"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:451
|
||||
msgid "Waypoints support:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:458
|
||||
msgid "Show waypoints"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:466
|
||||
msgid "Start track icon:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:471 ../wp-gpx-maps_admin_settings.php:483
|
||||
#: ../wp-gpx-maps_admin_settings.php:495 ../wp-gpx-maps_admin_settings.php:507
|
||||
#: ../wp-gpx-maps_admin_settings.php:519
|
||||
msgid "(URL to image) Leave empty to hide."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:478
|
||||
msgid "End track icon:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:490
|
||||
msgid "Current position icon:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:502
|
||||
msgid "Current GPS position icon:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:514
|
||||
msgid "Custom waypoint icon:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:539
|
||||
msgid "Chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:546
|
||||
msgid "Altitude:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:553
|
||||
msgid "Show altitude"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:562
|
||||
msgid "Altitude line color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:571
|
||||
msgid "Unit of measure:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:575 ../wp-gpx-maps_help.php:311
|
||||
msgid "meters / meters"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:576 ../wp-gpx-maps_help.php:313
|
||||
msgid "feet / miles"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:577 ../wp-gpx-maps_help.php:315
|
||||
msgid "meters / kilometers"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:578 ../wp-gpx-maps_help.php:317
|
||||
msgid "meters / nautical miles"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:579 ../wp-gpx-maps_help.php:319
|
||||
msgid "meters / miles"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:580 ../wp-gpx-maps_help.php:321
|
||||
msgid "feet / nautical miles"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:587
|
||||
msgid "Altitude display offset:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:590 ../wp-gpx-maps_admin_settings.php:638
|
||||
msgid "From"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:592 ../wp-gpx-maps_admin_settings.php:640
|
||||
msgid "to"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:594 ../wp-gpx-maps_admin_settings.php:642
|
||||
msgid "(leave empty for auto scale)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:600
|
||||
msgid "Speed:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:603
|
||||
msgid "Show speed"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:609
|
||||
msgid "Speed line color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:618
|
||||
msgid "Speed unit of measure:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:622 ../wp-gpx-maps_help.php:371
|
||||
msgid "m/s"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:623 ../wp-gpx-maps_help.php:373
|
||||
msgid "km/h"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:624 ../wp-gpx-maps_help.php:375
|
||||
msgid "miles/h"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:625 ../wp-gpx-maps_help.php:377
|
||||
msgid "min/km"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:626 ../wp-gpx-maps_help.php:379
|
||||
msgid "min/miles"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:627 ../wp-gpx-maps_help.php:381
|
||||
msgid "Knots (nautical miles / hour)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:628 ../wp-gpx-maps_help.php:383
|
||||
msgid "min/100 meters"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:635
|
||||
msgid "Speed display offset:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:648
|
||||
msgid "Heart rate (where aviable):"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:655
|
||||
msgid "Show heart rate"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:663
|
||||
msgid "Heart rate line color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:672
|
||||
msgid "Temperature (where aviable):"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:679
|
||||
msgid "Show temperature"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:687
|
||||
msgid "Temperature line color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:696
|
||||
msgid "Cadence (where aviable):"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:703
|
||||
msgid "Show cadence"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:711
|
||||
msgid "Cadence line color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:720
|
||||
msgid "Grade:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:727
|
||||
msgid "Show grade - BETA (Grade values depends on your GPS accuracy. If you have a poor GPS accuracy they might be totally wrong!)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:735
|
||||
msgid "Grade line color:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:757
|
||||
msgid "Advanced Options"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:760
|
||||
msgid "(Do not edit if you don’t know what you are doing!)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:767
|
||||
msgid "Skip GPX points closer than:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:774
|
||||
msgid "meters"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:782
|
||||
msgid "Reduce GPX:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:789
|
||||
msgid "Do not reduce GPX"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:797
|
||||
msgid "User upload:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:804
|
||||
msgid "Allow registered user to upload GPX files"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:30
|
||||
msgid "Cache is now empty!"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:45
|
||||
msgid "Choose a file to upload:"
|
||||
msgstr ""
|
||||
|
||||
#. translators: GPX file name
|
||||
#: ../wp-gpx-maps_admin_tracks.php:57
|
||||
#, php-format
|
||||
msgid "The file %1s has been successfully uploaded."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:63
|
||||
msgid "There was an error uploading the file, please try again!"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:68
|
||||
msgid "The file type is not supported!"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:77
|
||||
msgid "Clear Cache"
|
||||
msgstr ""
|
||||
|
||||
#. translators: Relative path of the GPX folder
|
||||
#: ../wp-gpx-maps_admin_tracks.php:94
|
||||
#, php-format
|
||||
msgid "Your folder for GPX files %1s is not writable. Please change the folder permissions."
|
||||
msgstr ""
|
||||
|
||||
#. translators: GPX file name
|
||||
#: ../wp-gpx-maps_admin_tracks.php:121
|
||||
#, php-format
|
||||
msgid "The file %1s has been successfully deleted."
|
||||
msgstr ""
|
||||
|
||||
#. translators: GPX file name
|
||||
#: ../wp-gpx-maps_admin_tracks.php:129
|
||||
#, php-format
|
||||
msgid "The file %1s could not be deleted."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:167
|
||||
msgid "Uploading file..."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:175
|
||||
msgid "File"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:181
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:185
|
||||
msgid "Copy shortcode"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:185
|
||||
msgid "Shortcode:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:191
|
||||
msgid "Last modified"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:199
|
||||
msgid "File size"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_admin_tracks.php:209
|
||||
msgid "Are you sure you want to delete the file?"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:4
|
||||
msgid "FAQ"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:8
|
||||
msgid "How can I upload the GPX files?"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:11
|
||||
msgid "1. Method: Upload the GPX file using the uploader in the tab \"Tracks\"."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:16
|
||||
msgid "2. Method: Upload the GPX file via FTP to your upload folder:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:22
|
||||
msgid "How can I use the GPX files?"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:25
|
||||
msgid "Go to the tab \"Tracks\" and copy the shortcode from the list and paste it in the page or post."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:30
|
||||
msgid "You can manually set the relative path to your GPX file. Please use this scheme:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:36
|
||||
msgid "Can I also integrate GPX files from other sites?"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:41
|
||||
msgid "Yes, it’s possible. Please use this scheme:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:47
|
||||
msgid "Can I change the attributes for each GPX shortcode?"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:50
|
||||
msgid "Yes, it’s possible. These changes ignore the default settings for each attribute."
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:55
|
||||
msgid "The Full set of optional attributes can be found below. Please use this scheme:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:58
|
||||
msgid "read below all the optional attributes"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:71 ../wp-gpx-maps_help.php:155
|
||||
#: ../wp-gpx-maps_help.php:270 ../wp-gpx-maps_help.php:492
|
||||
#: ../wp-gpx-maps_help.php:554 ../wp-gpx-maps_help.php:719
|
||||
msgid "Shortcode"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:74 ../wp-gpx-maps_help.php:158
|
||||
#: ../wp-gpx-maps_help.php:273 ../wp-gpx-maps_help.php:495
|
||||
#: ../wp-gpx-maps_help.php:557 ../wp-gpx-maps_help.php:722
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:77 ../wp-gpx-maps_help.php:161
|
||||
#: ../wp-gpx-maps_help.php:276 ../wp-gpx-maps_help.php:498
|
||||
#: ../wp-gpx-maps_help.php:560 ../wp-gpx-maps_help.php:725
|
||||
msgid "Possible values"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:83
|
||||
msgid "relative path to the GPX file"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:92
|
||||
msgid "Map width"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:95 ../wp-gpx-maps_help.php:104
|
||||
#: ../wp-gpx-maps_help.php:113
|
||||
msgid "Value in pixels"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:101
|
||||
msgid "Map height"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:110
|
||||
msgid "Graph height"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:123 ../wp-gpx-maps_help.php:136
|
||||
#: ../wp-gpx-maps_help.php:197 ../wp-gpx-maps_help.php:210
|
||||
#: ../wp-gpx-maps_help.php:223 ../wp-gpx-maps_help.php:286
|
||||
#: ../wp-gpx-maps_help.php:299 ../wp-gpx-maps_help.php:346
|
||||
#: ../wp-gpx-maps_help.php:359 ../wp-gpx-maps_help.php:408
|
||||
#: ../wp-gpx-maps_help.php:421 ../wp-gpx-maps_help.php:434
|
||||
#: ../wp-gpx-maps_help.php:447 ../wp-gpx-maps_help.php:460
|
||||
#: ../wp-gpx-maps_help.php:473 ../wp-gpx-maps_help.php:526
|
||||
#: ../wp-gpx-maps_help.php:570 ../wp-gpx-maps_help.php:583
|
||||
#: ../wp-gpx-maps_help.php:596 ../wp-gpx-maps_help.php:609
|
||||
#: ../wp-gpx-maps_help.php:622 ../wp-gpx-maps_help.php:635
|
||||
#: ../wp-gpx-maps_help.php:648 ../wp-gpx-maps_help.php:661
|
||||
#: ../wp-gpx-maps_help.php:674 ../wp-gpx-maps_help.php:687
|
||||
#: ../wp-gpx-maps_help.php:700 ../wp-gpx-maps_help.php:735
|
||||
#: ../wp-gpx-maps_help.php:748
|
||||
msgid "Default is:"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:132
|
||||
msgid "Do not use cache. If TRUE might be very slow"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:167
|
||||
msgid "Map type"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:193
|
||||
msgid "Map line color"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:206
|
||||
msgid "Zoom on map when mouse scroll wheel"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:219
|
||||
msgid "Print the GPX waypoints inside the map"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:232
|
||||
msgid "Start track icon"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:239
|
||||
msgid "End track icon"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:246
|
||||
msgid "Current position icon (when mouse hover)"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:253
|
||||
msgid "Custom waypoint icon"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:263
|
||||
msgid "Diagram"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:282
|
||||
msgid "Show elevation data inside the chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:295
|
||||
msgid "Altitude line color"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:308
|
||||
msgid "Distance / Altitude unit of measure"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:328
|
||||
msgid "Minimum value for altitude chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:335
|
||||
msgid "Maximum value for altitude chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:342
|
||||
msgid "Show speed inside the chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:355
|
||||
msgid "Speed line color"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:368
|
||||
msgid "Speed unit of measure"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:390
|
||||
msgid "Minimum value for speed chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:397
|
||||
msgid "Maximum value for speed chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:404
|
||||
msgid "Show heart rate inside the chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:417
|
||||
msgid "Heart rate line color"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:430
|
||||
msgid "Show cadence inside the chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:443
|
||||
msgid "Cadence line color"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:456
|
||||
msgid "Show grade inside the chart"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:469
|
||||
msgid "Grade line color"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:485
|
||||
msgid "Pictures"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:504
|
||||
msgid "NextGen Gallery"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:507
|
||||
msgid "Gallery ID or a list of Galleries ID separated by a comma"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:513
|
||||
msgid "NextGen Image"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:516
|
||||
msgid "Image ID or a list of Images ID separated by a comma"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:522
|
||||
msgid "Show all images that are attached to post"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:535
|
||||
msgid "The difference between your GPX tool date and your camera date"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:538
|
||||
msgid "Value in seconds"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:579
|
||||
msgid "Print total distance in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:592
|
||||
msgid "Print max. elevation in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:605
|
||||
msgid "Print min. elevation in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:618
|
||||
msgid "Print total climbing in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:631
|
||||
msgid "Print total descent in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:644
|
||||
msgid "Print average speed in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:657
|
||||
msgid "Print average cadence in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:670
|
||||
msgid "Print average heart rate in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:683
|
||||
msgid "Print average temperature in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:696
|
||||
msgid "Print total time in summary table"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:712
|
||||
msgid "Advanced"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:731
|
||||
msgid "Skip GPX points closer than XX meters"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:744
|
||||
msgid "Print all the GPX waypoints without reduce it"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_help.php:760
|
||||
msgid "Bugs, problems, thanks and anything else here!"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_utils.php:150
|
||||
msgid "WP GPX Maps Error: GPX file not found!"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps_utils.php:539
|
||||
msgid "WP GPX Maps Error: Can’t parse xml file!"
|
||||
msgstr ""
|
|
@ -1,57 +1,53 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
if ( is_admin() ) {
|
||||
|
||||
add_action( 'admin_menu', 'wpgpxmaps_admin_menu' );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Roles and capabilities
|
||||
*
|
||||
* Capabilities for each user role that are relevant to this plugin:
|
||||
*
|
||||
* Super Admin: can manage settings; can publish, edit and delete all posts; can upload and delete all GPX files
|
||||
* Admin: can manage settings; can publish, edit and delete all posts; can upload and delete all GPX files
|
||||
* Editor: can not manage settings; can publish, edit and delete all posts; can upload and delete all GPX files
|
||||
* Author: can not manage settings; can publish, edit and delete his own posts; can upload and delete his own files
|
||||
* Contributor: can not manage settings; can edit and delete his own posts; can not manage GPX files
|
||||
* Subscriber: can not manage settings; can not manage posts; can not manage GPX files (has read status everywhere)
|
||||
*
|
||||
* @see https://wordpress.org/support/article/roles-and-capabilities/
|
||||
*/
|
||||
function wpgpxmaps_admin_menu() {
|
||||
|
||||
/*
|
||||
|
||||
All roles/capabilities:
|
||||
|
||||
https://wordpress.org/support/article/roles-and-capabilities/
|
||||
|
||||
*/
|
||||
|
||||
if ( current_user_can( 'manage_options' ) ) {
|
||||
/* Only Administrators and Super Administrators */
|
||||
/* Access only for Super Administrators and Administrators */
|
||||
add_options_page( 'WP GPX Maps', 'WP GPX Maps', 'manage_options', 'WP-GPX-Maps', 'WP_GPX_Maps_html_page' );
|
||||
|
||||
}
|
||||
elseif ( current_user_can( 'publish_posts' ) ) {
|
||||
} elseif ( current_user_can( 'publish_posts' ) ) {
|
||||
/* Access for Editors and Authors */
|
||||
|
||||
/* Contributor Authors and */
|
||||
$allow_users_upload = get_option( 'wpgpxmaps_allow_users_view' ) === 'true';
|
||||
|
||||
$allow_users_upload = get_option( 'wpgpxmaps_allow_users_view' ) === "true";
|
||||
|
||||
if ($allow_users_upload == 1)
|
||||
{
|
||||
if ( $allow_users_upload == 1 ) {
|
||||
add_menu_page( 'WP GPX Maps', 'WP GPX Maps', 'publish_posts', 'WP-GPX-Maps', 'WP_GPX_Maps_html_page' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function wpgpxmaps_ilc_admin_tabs( $current ) {
|
||||
function wpgpxmaps_ilc_admin_tabs( $current ) {
|
||||
|
||||
if ( current_user_can( 'manage_options' ) ) {
|
||||
|
||||
/* Access for Super Administrators and Administrators */
|
||||
$tabs = array(
|
||||
'tracks' => __( 'Tracks', 'wp-gpx-maps' ),
|
||||
'settings' => __( 'Settings', 'wp-gpx-maps' ),
|
||||
'help' => __( 'Help', 'wp-gpx-maps' ),
|
||||
);
|
||||
} elseif ( current_user_can( 'publish_posts' ) ) {
|
||||
|
||||
} elseif ( current_user_can( 'publish_posts' ) ) {
|
||||
/* Access for Editors and Authors */
|
||||
$tabs = array(
|
||||
'tracks' => __( 'Tracks', 'wp-gpx-maps' ),
|
||||
'help' => __( 'Help', 'wp-gpx-maps' ),
|
||||
|
@ -61,54 +57,40 @@ function wpgpxmaps_ilc_admin_tabs( $current ) {
|
|||
echo '<h2 class="nav-tab-wrapper">';
|
||||
|
||||
foreach ( $tabs as $tab => $name ) {
|
||||
|
||||
$class = ( $tab == $current ) ? ' nav-tab-active' : '';
|
||||
|
||||
$class = ( $tab == $current ) ? ' nav-tab-active' : '';
|
||||
echo "<a class='nav-tab$class' href='?page=WP-GPX-Maps&tab=$tab'>$name</a>";
|
||||
|
||||
}
|
||||
|
||||
echo '</h2>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function WP_GPX_Maps_html_page() {
|
||||
|
||||
$realGpxPath = gpxFolderPath();
|
||||
|
||||
$cacheGpxPath = gpxCacheFolderPath();
|
||||
|
||||
$relativeGpxPath = relativeGpxFolderPath();
|
||||
|
||||
$relativeGpxPath = str_replace( "\\","/", $relativeGpxPath );
|
||||
|
||||
$realGpxPath = gpxFolderPath();
|
||||
$cacheGpxPath = gpxCacheFolderPath();
|
||||
$relativeGpxPath = relativeGpxFolderPath();
|
||||
$relativeGpxPath = str_replace( '\\', '/', $relativeGpxPath );
|
||||
$relativeGpxCachePath = relativeGpxCacheFolderPath();
|
||||
|
||||
$relativeGpxCachePath = str_replace( "\\","/", $relativeGpxCachePath );
|
||||
|
||||
$tab = $_GET['tab'];
|
||||
|
||||
$relativeGpxCachePath = str_replace( '\\', '/', $relativeGpxCachePath );
|
||||
$tab = $_GET['tab'];
|
||||
|
||||
if ( $tab == '' )
|
||||
|
||||
$tab = 'tracks';
|
||||
|
||||
?>
|
||||
|
||||
<div id="icon-themes" class="icon32"><br></div>
|
||||
|
||||
<h2><?php _e( 'Settings', 'wp-gpx-maps' ); ?></h2>
|
||||
<h2>
|
||||
<?php _e( 'Settings', 'wp-gpx-maps' ); ?>
|
||||
</h2>
|
||||
|
||||
<?php
|
||||
|
||||
if ( file_exists( $realGpxPath ) && is_dir( $realGpxPath ) ) {
|
||||
|
||||
/* Directory exist! */
|
||||
|
||||
} else {
|
||||
|
||||
if ( ! @mkdir( $realGpxPath, 0755, true ) ) {
|
||||
echo '<div class=" notice notice-error"><p>';
|
||||
printf(
|
||||
|
@ -119,13 +101,11 @@ function WP_GPX_Maps_html_page() {
|
|||
echo '</p></div>';
|
||||
}
|
||||
}
|
||||
|
||||
if ( file_exists( $cacheGpxPath ) && is_dir( $cacheGpxPath ) ) {
|
||||
|
||||
/* Directory exist! */
|
||||
|
||||
} else {
|
||||
|
||||
if ( ! @mkdir( $cacheGpxPath, 0755, true ) ) {
|
||||
echo '<div class=" notice notice-error"><p>';
|
||||
printf(
|
||||
|
|
|
@ -96,9 +96,15 @@
|
|||
</th>
|
||||
<td>
|
||||
<select name='wpgpxmaps_distance_type'>
|
||||
<option value="0" <?php if ( $distanceType == '0' || $distanceType == '' ) echo 'selected'; ?>><?php _e( 'Normal (default)', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="1" <?php if ( $distanceType == '1' ) echo 'selected'; ?>><?php _e( 'Flat → (Only flat distance, don’t take care of altitude)', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="2" <?php if ( $distanceType == '2' ) echo 'selected'; ?>><?php _e( 'Climb ↑ (Only climb distance)', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="0" <?php if ( $distanceType == '0' || $distanceType == '' ) echo 'selected'; ?>>
|
||||
<?php _e( 'Normal (default)', 'wp-gpx-maps' ); ?>
|
||||
</option>
|
||||
<option value="1" <?php if ( $distanceType == '1' ) echo 'selected'; ?>>
|
||||
<?php _e( 'Flat → (Only flat distance, don’t take care of altitude)', 'wp-gpx-maps' ); ?>
|
||||
</option>
|
||||
<option value="2" <?php if ( $distanceType == '2' ) echo 'selected'; ?>>
|
||||
<?php _e( 'Climb ↑ (Only climb distance)', 'wp-gpx-maps' ); ?>
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -110,10 +116,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_skipcache" type="checkbox" value="true" <?php if ( $skipcache == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Do not use cache', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Do not use cache', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -125,10 +128,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_download" type="checkbox" value="true" <?php if ( $download == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Allow users to download your GPX file', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Allow users to download your GPX file', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -140,10 +140,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_usegpsposition" type="checkbox" value="true" <?php if ( $usegpsposition == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Allow users to use browser GPS in order to display their current position on map', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Allow users to use browser GPS in order to display their current position on map', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -194,10 +191,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary" type="checkbox" value="true" <?php if ( $summary == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print summary details of your GPX track', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print summary details of your GPX track', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -209,10 +203,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_tot_len" type="checkbox" value="true" <?php if ( $tot_len == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print total distance', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print total distance', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -224,10 +215,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_max_ele" type="checkbox" value="true" <?php if ( $max_ele == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print max elevation', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print max elevation', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -239,10 +227,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_min_ele" type="checkbox" value="true" <?php if ( $min_ele == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print min elevation', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print min elevation', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -254,10 +239,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_total_ele_up" type="checkbox" value="true" <?php if ( $total_ele_up == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print total climbing', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print total climbing', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -269,10 +251,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_total_ele_down" type="checkbox" value="true" <?php if ( $total_ele_down == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print total descent', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print total descent', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</tr>
|
||||
|
||||
|
@ -283,10 +262,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_avg_speed" type="checkbox" value="true" <?php if ( $avg_speed == true ) { echo ( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print average speed', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print average speed', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -298,10 +274,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_avg_cad" type="checkbox" value="true" <?php if ( $avg_cad == true ) { echo ( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print average cadence', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print average cadence', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -313,10 +286,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_avg_hr" type="checkbox" value="true" <?php if ( $avg_hr == true ) { echo ( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print average heart rate', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print average heart rate', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -328,10 +298,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_avg_temp" type="checkbox" value="true" <?php if ( $avg_temp == true ) { echo ( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print average temperature', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print average temperature', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -343,10 +310,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_summary_total_time" type="checkbox" value="true" <?php if ( $total_time == true ) { echo ( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Print total time', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Print total time', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -379,49 +343,49 @@
|
|||
<td>
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM1" <?php if ( $t == 'OSM1' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map type */
|
||||
_e( 'Open Street Map', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM2" <?php if ( $t == 'OSM2' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map provider / map type */
|
||||
_e( 'Open Cycle Map', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM4" <?php if ( $t == 'OSM4' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map provider / map type */
|
||||
_e( 'Open Cycle Map - Transport', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM5" <?php if ( $t == 'OSM5' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map provider / map type */
|
||||
_e( 'Open Cycle Map - Landscape', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM6" <?php if ( $t == 'OSM6' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map provider / map type */
|
||||
_e( 'MapToolKit - Terrain', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM7" <?php if ( $t == 'OSM7' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map provider / map type */
|
||||
_e( 'Open Street Map - Humanitarian map style', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM9" <?php if ( $t == 'OSM9' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map provider / map type */
|
||||
_e( 'Hike & Bike', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM10" <?php if ( $t == 'OSM10' ) echo 'checked'; ?>>
|
||||
<?php
|
||||
echo ' ';
|
||||
/* translators: map provider / map type */
|
||||
_e( 'Open Sea Map', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
|
@ -444,10 +408,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_zoomonscrollwheel" type="checkbox" value="true" <?php if ( $zoomonscrollwheel == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Enable zoom', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Enable zoom', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -459,10 +420,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_show_waypoint" type="checkbox" value="true" <?php if ( $showW == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Show waypoints', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Show waypoints', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -472,7 +430,7 @@
|
|||
<?php _e( 'Start track icon:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input name="wpgpxmaps_map_start_icon" value="<?php echo get_option( 'wpgpxmaps_map_start_icon' ); ?>" style="width:400px" />
|
||||
<input name="wpgpxmaps_map_start_icon" type="text" value="<?php echo get_option( 'wpgpxmaps_map_start_icon' ); ?>" style="width:400px" />
|
||||
<em>
|
||||
<?php _e( '(URL to image) Leave empty to hide.', 'wp-gpx-maps' ); ?>
|
||||
</em>
|
||||
|
@ -484,7 +442,7 @@
|
|||
<?php _e( 'End track icon:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input name="wpgpxmaps_map_end_icon" value="<?php echo get_option( 'wpgpxmaps_map_end_icon' ); ?>" style="width:400px" />
|
||||
<input name="wpgpxmaps_map_end_icon" type="text" value="<?php echo get_option( 'wpgpxmaps_map_end_icon' ); ?>" style="width:400px" />
|
||||
<em>
|
||||
<?php _e( '(URL to image) Leave empty to hide.', 'wp-gpx-maps' ); ?>
|
||||
</em>
|
||||
|
@ -496,7 +454,7 @@
|
|||
<?php _e( 'Current position icon:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input name="wpgpxmaps_map_current_icon" value="<?php echo get_option( 'wpgpxmaps_map_current_icon' ); ?>" style="width:400px" />
|
||||
<input name="wpgpxmaps_map_current_icon" type="text" value="<?php echo get_option( 'wpgpxmaps_map_current_icon' ); ?>" style="width:400px" />
|
||||
<em>
|
||||
<?php _e( '(URL to image) Leave empty to hide.', 'wp-gpx-maps' ); ?>
|
||||
</em>
|
||||
|
@ -508,7 +466,7 @@
|
|||
<?php _e( 'Current GPS position icon:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input name="wpgpxmaps_currentpositioncon" value="<?php echo get_option( 'wpgpxmaps_currentpositioncon' ); ?>" style="width:400px" />
|
||||
<input name="wpgpxmaps_currentpositioncon" type="text" value="<?php echo get_option( 'wpgpxmaps_currentpositioncon' ); ?>" style="width:400px" />
|
||||
<em>
|
||||
<?php _e( '(URL to image) Leave empty to hide.', 'wp-gpx-maps' ); ?>
|
||||
</em>
|
||||
|
@ -520,7 +478,7 @@
|
|||
<?php _e( 'Custom waypoint icon:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input name="wpgpxmaps_map_waypoint_icon" value="<?php echo get_option( 'wpgpxmaps_map_waypoint_icon' ); ?>" style="width:400px" />
|
||||
<input name="wpgpxmaps_map_waypoint_icon" type="text" value="<?php echo get_option( 'wpgpxmaps_map_waypoint_icon' ); ?>" style="width:400px" />
|
||||
<em>
|
||||
<?php _e( '(URL to image) Leave empty to hide.', 'wp-gpx-maps' ); ?>
|
||||
</em>
|
||||
|
@ -553,12 +511,9 @@
|
|||
<?php _e( 'Altitude:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input type="checkbox" <?php if ( $showEle == true ){ echo( 'checked' ); } ?> onchange="wpgpxmaps_show_elevation.value = this.checked" onload="wpgpxmaps_show_elevation.value = this.checked" />
|
||||
<input type="checkbox" <?php if ( $showEle == true ) { echo( 'checked' ); } ?> onchange="wpgpxmaps_show_elevation.value = this.checked" onload="wpgpxmaps_show_elevation.value = this.checked" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Show altitude', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Show altitude', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
<input name="wpgpxmaps_show_elevation" type="hidden" value="<?php echo $showEle; ?>">
|
||||
</td>
|
||||
|
@ -579,12 +534,42 @@
|
|||
</th>
|
||||
<td>
|
||||
<select name='wpgpxmaps_unit_of_measure'>
|
||||
<option value="0" <?php if ( $uom == '0' ) echo 'selected'; ?>><?php _e( 'meters / meters', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="1" <?php if ( $uom == '1' ) echo 'selected'; ?>><?php _e( 'feet / miles', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="2" <?php if ( $uom == '2' ) echo 'selected'; ?>><?php _e( 'meters / kilometers', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="3" <?php if ( $uom == '3' ) echo 'selected'; ?>><?php _e( 'meters / nautical miles', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="4" <?php if ( $uom == '4' ) echo 'selected'; ?>><?php _e( 'meters / miles', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="5" <?php if ( $uom == '5' ) echo 'selected'; ?>><?php _e( 'feet / nautical miles', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="0" <?php if ( $uom == '0' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: chart axis labels */
|
||||
_e( 'meters / meters', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="1" <?php if ( $uom == '1' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: chart axis labels */
|
||||
_e( 'feet / miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="2" <?php if ( $uom == '2' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: chart axis labels */
|
||||
_e( 'meters / kilometers', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="3" <?php if ( $uom == '3' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: chart axis labels */
|
||||
_e( 'meters / nautical miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="4" <?php if ( $uom == '4' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: chart axis labels */
|
||||
_e( 'meters / miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="5" <?php if ( $uom == '5' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: chart axis labels */
|
||||
_e( 'feet / nautical miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -595,10 +580,12 @@
|
|||
</th>
|
||||
<td>
|
||||
<?php _e( 'From', 'wp-gpx-maps' ); ?>
|
||||
<input name="wpgpxmaps_graph_offset_from1" value="<?php echo get_option( 'wpgpxmaps_graph_offset_from1' ); ?>" style="width:50px;" />
|
||||
<input name="wpgpxmaps_graph_offset_from1" type="text" value="<?php echo get_option( 'wpgpxmaps_graph_offset_from1' ); ?>" style="width:50px;" />
|
||||
<?php _e( 'to', 'wp-gpx-maps' ); ?>
|
||||
<input name="wpgpxmaps_graph_offset_to1" value="<?php echo get_option( 'wpgpxmaps_graph_offset_to1' ); ?>" style="width:50px;" />
|
||||
<em><?php _e( '(leave empty for auto scale)', 'wp-gpx-maps' ); ?></em>
|
||||
<input name="wpgpxmaps_graph_offset_to1" type="text" value="<?php echo get_option( 'wpgpxmaps_graph_offset_to1' ); ?>" style="width:50px;" />
|
||||
<em>
|
||||
<?php _e( '(leave empty for auto scale)', 'wp-gpx-maps' ); ?>
|
||||
</em>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@ -607,7 +594,10 @@
|
|||
<?php _e( 'Speed:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input name="wpgpxmaps_show_speed" type="checkbox" value="true" <?php if ( $showSpeed == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" /><i><?php echo ' ' ; _e( 'Show speed', 'wp-gpx-maps' ); ?></i>
|
||||
<input name="wpgpxmaps_show_speed" type="checkbox" value="true" <?php if ( $showSpeed == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php _e( 'Show speed', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@ -626,13 +616,48 @@
|
|||
</th>
|
||||
<td>
|
||||
<select name='wpgpxmaps_unit_of_measure_speed'>
|
||||
<option value="0" <?php if ( $uomSpeed == '0' ) echo 'selected'; ?>><?php _e( 'm/s', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="1" <?php if ( $uomSpeed == '1' ) echo 'selected'; ?>><?php _e( 'km/h', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="2" <?php if ( $uomSpeed == '2' ) echo 'selected'; ?>><?php _e( 'miles/h', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="3" <?php if ( $uomSpeed == '3' ) echo 'selected'; ?>><?php _e( 'min/km', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="4" <?php if ( $uomSpeed == '4' ) echo 'selected'; ?>><?php _e( 'min/miles', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="5" <?php if ( $uomSpeed == '5' ) echo 'selected'; ?>><?php _e( 'Knots (nautical miles / hour)', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="6" <?php if ( $uomSpeed == '6' ) echo 'selected'; ?>><?php _e( 'min/100 meters', 'wp-gpx-maps' ); ?></option>
|
||||
<option value="0" <?php if ( $uomSpeed == '0' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: speed unit of measure */
|
||||
_e( 'm/s', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="1" <?php if ( $uomSpeed == '1' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: speed unit of measure */
|
||||
_e( 'km/h', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="2" <?php if ( $uomSpeed == '2' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: speed unit of measure */
|
||||
_e( 'miles/h', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="3" <?php if ( $uomSpeed == '3' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: speed unit of measure */
|
||||
_e( 'min/km', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="4" <?php if ( $uomSpeed == '4' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: speed unit of measure */
|
||||
_e( 'min/miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="5" <?php if ( $uomSpeed == '5' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: speed unit of measure */
|
||||
_e( 'Knots (nautical miles / hour)', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
<option value="6" <?php if ( $uomSpeed == '6' ) echo 'selected'; ?>>
|
||||
<?php
|
||||
/* translators: speed unit of measure */
|
||||
_e( 'min/100 meters', 'wp-gpx-maps' );
|
||||
?>
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -643,10 +668,12 @@
|
|||
</th>
|
||||
<td>
|
||||
<?php _e( 'From', 'wp-gpx-maps' ); ?>
|
||||
<input name="wpgpxmaps_graph_offset_from2" value="<?php echo get_option( 'wpgpxmaps_graph_offset_from2' ); ?>" style="width:50px;" />
|
||||
<input name="wpgpxmaps_graph_offset_from2" type="text" value="<?php echo get_option( 'wpgpxmaps_graph_offset_from2' ); ?>" style="width:50px;" />
|
||||
<?php _e( 'to', 'wp-gpx-maps' ); ?>
|
||||
<input name="wpgpxmaps_graph_offset_to2" value="<?php echo get_option( 'wpgpxmaps_graph_offset_to2' ); ?>" style="width:50px;" />
|
||||
<em><?php _e( '(leave empty for auto scale)', 'wp-gpx-maps' ); ?></em>
|
||||
<input name="wpgpxmaps_graph_offset_to2" type="text" value="<?php echo get_option( 'wpgpxmaps_graph_offset_to2' ); ?>" style="width:50px;" />
|
||||
<em>
|
||||
<?php _e( '(leave empty for auto scale)', 'wp-gpx-maps' ); ?>
|
||||
</em>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@ -657,10 +684,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_show_hr" type="checkbox" value="true" <?php if ( $showHr == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Show heart rate', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Show heart rate', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -681,10 +705,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_show_atemp" type="checkbox" value="true" <?php if ( $showAtemp == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Show temperature', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Show temperature', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -705,10 +726,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_show_cadence" type="checkbox" value="true" <?php if ( $showCad == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Show cadence', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Show cadence', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -729,10 +747,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_show_grade" type="checkbox" value="true" <?php if ( $showGrade == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Show grade - BETA (Grade values depends on your GPS accuracy. If you have a poor GPS accuracy they might be totally wrong!)', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Show grade - BETA (Grade values depends on your GPS accuracy. If you have a poor GPS accuracy they might be totally wrong!)', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -777,10 +792,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_pointsoffset" type="text" id="wpgpxmaps_pointsoffset" value="<?php echo $po ?>" style="width:50px;" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'meters', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'meters', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -792,10 +804,7 @@
|
|||
<td>
|
||||
<input name="wpgpxmaps_donotreducegpx" type="checkbox" value="true" <?php if ( $donotreducegpx == true ) { echo( 'checked' ); } ?> onchange="this.value = (this.checked)" />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Do not reduce GPX', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Do not reduce GPX', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -805,12 +814,9 @@
|
|||
<?php _e( 'User upload:', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
<td>
|
||||
<input name="wpgpxmaps_allow_users_view" type="checkbox" value="true" onchange="this.value = (this.checked)" <?php if ( $allow_users_upload === "true" ) { echo( 'checked' ); } ?>>
|
||||
<input name="wpgpxmaps_allow_users_view" type="checkbox" value="true" onchange="this.value = (this.checked)" <?php if ( $allow_users_upload === "true" ) { echo( 'checked' ); } ?> />
|
||||
<i>
|
||||
<?php
|
||||
echo ' ';
|
||||
_e( 'Allow registered user to upload GPX files', 'wp-gpx-maps' );
|
||||
?>
|
||||
<?php _e( 'Allow registered user to upload GPX files', 'wp-gpx-maps' ); ?>
|
||||
</i>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -8,47 +8,39 @@ $is_admin = current_user_can( 'publish_posts' );
|
|||
if ( $is_admin != 1 )
|
||||
return;
|
||||
|
||||
$allow_users_upload = get_option( 'wpgpxmaps_allow_users_view' ) === "true";
|
||||
|
||||
$wpgpxmapsUrl = get_admin_url() . "admin.php?page=WP-GPX-Maps";
|
||||
|
||||
$gpxRegEx = '/.gpx$/i';
|
||||
$allow_users_upload = get_option( 'wpgpxmaps_allow_users_view' ) === 'true';
|
||||
$wpgpxmapsUrl = get_admin_url() . 'admin.php?page=WP-GPX-Maps';
|
||||
$gpxRegEx = '/.gpx$/i';
|
||||
|
||||
if ( current_user_can( 'manage_options' ) ) {
|
||||
$menu_root = 'options-general.php';
|
||||
$menu_root = 'options-general.php';
|
||||
} elseif ( current_user_can( 'publish_posts' ) ) {
|
||||
$menu_root = 'admin.php';
|
||||
$menu_root = 'admin.php';
|
||||
}
|
||||
|
||||
if ( isset( $_POST['clearcache'] ) ) {
|
||||
|
||||
if ( isset( $_GET['_wpnonce'] )
|
||||
&&
|
||||
wp_verify_nonce( $_GET['_wpnonce'], 'wpgpx_clearcache_nonce' . $entry )
|
||||
) {
|
||||
if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'wpgpx_clearcache_nonce' . $entry ) ) {
|
||||
echo '<div class="notice notice-success"><p>';
|
||||
_e( 'Cache is now empty!', 'wp-gpx-maps' );
|
||||
echo '</p></div>';
|
||||
|
||||
wpgpxmaps_recursive_remove_directory( $cacheGpxPath, true );
|
||||
}
|
||||
}
|
||||
|
||||
if ( is_writable( $realGpxPath ) ) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="tablenav top">
|
||||
<?php
|
||||
<?php
|
||||
echo '<form enctype="multipart/form-data" method="POST" style="float:left; margin:5px 20px 0 0" action="' . get_bloginfo( 'wpurl' ) . '/wp-admin/' . $menu_root . '?page=WP-GPX-Maps">';
|
||||
?>
|
||||
?>
|
||||
<?php _e( 'Choose a file to upload:', 'wp-gpx-maps' ); ?> <input name="uploadedfile[]" type="file" onchange="submitgpx(this);" multiple />
|
||||
<?php
|
||||
if ( isset( $_FILES['uploadedfile'] ) ) {
|
||||
$total = count( $_FILES['uploadedfile']['name'] );
|
||||
for ( $i = 0; $i < $total; $i++ ) {
|
||||
$uploadingFileName = basename( $_FILES['uploadedfile']['name'][$i] );
|
||||
$target_path = $realGpxPath . "/" . $uploadingFileName;
|
||||
$target_path = $realGpxPath . '/' . $uploadingFileName;
|
||||
if ( preg_match( $gpxRegEx, $target_path ) ) {
|
||||
if ( move_uploaded_file( $_FILES['uploadedfile']['tmp_name'][$i], $target_path ) ) {
|
||||
echo '<div class="notice notice-success"><p>';
|
||||
|
@ -57,19 +49,19 @@ if ( is_writable( $realGpxPath ) ) {
|
|||
__( 'The file %1s has been successfully uploaded.', 'wp-gpx-maps' ),
|
||||
'<span class="code"><strong>' . esc_html( $uploadingFileName ) . '</strong></span>'
|
||||
);
|
||||
echo '</p></div>';
|
||||
echo '</p></div>';
|
||||
} else {
|
||||
echo '<div class=" notice notice-error"><p>';
|
||||
_e( 'There was an error uploading the file, please try again!', 'wp-gpx-maps' );
|
||||
echo '</p></div>';
|
||||
}
|
||||
} else {
|
||||
echo '<div class=" notice notice-error"><p>';
|
||||
_e( 'There was an error uploading the file, please try again!', 'wp-gpx-maps' );
|
||||
echo '<div class="notice notice-warning"><p>';
|
||||
_e( 'The file type is not supported!', 'wp-gpx-maps' );
|
||||
echo '</p></div>';
|
||||
}
|
||||
} else {
|
||||
echo '<div class="notice notice-warning"><p>';
|
||||
_e( 'The file type is not supported!', 'wp-gpx-maps' );
|
||||
echo '</p></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
|
@ -105,21 +97,16 @@ if ( is_writable( $realGpxPath ) ) {
|
|||
|
||||
$myGpxFileNames = array();
|
||||
if ( is_readable ( $realGpxPath ) && $handle = opendir( $realGpxPath ) ) {
|
||||
while ( false !== ( $entry = readdir( $handle ) ) ) {
|
||||
while ( false !== ( $entry = readdir( $handle ) ) ) {
|
||||
if ( preg_match( $gpxRegEx, $entry ) ) {
|
||||
|
||||
if ( isset($_GET['_wpnonce'])
|
||||
&&
|
||||
wp_verify_nonce( $_GET['_wpnonce'], 'wpgpx_deletefile_nonce_' . $entry )
|
||||
) {
|
||||
|
||||
if ( file_exists( $realGpxPath . "/" . $entry ) ) {
|
||||
unlink( $realGpxPath . "/" . $entry );
|
||||
if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'], 'wpgpx_deletefile_nonce_' . $entry ) ) {
|
||||
if ( file_exists( $realGpxPath . '/' . $entry ) ) {
|
||||
unlink( $realGpxPath . '/' . $entry );
|
||||
echo '<div class="notice notice-success"><p>';
|
||||
printf(
|
||||
/* translators: GPX file name */
|
||||
__( 'The file %1s has been successfully deleted.', 'wp-gpx-maps' ),
|
||||
'<span class="code"><strong>' . esc_html ( $entry ) . '</strong></span>'
|
||||
'<span class="code"><strong>' . esc_html( $entry ) . '</strong></span>'
|
||||
);
|
||||
echo '</p></div>';
|
||||
} else {
|
||||
|
@ -127,13 +114,12 @@ if ( is_writable( $realGpxPath ) ) {
|
|||
printf(
|
||||
/* translators: GPX file name */
|
||||
__( 'The file %1s could not be deleted.', 'wp-gpx-maps' ),
|
||||
'<span class="code"><strong>' . esc_html ( $entry ) . '</strong></span>'
|
||||
'<span class="code"><strong>' . esc_html( $entry ) . '</strong></span>'
|
||||
);
|
||||
echo '</p></div>';
|
||||
|
||||
echo '</p></div>';
|
||||
}
|
||||
} else {
|
||||
$myFile = $realGpxPath . "/" . $entry;
|
||||
$myFile = $realGpxPath . '/' . $entry;
|
||||
$myGpxFileNames[] = array(
|
||||
'name' => $entry,
|
||||
'size' => filesize( $myFile ),
|
||||
|
@ -146,13 +132,13 @@ if ( is_writable( $realGpxPath ) ) {
|
|||
closedir( $handle );
|
||||
}
|
||||
|
||||
if ( is_readable ( $realGpxPath ) && $handle = opendir( $realGpxPath ) ) {
|
||||
while ( false !== ($entry = readdir( $handle ) ) ) {
|
||||
if ( is_readable( $realGpxPath ) && $handle = opendir( $realGpxPath ) ) {
|
||||
while ( false !== ( $entry = readdir( $handle ) ) ) {
|
||||
if ( preg_match( $gpxRegEx, $entry ) ) {
|
||||
$filenames[] = $realGpxPath . "/" . $entry;
|
||||
$filenames[] = $realGpxPath . '/' . $entry;
|
||||
}
|
||||
}
|
||||
closedir( $handle );
|
||||
closedir( $handle );
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -237,11 +223,4 @@ if ( is_readable ( $realGpxPath ) && $handle = opendir( $realGpxPath ) ) {
|
|||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#table tr:hover {
|
||||
background:#eeeeee;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -59,14 +59,15 @@
|
|||
?>
|
||||
<code><strong>[sgpx gpx="<?php echo $relativeGpxPath; ?>yourgpxfile.gpx < <?php _e( 'read below all the optional attributes', 'wp-gpx-maps' ); ?> >"]</strong></code>
|
||||
</p>
|
||||
<strong><?php _e( 'Note: If no value is displayed in the "Current value" column, the value is "false".', 'wp-gpx-maps' ); ?></strong>
|
||||
|
||||
</div>
|
||||
|
||||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">
|
||||
<strong><?php _e( 'General', 'wp-gpx-maps' ); ?></strong>
|
||||
<th class="title" colspan="4">
|
||||
<?php _e( 'General', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -104,6 +105,12 @@
|
|||
</td>
|
||||
<td>
|
||||
<?php _e( 'Value in percent', 'wp-gpx-maps' ); ?>
|
||||
<br />
|
||||
<?php
|
||||
_e( 'Default is:', 'wp-gpx-maps' );
|
||||
echo ' ';
|
||||
?>
|
||||
<strong>100%</strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_option( 'wpgpxmaps_width' ); ?>
|
||||
|
@ -116,6 +123,12 @@
|
|||
</td>
|
||||
<td>
|
||||
<?php _e( 'Value in pixels', 'wp-gpx-maps' ); ?>
|
||||
<br />
|
||||
<?php
|
||||
_e( 'Default is:', 'wp-gpx-maps' );
|
||||
echo ' ';
|
||||
?>
|
||||
<strong>450px</strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_option( 'wpgpxmaps_height' ); ?>
|
||||
|
@ -128,6 +141,12 @@
|
|||
</td>
|
||||
<td>
|
||||
<?php _e( 'Value in pixels', 'wp-gpx-maps' ); ?>
|
||||
<br />
|
||||
<?php
|
||||
_e( 'Default is:', 'wp-gpx-maps' );
|
||||
echo ' ';
|
||||
?>
|
||||
<strong>200px</strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_option( 'wpgpxmaps_graph_height' ); ?>
|
||||
|
@ -173,8 +192,8 @@
|
|||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">
|
||||
<strong><?php _e( 'Map', 'wp-gpx-maps' ); ?></strong>
|
||||
<th class="title" colspan="4">
|
||||
<?php _e( 'Map', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -199,23 +218,56 @@
|
|||
<?php _e( 'Map type', 'wp-gpx-maps' ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<strong>HYBRID, ROADMAP, SATELLITE, TERRAIN</strong>
|
||||
<?php
|
||||
/* translators: map type */
|
||||
_e( 'HYBRID, ROADMAP, SATELLITE, TERRAIN', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM1</strong> = <?php _e( 'Open Street Map', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM1 = Open Street Map', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM2</strong> = <?php _e( 'Open Cycle Map', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM2 = Open Cycle Map', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM4</strong> = <?php _e( 'Open Cycle Map - Transport', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM4 = Open Cycle Map - Transport', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM5</strong> = <?php _e( 'Open Cycle Map - Landscape', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM5 = Open Cycle Map - Landscape', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM6</strong> = <?php _e( 'MapToolKit - Terrain', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM6 = MapToolKit - Terrain', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM7</strong> = <?php _e( 'Open Street Map - Humanitarian map style', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM7 = Open Street Map - Humanitarian map style', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM9</strong> = <?php _e( 'Hike & Bike', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM9 = Hike & Bike', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>OSM10</strong> = <?php _e( 'Open Sea Map', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = map provider / map type */
|
||||
_e( 'OSM10 = Open Sea Map', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<?php
|
||||
_e( 'Default is:', 'wp-gpx-maps' );
|
||||
echo ' ';
|
||||
?>
|
||||
<strong>HYBRID</strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_option( 'wpgpxmaps_map_type' ); ?>
|
||||
|
@ -317,8 +369,8 @@
|
|||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">
|
||||
<strong><?php _e( 'Diagram', 'wp-gpx-maps' ); ?></strong>
|
||||
<th class="title" colspan="4">
|
||||
<?php _e( 'Diagram', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -375,18 +427,41 @@
|
|||
<?php _e( 'Distance / Altitude unit of measure', 'wp-gpx-maps' ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<strong>0</strong> = <?php _e( 'meters / meters', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = chart axis labels */
|
||||
_e( '0 = meters / meters', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>1</strong> = <?php _e( 'feet / miles', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = chart axis labels */
|
||||
_e( '1 = feet / miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>2</strong> = <?php _e( 'meters / kilometers', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = chart axis labels */
|
||||
_e( '2 = meters / kilometers', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>3</strong> = <?php _e( 'meters / nautical miles', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = chart axis labels */
|
||||
_e( '3 = meters / nautical miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>4</strong> = <?php _e( 'meters / miles', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = chart axis labels */
|
||||
_e( '4 = meters / miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>5</strong> = <?php _e( 'feet / nautical miles', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = chart axis labels */
|
||||
_e( '5 = feet / nautical miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<?php
|
||||
_e( 'Default is:', 'wp-gpx-maps' );
|
||||
echo ' ';
|
||||
?>
|
||||
<strong>0</strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_option( 'wpgpxmaps_unit_of_measure' ); ?>
|
||||
|
@ -450,20 +525,46 @@
|
|||
<?php _e( 'Speed unit of measure', 'wp-gpx-maps' ); ?>
|
||||
</td>
|
||||
<td>
|
||||
<strong>0</strong> = <?php _e( 'm/s', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = speed unit of measure */
|
||||
_e( '0 = m/s', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>1</strong> = <?php _e( 'km/h', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = speed unit of measure */
|
||||
_e( '1 = km/h', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>2</strong> = <?php _e( 'miles/h', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = speed unit of measure */
|
||||
_e( '2 = miles/h', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>3</strong> = <?php _e( 'min/km', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = speed unit of measure */
|
||||
_e( '3 = min/km', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>4</strong> = <?php _e( 'min/miles', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = speed unit of measure */
|
||||
_e( '4 = min/miles', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>5</strong> = <?php _e( 'Knots (nautical miles / hour)', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = speed unit of measure */
|
||||
_e( '5 = Knots (nautical miles / hour)', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<strong>6</strong> = <?php _e( 'min/100 meters', 'wp-gpx-maps' ); ?>
|
||||
<?php
|
||||
/* translators: selection = speed unit of measure */
|
||||
_e( '6 = min/100 meters', 'wp-gpx-maps' );
|
||||
?>
|
||||
<br />
|
||||
<?php
|
||||
_e( 'Default is:', 'wp-gpx-maps' );
|
||||
echo ' ';
|
||||
?>
|
||||
<strong>0</strong>
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_option( 'wpgpxmaps_unit_of_measure_speed' ); ?>
|
||||
|
@ -624,8 +725,8 @@
|
|||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
<strong><?php _e( 'Pictures', 'wp-gpx-maps' ); ?></strong>
|
||||
<th class="title" colspan="3">
|
||||
<?php _e( 'Pictures', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -689,8 +790,8 @@
|
|||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">
|
||||
<strong><?php _e( 'Summary table', 'wp-gpx-maps' ); ?></strong>
|
||||
<th class="title" colspan="4">
|
||||
<?php _e( 'Summary table', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -893,8 +994,8 @@
|
|||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="4">
|
||||
<strong><?php _e( 'Advanced', 'wp-gpx-maps' ); ?></strong>
|
||||
<th class="title" colspan="4">
|
||||
<?php _e( 'Advanced', 'wp-gpx-maps' ); ?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -18,7 +18,8 @@ function wpgpxmaps_getAttachedImages( $dt, $lat, $lon, $dtoffset, &$error ) {
|
|||
'post_mime_type' => 'image',
|
||||
'order' => 'ASC',
|
||||
'orderby' => 'menu_order ASC',
|
||||
));
|
||||
)
|
||||
);
|
||||
|
||||
foreach ( $attachments as $attachment_id => $attachment ) {
|
||||
|
||||
|
@ -27,27 +28,27 @@ function wpgpxmaps_getAttachedImages( $dt, $lat, $lon, $dtoffset, &$error ) {
|
|||
$img_metadata = wp_get_attachment_metadata( $attachment_id );
|
||||
|
||||
$item = array();
|
||||
$item["data"] = wp_get_attachment_link( $attachment_id, array( 105, 105 ) );
|
||||
$item['data'] = wp_get_attachment_link( $attachment_id, array( 105, 105 ) );
|
||||
|
||||
if ( is_callable( 'exif_read_data' ) ) {
|
||||
$exif = @exif_read_data( $img_src[0] );
|
||||
if ( $exif !== false ) {
|
||||
$item["lon"] = getExifGps( $exif["GPSLongitude"], $exif['GPSLongitudeRef'] );
|
||||
$item["lat"] = getExifGps( $exif["GPSLatitude"], $exif['GPSLatitudeRef'] );
|
||||
if ( ( $item["lat"] != 0 ) || ( $item["lon"] != 0 ) ) {
|
||||
$result[] = $item;
|
||||
} elseif ( isset( $p->imagedate ) ) {
|
||||
$_dt = strtotime( $p->imagedate ) + $dtoffset;
|
||||
$_item = findItemCoordinate( $_dt, $dt, $lat, $lon );
|
||||
$item['lon'] = getExifGps( $exif['GPSLongitude'], $exif['GPSLongitudeRef'] );
|
||||
$item['lat'] = getExifGps( $exif['GPSLatitude'], $exif['GPSLatitudeRef'] );
|
||||
if ( ( $item['lat'] != 0 ) || ( $item['lon'] != 0 ) ) {
|
||||
$result[] = $item;
|
||||
} elseif ( isset( $p->imagedate ) ) {
|
||||
$_dt = strtotime( $p->imagedate ) + $dtoffset;
|
||||
$_item = findItemCoordinate( $_dt, $dt, $lat, $lon );
|
||||
if ( $_item != null ) {
|
||||
$item["lat"] = $_item["lat"];
|
||||
$item["lon"] = $_item["lon"];
|
||||
$item['lat'] = $_item['lat'];
|
||||
$item['lon'] = $_item['lon'];
|
||||
$result[] = $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$error .= "Sorry, <a href='http://php.net/manual/en/function.exif-read-data.php' target='_blank' >exif_read_data</a> function not found! check your hosting..<br />";
|
||||
$error .= "Sorry, <a href='http://php.net/manual/en/function.exif-read-data.php' target='_blank' >exif_read_data</a> function not found! check your hosting.<br />";
|
||||
}
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
|
@ -106,8 +107,7 @@ function relativeGpxCacheFolderPath() {
|
|||
|
||||
function wpgpxmaps_recursive_remove_directory( $directory, $empty = false ) {
|
||||
|
||||
if ( substr( $directory, -1 ) == '/' )
|
||||
{
|
||||
if ( substr( $directory, -1 ) == '/' ) {
|
||||
$directory = substr( $directory, 0, -1 );
|
||||
}
|
||||
if ( ! file_exists( $directory ) || ! is_dir( $directory ) ) {
|
||||
|
@ -262,31 +262,31 @@ function wpgpxmaps_parseXml( $filePath, $gpxOffset, $distancetype ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( $lastLat == 0 && $lastLon == 0 ) {
|
||||
if ( $lastLat == 0 && $lastLon == 0 ) {
|
||||
|
||||
/* Base Case */
|
||||
array_push( $points->dt, strtotime( $time ) );
|
||||
array_push( $points->lat, (float) $lat );
|
||||
array_push( $points->lon, (float) $lon );
|
||||
array_push( $points->ele, (float) round( $ele, 2 ) );
|
||||
array_push( $points->dist, (float) round( $dist, 2 ) );
|
||||
array_push( $points->speed, 0 );
|
||||
array_push( $points->hr, (float) $hr );
|
||||
array_push( $points->atemp, (float) $atemp );
|
||||
array_push( $points->cad, (float) $cad );
|
||||
array_push( $points->grade, $grade );
|
||||
/* Base Case */
|
||||
array_push( $points->dt, strtotime( $time ) );
|
||||
array_push( $points->lat, (float) $lat );
|
||||
array_push( $points->lon, (float) $lon );
|
||||
array_push( $points->ele, (float) round( $ele, 2 ) );
|
||||
array_push( $points->dist, (float) round( $dist, 2 ) );
|
||||
array_push( $points->speed, 0 );
|
||||
array_push( $points->hr, (float) $hr );
|
||||
array_push( $points->atemp, (float) $atemp );
|
||||
array_push( $points->cad, (float) $cad );
|
||||
array_push( $points->grade, $grade );
|
||||
|
||||
$lastLat = $lat;
|
||||
$lastLon = $lon;
|
||||
$lastEle = $ele;
|
||||
$lastTime = $time;
|
||||
$lastLat = $lat;
|
||||
$lastLon = $lon;
|
||||
$lastEle = $ele;
|
||||
$lastTime = $time;
|
||||
} else {
|
||||
|
||||
/* Normal Case */
|
||||
$offset = calculateDistance( (float) $lat, (float) $lon, (float) $ele, (float) $lastLat, (float) $lastLon, (float) $lastEle, $distancetype );
|
||||
$dist = $dist + $offset;
|
||||
/* Normal Case */
|
||||
$offset = calculateDistance( (float) $lat, (float) $lon, (float) $ele, (float) $lastLat, (float) $lastLon, (float) $lastEle, $distancetype );
|
||||
$dist = $dist + $offset;
|
||||
|
||||
$points->totalLength = $dist;
|
||||
$points->totalLength = $dist;
|
||||
|
||||
if ( $speed == 0 ) {
|
||||
$datediff = (float) my_date_diff( $lastTime, $time );
|
||||
|
@ -295,8 +295,8 @@ function wpgpxmaps_parseXml( $filePath, $gpxOffset, $distancetype ) {
|
|||
}
|
||||
}
|
||||
|
||||
if ( $ele != 0 && $lastEle != 0 ) {
|
||||
$deltaEle = (float) ( $ele - $lastEle );
|
||||
if ( $ele != 0 && $lastEle != 0 ) {
|
||||
$deltaEle = (float) ( $ele - $lastEle );
|
||||
|
||||
if ( (float) $ele > (float) $lastEle ) {
|
||||
$points->totalEleUp += $deltaEle;
|
||||
|
@ -306,98 +306,92 @@ function wpgpxmaps_parseXml( $filePath, $gpxOffset, $distancetype ) {
|
|||
$grade = $deltaEle / $offset * 100;
|
||||
}
|
||||
|
||||
array_push( $speedBuffer, $speed );
|
||||
array_push( $speedBuffer, $speed );
|
||||
|
||||
if ( ( (float) $offset + (float) $lastOffset ) > $gpxOffset ) {
|
||||
/* Bigger Offset -> write coordinate */
|
||||
$avgSpeed = 0;
|
||||
if ( ( (float) $offset + (float) $lastOffset ) > $gpxOffset ) {
|
||||
/* Bigger Offset -> write coordinate */
|
||||
$avgSpeed = 0;
|
||||
|
||||
foreach ( $speedBuffer as $s ) {
|
||||
$avgSpeed += $s;
|
||||
$avgSpeed += $s;
|
||||
}
|
||||
|
||||
$avgSpeed = $avgSpeed / count( $speedBuffer );
|
||||
$speedBuffer = array();
|
||||
$avgSpeed = $avgSpeed / count( $speedBuffer );
|
||||
$speedBuffer = array();
|
||||
|
||||
$lastOffset = 0;
|
||||
|
||||
array_push( $points->dt, strtotime( $time ) );
|
||||
array_push( $points->lat, (float) $lat );
|
||||
array_push( $points->lon, (float) $lon );
|
||||
array_push( $points->ele, (float) round( $ele, 2 ) );
|
||||
array_push( $points->dist, (float) round( $dist, 2 ) );
|
||||
array_push( $points->speed, (float) round( $avgSpeed, 1 ) );
|
||||
array_push( $points->hr, $hr );
|
||||
array_push( $points->atemp, $atemp );
|
||||
array_push( $points->cad, $cad );
|
||||
array_push( $points->grade, (float) round( $grade, 2 ) );
|
||||
$lastOffset = 0;
|
||||
|
||||
array_push( $points->dt, strtotime( $time ) );
|
||||
array_push( $points->lat, (float) $lat );
|
||||
array_push( $points->lon, (float) $lon );
|
||||
array_push( $points->ele, (float) round( $ele, 2 ) );
|
||||
array_push( $points->dist, (float) round( $dist, 2 ) );
|
||||
array_push( $points->speed, (float) round( $avgSpeed, 1 ) );
|
||||
array_push( $points->hr, $hr );
|
||||
array_push( $points->atemp, $atemp );
|
||||
array_push( $points->cad, $cad );
|
||||
array_push( $points->grade, (float) round( $grade, 2 ) );
|
||||
} else {
|
||||
/* Smoller Offset -> continue.. */
|
||||
$lastOffset = (float) $lastOffset + (float) $offset;
|
||||
/* Smoller Offset -> continue.. */
|
||||
$lastOffset = (float) $lastOffset + (float) $offset;
|
||||
}
|
||||
}
|
||||
$lastLat = $lat;
|
||||
$lastLon = $lon;
|
||||
$lastEle = $ele;
|
||||
$lastTime = $time;
|
||||
|
||||
$lastLat = $lat;
|
||||
$lastLon = $lon;
|
||||
$lastEle = $ele;
|
||||
$lastTime = $time;
|
||||
}
|
||||
array_push( $points->dt, null );
|
||||
array_push( $points->lat, null );
|
||||
array_push( $points->lon, null );
|
||||
array_push( $points->ele, null );
|
||||
array_push( $points->dist, null );
|
||||
array_push( $points->speed, null );
|
||||
array_push( $points->hr, null );
|
||||
array_push( $points->atemp, null );
|
||||
array_push( $points->cad, null );
|
||||
array_push( $points->grade, null );
|
||||
|
||||
array_push( $points->dt, null );
|
||||
array_push( $points->lat, null );
|
||||
array_push( $points->lon, null );
|
||||
array_push( $points->ele, null );
|
||||
array_push( $points->dist, null );
|
||||
array_push( $points->speed, null );
|
||||
array_push( $points->hr, null );
|
||||
array_push( $points->atemp, null );
|
||||
array_push( $points->cad, null );
|
||||
array_push( $points->grade, null );
|
||||
|
||||
unset( $trkpts );
|
||||
|
||||
unset( $trkpts );
|
||||
}
|
||||
|
||||
unset( $nodes );
|
||||
unset( $nodes );
|
||||
|
||||
try {
|
||||
array_pop( $points->dt, null );
|
||||
array_pop( $points->lat, null );
|
||||
array_pop( $points->lon, null );
|
||||
array_pop( $points->ele, null );
|
||||
array_pop( $points->dist, null );
|
||||
array_pop( $points->speed, null );
|
||||
array_pop( $points->hr, null );
|
||||
array_pop( $points->atemp, null );
|
||||
array_pop( $points->cad, null );
|
||||
array_pop( $points->grade, null );
|
||||
|
||||
array_pop( $points->dt, null );
|
||||
array_pop( $points->lat, null );
|
||||
array_pop( $points->lon, null );
|
||||
array_pop( $points->ele, null );
|
||||
array_pop( $points->dist, null );
|
||||
array_pop( $points->speed, null );
|
||||
array_pop( $points->hr, null );
|
||||
array_pop( $points->atemp, null );
|
||||
array_pop( $points->cad, null );
|
||||
array_pop( $points->grade, null );
|
||||
$_time = array_filter( $points->dt );
|
||||
$_ele = array_filter( $points->ele );
|
||||
$_dist = array_filter( $points->dist );
|
||||
$points->maxEle = max( $_ele );
|
||||
$points->minEle = min( $_ele );
|
||||
$points->totalLength = max( $_dist );
|
||||
$points->maxTime = max( $_time );
|
||||
$points->minTime = min( $_time );
|
||||
|
||||
$_time = array_filter( $points->dt );
|
||||
$_ele = array_filter( $points->ele );
|
||||
$_dist = array_filter( $points->dist );
|
||||
$points->maxEle = max( $_ele );
|
||||
$points->minEle = min( $_ele );
|
||||
$points->totalLength = max( $_dist );
|
||||
$points->maxTime = max( $_time );
|
||||
$points->minTime = min( $_time );
|
||||
/* Calculating Average Speed */
|
||||
$_speed = array_filter( $points->speed );
|
||||
$points->avgSpeed = array_sum( $_speed ) / count( $_speed );
|
||||
|
||||
/* Calculating Average Speed */
|
||||
$_speed = array_filter( $points->speed );
|
||||
$points->avgSpeed = array_sum( $_speed ) / count( $_speed );
|
||||
/* Calculating Average Cadence */
|
||||
$_cad = array_filter( $points->cad );
|
||||
$points->avgCad = (float) round( array_sum( $_cad ) / count( $_cad ), 0 );
|
||||
|
||||
/* Calculating Average Cadence */
|
||||
$_cad = array_filter( $points->cad );
|
||||
$points->avgCad = (float) round( array_sum( $_cad ) / count( $_cad ), 0 );
|
||||
/* Calculating Average Heart Rate */
|
||||
$_hr = array_filter( $points->hr );
|
||||
$points->avgHr = (float) round( array_sum( $_hr ) / count( $_hr ), 0 );
|
||||
|
||||
/* Calculating Average Heart Rate */
|
||||
$_hr = array_filter( $points->hr );
|
||||
$points->avgHr = (float) round( array_sum( $_hr ) / count( $_hr ), 0 );
|
||||
|
||||
/* Calculating Average Temperature */
|
||||
$_temp = array_filter( $points->atemp );
|
||||
$points->avgTemp = (float) round( array_sum( $_temp ) / count( $_temp ), 1 );
|
||||
/* Calculating Average Temperature */
|
||||
$_temp = array_filter( $points->atemp );
|
||||
$points->avgTemp = (float) round( array_sum( $_temp ) / count( $_temp ), 1 );
|
||||
|
||||
} catch ( Exception $e ) {
|
||||
}
|
||||
|
@ -568,15 +562,15 @@ function wpgpxmaps_getWayPoints( $gpxPath ) {
|
|||
}
|
||||
|
||||
array_push($points, array(
|
||||
"lat" => (float) $lat,
|
||||
"lon" => (float) $lon,
|
||||
"ele" => (float) $ele,
|
||||
"time" => $time,
|
||||
"name" => $name,
|
||||
"desc" => $desc,
|
||||
"sym" => $sym,
|
||||
"type" => $type,
|
||||
"img" => $img,
|
||||
'lat' => (float) $lat,
|
||||
'lon' => (float) $lon,
|
||||
'ele' => (float) $ele,
|
||||
'time' => $time,
|
||||
'name' => $name,
|
||||
'desc' => $desc,
|
||||
'sym' => $sym,
|
||||
'type' => $type,
|
||||
'img' => $img,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
@ -638,4 +632,3 @@ function date_getDecimals( $date ) {
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -43,7 +43,7 @@ function getNGGalleryImages( $ngGalleries, $ngImages, $dt, $lat, $lon, $dtoffset
|
|||
if ( is_callable( 'exif_read_data' ) ) {
|
||||
$exif = @exif_read_data( $p->imagePath );
|
||||
if ( $exif !== false ) {
|
||||
$item['lon'] = (array_key_exists('GPSLongitude', $exif) and array_key_exists('GPSLongitudeRef', $exif)) ?
|
||||
$item['lon'] = (array_key_exists('GPSLongiture', $exif) and array_key_exists('GPSLongitudeRef', $exif)) ?
|
||||
getExifGps( $exif['GPSLongitude'], $exif['GPSLongitudeRef'] ) : 0;
|
||||
$item['lat'] = (array_key_exists('GPSLatitude', $exif) and array_key_exists('GPSLatitudeRef', $exif)) ?
|
||||
getExifGps( $exif['GPSLatitude'], $exif['GPSLatitudeRef'] ) : 0;
|
||||
|
@ -60,7 +60,7 @@ function getNGGalleryImages( $ngGalleries, $ngImages, $dt, $lat, $lon, $dtoffset
|
|||
}
|
||||
}
|
||||
} else {
|
||||
$error .= "Sorry, <a href='https://php.net/manual/en/function.exif-read-data.php' target='_blank' rel='noopener noreferrer'>exif_read_data</a> function not found! check your hosting..<br />";
|
||||
$error .= "Sorry, <a href='https://php.net/manual/en/function.exif-read-data.php' target='_blank' rel='noopener noreferrer'>exif_read_data</a> function not found! check your hosting.<br />";
|
||||
}
|
||||
}
|
||||
/* START FIX NEXT GEN GALLERY 2.x */
|
||||
|
@ -71,14 +71,14 @@ function getNGGalleryImages( $ngGalleries, $ngImages, $dt, $lat, $lon, $dtoffset
|
|||
$params['display_type'] = NEXTGEN_GALLERY_BASIC_THUMBNAILS;
|
||||
$params['images_per_page'] = 999;
|
||||
/* Salso add js references to get the gallery working */
|
||||
$dummy = $renderer->display_images( $params, '' );
|
||||
$dummy = $renderer->display_images( $params, $inner_content );
|
||||
|
||||
/* START FIX NEXT GEN GALLERY PRO */
|
||||
|
||||
if ( preg_match( "/data-nplmodal-gallery-id=[\"'](.*?)[\"']/", $dummy, $m ) ) {
|
||||
$galid = $m[1];
|
||||
if ( $galid ) {
|
||||
for( $i = 0; $i < count( $result ); ++$i ) {
|
||||
for ( $i = 0; $i < count( $result ); ++$i ) {
|
||||
$result[$i]['data'] = str_replace( '%PRO_LIGHTBOX_GALLERY_ID%', $galid, $result[$i]['data'] );
|
||||
}
|
||||
}
|
||||
|
@ -96,9 +96,12 @@ function getNGGalleryImages( $ngGalleries, $ngImages, $dt, $lat, $lon, $dtoffset
|
|||
function findItemCoordinate( $imgdt, $dt, $lat, $lon ) {
|
||||
|
||||
foreach ( array_keys( $dt ) as $i ) {
|
||||
if ( $i!=0 && $imgdt >= $dt[$i-1] && $imgdt <= $dt[$i] ) {
|
||||
if ( $i != 0 && $imgdt >= $dt[$i - 1] && $imgdt <= $dt[$i] ) {
|
||||
if ( $lat[$i] != 0 && $lon[$i] != 0 )
|
||||
return array( 'lat' => $lat[$i], 'lon' => $lon[$i] );
|
||||
return array(
|
||||
'lat' => $lat[$i],
|
||||
'lon' => $lon[$i],
|
||||
);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@ -111,7 +114,7 @@ function getExifGps( $exifCoord, $hemi ) {
|
|||
$seconds = count( $exifCoord ) > 2 ? gps2Num( $exifCoord[2] ) : 0;
|
||||
$flip = ( $hemi == 'W' or $hemi == 'S' ) ? -1 : 1;
|
||||
|
||||
return $flip * ( $degrees + $minutes / 60 + $seconds / 3600);
|
||||
return $flip * ( $degrees + $minutes / 60 + $seconds / 3600 );
|
||||
}
|
||||
|
||||
function gps2Num( $coordPart ) {
|
||||
|
@ -127,8 +130,7 @@ function gps2Num( $coordPart ) {
|
|||
$lat = floatval( $parts[0] );
|
||||
$lon = floatval( $parts[1] );
|
||||
|
||||
if ($lon == 0 )
|
||||
if ($lon == 0 )
|
||||
return $lat;
|
||||
return $lat / $lon;
|
||||
}
|
||||
?>
|
||||
|
|