* Added Bulgarian translation, thanks to Svilen Savov
* Added possibility to hide the elevation chart
This commit is contained in:
parent
0d6effb4f7
commit
223ad1c606
12
readme.txt
12
readme.txt
|
@ -4,8 +4,8 @@ Contributors: bastianonm
|
||||||
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8VHWLRW6JBTML
|
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8VHWLRW6JBTML
|
||||||
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: 3.6.1
|
Tested up to: 3.7.1
|
||||||
Stable tag: 1.2.3
|
Stable tag: 1.2.4
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ Even if you don't have a gps camera, this plugin can retrive the image position
|
||||||
|
|
||||||
Old NGGallery Images (without gps data) and gpx: <a href="http://www.pedemontanadelgrappa.it/mappe/itinerario-3-alta-via-degli-eroi/">http://www.pedemontanadelgrappa.it/mappe/itinerario-3-alta-via-degli-eroi/</a>
|
Old NGGallery Images (without gps data) and gpx: <a href="http://www.pedemontanadelgrappa.it/mappe/itinerario-3-alta-via-degli-eroi/">http://www.pedemontanadelgrappa.it/mappe/itinerario-3-alta-via-degli-eroi/</a>
|
||||||
|
|
||||||
Translated into 12 languages:
|
Translated into 13 languages:
|
||||||
|
|
||||||
- Dutch nl_NL
|
- Dutch nl_NL
|
||||||
- English (default)
|
- English (default)
|
||||||
|
@ -40,6 +40,7 @@ Translated into 12 languages:
|
||||||
- Spanish es_ES
|
- Spanish es_ES
|
||||||
- Swedish sv_SE
|
- Swedish sv_SE
|
||||||
- Turkish tr_TR
|
- Turkish tr_TR
|
||||||
|
- Bulgarian bg_BG
|
||||||
|
|
||||||
(many thanks to all guys who helped me with the translations)
|
(many thanks to all guys who helped me with the translations)
|
||||||
|
|
||||||
|
@ -103,6 +104,8 @@ The attributes are:
|
||||||
|
|
||||||
1. showhr: show heart rate inside the chart (default is FALSE)
|
1. showhr: show heart rate inside the chart (default is FALSE)
|
||||||
|
|
||||||
|
1. showele: show elevation data inside the chart (default is TRUE)
|
||||||
|
|
||||||
1. showcad: show cadence inside the chart (default is FALSE)
|
1. showcad: show cadence inside the chart (default is FALSE)
|
||||||
|
|
||||||
1. showgrade: show grade inside the chart (default is FALSE)
|
1. showgrade: show grade inside the chart (default is FALSE)
|
||||||
|
@ -176,6 +179,9 @@ Yes!
|
||||||
1. Altitude & Speed & Hearth rate
|
1. Altitude & Speed & Hearth rate
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= 1.2.4 =
|
||||||
|
* Added Bulgarian translation, thanks to Svilen Savov
|
||||||
|
* Added possibility to hide the elevation chart
|
||||||
= 1.2.2 =
|
= 1.2.2 =
|
||||||
* Smaller map type selector
|
* Smaller map type selector
|
||||||
* New map: MapToolKit - Terrain
|
* New map: MapToolKit - Terrain
|
||||||
|
|
|
@ -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 graph
|
Description: Draws a gpx track with altitude graph
|
||||||
Version: 1.2.3
|
Version: 1.2.4
|
||||||
Author: Bastianon Massimo
|
Author: Bastianon Massimo
|
||||||
Author URI: http://www.pedemontanadelgrappa.it/
|
Author URI: http://www.pedemontanadelgrappa.it/
|
||||||
*/
|
*/
|
||||||
|
@ -113,6 +113,7 @@ function handle_WP_GPX_Maps_Shortcodes($attr, $content='')
|
||||||
$showCad = findValue($attr, "showcad", "wpgpxmaps_show_cadence", false);
|
$showCad = findValue($attr, "showcad", "wpgpxmaps_show_cadence", false);
|
||||||
$showHr = findValue($attr, "showhr", "wpgpxmaps_show_hr", false);
|
$showHr = findValue($attr, "showhr", "wpgpxmaps_show_hr", false);
|
||||||
$showW = findValue($attr, "waypoints", "wpgpxmaps_show_waypoint", false);
|
$showW = findValue($attr, "waypoints", "wpgpxmaps_show_waypoint", false);
|
||||||
|
$showEle = findValue($attr, "showele", "wpgpxmaps_show_elevation", "true");
|
||||||
$showSpeed = findValue($attr, "showspeed", "wpgpxmaps_show_speed", false);
|
$showSpeed = findValue($attr, "showspeed", "wpgpxmaps_show_speed", false);
|
||||||
$showGrade = findValue($attr, "showgrade", "wpgpxmaps_show_grade", false);
|
$showGrade = findValue($attr, "showgrade", "wpgpxmaps_show_grade", false);
|
||||||
$zoomOnScrollWheel = findValue($attr, "zoomonscrollwheel", "wpgpxmaps_zoomonscrollwheel", false);
|
$zoomOnScrollWheel = findValue($attr, "zoomonscrollwheel", "wpgpxmaps_zoomonscrollwheel", false);
|
||||||
|
@ -154,7 +155,7 @@ function handle_WP_GPX_Maps_Shortcodes($attr, $content='')
|
||||||
|
|
||||||
$gpxurl = $gpx;
|
$gpxurl = $gpx;
|
||||||
|
|
||||||
$cacheFileName = "$gpx,$w,$mh,$mt,$gh,$showW,$showHr,$showCad,$donotreducegpx,$pointsoffset,$showSpeed,$showGrade,$uomspeed,$uom,v1.1.38";
|
$cacheFileName = "$gpx,$w,$mh,$mt,$gh,$showEle,$showW,$showHr,$showCad,$donotreducegpx,$pointsoffset,$showSpeed,$showGrade,$uomspeed,$uom,v1.1.38";
|
||||||
|
|
||||||
$cacheFileName = md5($cacheFileName);
|
$cacheFileName = md5($cacheFileName);
|
||||||
|
|
||||||
|
@ -217,6 +218,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 ((!isset($points_maps) || $points_maps == '') && $gpx != '') {
|
||||||
|
//if (true) {
|
||||||
|
|
||||||
$sitePath = sitePath();
|
$sitePath = sitePath();
|
||||||
|
|
||||||
|
@ -383,6 +385,11 @@ function handle_WP_GPX_Maps_Shortcodes($attr, $content='')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($showEle == "false")
|
||||||
|
{
|
||||||
|
$points_graph_ele = "";
|
||||||
|
}
|
||||||
|
|
||||||
$p="/(,|,null,)$/";
|
$p="/(,|,null,)$/";
|
||||||
|
|
||||||
$points_maps = preg_replace($p, "", $points_maps);
|
$points_maps = preg_replace($p, "", $points_maps);
|
||||||
|
@ -414,7 +421,6 @@ function handle_WP_GPX_Maps_Shortcodes($attr, $content='')
|
||||||
if (preg_match("/^(0,?)+$/", $points_graph_grade))
|
if (preg_match("/^(0,?)+$/", $points_graph_grade))
|
||||||
$points_graph_grade = "";
|
$points_graph_grade = "";
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$ngimgs_data = '';
|
$ngimgs_data = '';
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
$t = get_option('wpgpxmaps_map_type');
|
$t = get_option('wpgpxmaps_map_type');
|
||||||
$uom = get_option('wpgpxmaps_unit_of_measure');
|
$uom = get_option('wpgpxmaps_unit_of_measure');
|
||||||
$uomSpeed = get_option('wpgpxmaps_unit_of_measure_speed');
|
$uomSpeed = get_option('wpgpxmaps_unit_of_measure_speed');
|
||||||
|
$showEle = get_option("wpgpxmaps_show_elevation");
|
||||||
$showSpeed = get_option('wpgpxmaps_show_speed');
|
$showSpeed = get_option('wpgpxmaps_show_speed');
|
||||||
$showHr = get_option('wpgpxmaps_show_hr');
|
$showHr = get_option('wpgpxmaps_show_hr');
|
||||||
$showCad = get_option('wpgpxmaps_show_cadence');
|
$showCad = get_option('wpgpxmaps_show_cadence');
|
||||||
|
@ -32,6 +33,9 @@
|
||||||
$avg_speed = get_option("wpgpxmaps_summary_avg_speed");
|
$avg_speed = get_option("wpgpxmaps_summary_avg_speed");
|
||||||
$total_time = get_option("wpgpxmaps_summary_total_time");
|
$total_time = get_option("wpgpxmaps_summary_total_time");
|
||||||
|
|
||||||
|
if (empty($showEle))
|
||||||
|
$showEle = "true";
|
||||||
|
|
||||||
if (!($t))
|
if (!($t))
|
||||||
$t = 'HYBRID';
|
$t = 'HYBRID';
|
||||||
if (!($po))
|
if (!($po))
|
||||||
|
@ -270,6 +274,14 @@
|
||||||
<em>(leave empty for auto scale)</em>
|
<em>(leave empty for auto scale)</em>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th scope="row">Show elevation:</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" /> <i>Show elevation</i>
|
||||||
|
<input name="wpgpxmaps_show_elevation" type="hidden" value="<?php echo $showEle; ?>">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Show speed:</th>
|
<th scope="row">Show speed:</th>
|
||||||
<td>
|
<td>
|
||||||
|
@ -350,7 +362,7 @@
|
||||||
|
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
<input type="hidden" name="action" value="update" />
|
<input type="hidden" name="action" value="update" />
|
||||||
<input name="page_options" type="hidden" value="wpgpxmaps_unit_of_measure,wpgpxmaps_graph_line_color,wpgpxmaps_show_speed,wpgpxmaps_graph_line_color_speed,wpgpxmaps_show_hr,wpgpxmaps_graph_line_color_hr,wpgpxmaps_unit_of_measure_speed,wpgpxmaps_graph_offset_from1,wpgpxmaps_graph_offset_to1,wpgpxmaps_graph_offset_from2,wpgpxmaps_graph_offset_to2,wpgpxmaps_graph_line_color_cad,wpgpxmaps_show_cadence,wpgpxmaps_show_grade,wpgpxmaps_graph_line_color_grade" />
|
<input name="page_options" type="hidden" value="wpgpxmaps_unit_of_measure,wpgpxmaps_graph_line_color,wpgpxmaps_show_elevation,wpgpxmaps_show_speed,wpgpxmaps_graph_line_color_speed,wpgpxmaps_show_hr,wpgpxmaps_graph_line_color_hr,wpgpxmaps_unit_of_measure_speed,wpgpxmaps_graph_offset_from1,wpgpxmaps_graph_offset_to1,wpgpxmaps_graph_offset_from2,wpgpxmaps_graph_offset_to2,wpgpxmaps_graph_line_color_cad,wpgpxmaps_show_cadence,wpgpxmaps_show_grade,wpgpxmaps_graph_line_color_grade" />
|
||||||
<input type="submit" class="button-primary" value="<?php _e('Save Changes', "wp_gpx_maps") ?>" />
|
<input type="submit" class="button-primary" value="<?php _e('Save Changes', "wp_gpx_maps") ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue