parent
fc03515cc1
commit
60b8c67a56
|
@ -798,8 +798,7 @@ Author URI: http://www.devfarm.it/
|
||||||
max: graphDist[graphDist.length-1],
|
max: graphDist[graphDist.length-1],
|
||||||
// Include a dollar sign in the ticks
|
// Include a dollar sign in the ticks
|
||||||
callback: function(value, index, values) {
|
callback: function(value, index, values) {
|
||||||
var fpt = _formats[0];
|
return Math.round(value, l_x.dec) + l_x.suf;
|
||||||
return Math.round(value, fpt.dec) + fpt.suf;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
||||||
Tags: maps, gpx, gps, graph, chart, google maps, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence
|
Tags: maps, gpx, gps, graph, chart, google maps, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence
|
||||||
Requires at least: 2.0.0
|
Requires at least: 2.0.0
|
||||||
Tested up to: 4.9.4
|
Tested up to: 4.9.4
|
||||||
Stable tag: 1.5.03
|
Stable tag: 1.5.04
|
||||||
|
|
||||||
Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map.
|
Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map.
|
||||||
|
|
||||||
|
@ -153,6 +153,9 @@ Yes!
|
||||||
1. Altitude & Speed & Hearth rate
|
1. Altitude & Speed & Hearth rate
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= 1.5.04 =
|
||||||
|
* fix uom
|
||||||
|
* fix file not found
|
||||||
= 1.5.03 =
|
= 1.5.03 =
|
||||||
* fix random error
|
* fix random error
|
||||||
= 1.5.02 =
|
= 1.5.02 =
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Plugin Name: WP-GPX-Maps
|
Plugin Name: WP-GPX-Maps
|
||||||
Plugin URI: http://www.devfarm.it/
|
Plugin URI: http://www.devfarm.it/
|
||||||
Description: Draws a GPX track with altitude chart
|
Description: Draws a GPX track with altitude chart
|
||||||
Version: 1.5.03
|
Version: 1.5.04
|
||||||
Author: Bastianon Massimo
|
Author: Bastianon Massimo
|
||||||
Author URI: http://www.devfarm.it/
|
Author URI: http://www.devfarm.it/
|
||||||
*/
|
*/
|
||||||
|
@ -62,7 +62,7 @@ function enqueue_WP_GPX_Maps_scripts_admin($hook)
|
||||||
function enqueue_WP_GPX_Maps_scripts() {
|
function enqueue_WP_GPX_Maps_scripts() {
|
||||||
|
|
||||||
wp_register_script('chartjs', plugins_url( '/js/Chart.min.js', __FILE__ ), array(), "2.7.2" );
|
wp_register_script('chartjs', plugins_url( '/js/Chart.min.js', __FILE__ ), array(), "2.7.2" );
|
||||||
wp_register_script('WP-GPX-Maps', plugins_url( '/js/WP-GPX-Maps.js', __FILE__ ), array('jquery','googlemaps','chartjs'), "1.5.02" );
|
wp_register_script('WP-GPX-Maps', plugins_url( '/js/WP-GPX-Maps.js', __FILE__ ), array('jquery','googlemaps','chartjs'), "1.5.031" );
|
||||||
|
|
||||||
$wpgpxmaps_googlemapsv3_apikey = get_option('wpgpxmaps_googlemapsv3_apikey');
|
$wpgpxmaps_googlemapsv3_apikey = get_option('wpgpxmaps_googlemapsv3_apikey');
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ function handle_WP_GPX_Maps_folder_Shortcodes($attr, $content='') {
|
||||||
|
|
||||||
foreach($files as $file) {
|
foreach($files as $file) {
|
||||||
|
|
||||||
if (substr($file, - 4) == ".gpx" ) {
|
if (strtolower(substr($file, - 4)) == ".gpx" ) {
|
||||||
|
|
||||||
$gpx = $folder . DIRECTORY_SEPARATOR . $file;
|
$gpx = $folder . DIRECTORY_SEPARATOR . $file;
|
||||||
$points = wpgpxmaps_getPoints($gpx, $pointsoffset, $donotreducegpx, $distanceType);
|
$points = wpgpxmaps_getPoints($gpx, $pointsoffset, $donotreducegpx, $distanceType);
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
if ( $is_admin != 1 )
|
if ( $is_admin != 1 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$gpxRegEx = '/.gpx$/';
|
$gpxRegEx = '/.gpx$/i';
|
||||||
|
|
||||||
if ( isset($_POST['clearcache']) )
|
if ( isset($_POST['clearcache']) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -66,7 +66,8 @@
|
||||||
|
|
||||||
function wp_gpx_maps_sitePath()
|
function wp_gpx_maps_sitePath()
|
||||||
{
|
{
|
||||||
return substr(get_home_path(), 0, -1);
|
return substr(substr(__FILE__, 0, strrpos(__FILE__,'wp-content')), 0, -1);
|
||||||
|
//return substr(get_home_path(), 0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function gpxFolderPath()
|
function gpxFolderPath()
|
||||||
|
|
Loading…
Reference in New Issue