2012-06-13 13:14:18 +00:00
< ? php
2012-09-18 16:50:29 +00:00
if ( ! current_user_can ( 'manage_options' ) )
2012-06-13 13:14:18 +00:00
return ;
?>
2012-01-28 11:56:52 +00:00
< script type = " text/javascript " src = " http://meta100.github.com/mColorPicker/javascripts/mColorPicker_min.js " charset = " UTF-8 " ></ script >
< ? php
$po = get_option ( 'wpgpxmaps_pointsoffset' );
$showW = get_option ( " wpgpxmaps_show_waypoint " );
$donotreducegpx = get_option ( " wpgpxmaps_donotreducegpx " );
$t = get_option ( 'wpgpxmaps_map_type' );
$uom = get_option ( 'wpgpxmaps_unit_of_measure' );
2012-03-17 11:46:00 +00:00
$uomSpeed = get_option ( 'wpgpxmaps_unit_of_measure_speed' );
2013-11-18 13:45:18 +00:00
$showEle = get_option ( " wpgpxmaps_show_elevation " );
2012-03-17 11:46:00 +00:00
$showSpeed = get_option ( 'wpgpxmaps_show_speed' );
2012-04-07 09:11:37 +00:00
$showHr = get_option ( 'wpgpxmaps_show_hr' );
2014-03-14 13:38:36 +00:00
$showAtemp = get_option ( 'wpgpxmaps_show_atemp' );
2012-04-12 14:49:22 +00:00
$showCad = get_option ( 'wpgpxmaps_show_cadence' );
2013-02-04 08:58:18 +00:00
$showGrade = get_option ( 'wpgpxmaps_show_grade' );
2012-06-11 15:24:58 +00:00
$zoomonscrollwheel = get_option ( " wpgpxmaps_zoomonscrollwheel " );
2012-06-25 10:22:56 +00:00
$download = get_option ( " wpgpxmaps_download " );
2012-07-31 14:34:27 +00:00
$skipcache = get_option ( " wpgpxmaps_skipcache " );
2013-02-04 08:58:18 +00:00
2012-07-31 14:34:27 +00:00
$summary = get_option ( " wpgpxmaps_summary " );
$tot_len = get_option ( " wpgpxmaps_summary_tot_len " );
$min_ele = get_option ( " wpgpxmaps_summary_min_ele " );
$max_ele = get_option ( " wpgpxmaps_summary_max_ele " );
$total_ele_up = get_option ( " wpgpxmaps_summary_total_ele_up " );
$total_ele_down = get_option ( " wpgpxmaps_summary_total_ele_down " );
$avg_speed = get_option ( " wpgpxmaps_summary_avg_speed " );
$total_time = get_option ( " wpgpxmaps_summary_total_time " );
2012-01-28 11:56:52 +00:00
2017-02-27 08:47:04 +00:00
$usegpsposition = get_option ( " wpgpxmaps_usegpsposition " );
$distanceType = get_option ( " wpgpxmaps_distance_type " ); $distanceType = get_option ( " wpgpxmaps_googlemapsv3_apikey " );
2013-12-26 13:23:14 +00:00
2013-11-18 13:45:18 +00:00
if ( empty ( $showEle ))
$showEle = " true " ;
2012-01-28 11:56:52 +00:00
if ( ! ( $t ))
$t = 'HYBRID' ;
if ( ! ( $po ))
$po = 10 ;
?>
< form method = " post " action = " options.php " >
< ? php wp_nonce_field ( 'update-options' ) ?>
2012-06-13 13:14:18 +00:00
< h3 class = " title " > General </ h3 >
2012-02-15 16:04:18 +00:00
< table class = " form-table " >
< tr >
< th scope = " row " > Width :</ th >
< td >
< input name = " wpgpxmaps_width " type = " text " id = " wpgpxmaps_width " value = " <?php echo get_option('wpgpxmaps_width'); ?> " style = " width:50px; " />
</ td >
</ tr >
2012-01-28 11:56:52 +00:00
< tr >
2012-02-15 16:04:18 +00:00
< th scope = " row " > Map Height :</ th >
2012-01-28 11:56:52 +00:00
< td >
2012-02-15 16:04:18 +00:00
< input name = " wpgpxmaps_height " type = " text " id = " wpgpxmaps_height " value = " <?php echo get_option('wpgpxmaps_height'); ?> " style = " width:50px; " />
2012-01-28 11:56:52 +00:00
</ td >
</ tr >
2012-02-15 16:04:18 +00:00
< tr >
< th scope = " row " > Graph Height :</ th >
< td >
< input name = " wpgpxmaps_graph_height " type = " text " id = " wpgpxmaps_graph_height " value = " <?php echo get_option('wpgpxmaps_graph_height'); ?> " style = " width:50px; " />
</ td >
</ tr >
2013-12-26 13:23:14 +00:00
< tr >
< th scope = " row " > Distance type :</ th >
< td >
< select name = 'wpgpxmaps_distance_type' >
< option value = " 0 " < ? php if ( $distanceType == '0' || $distanceType == '' ) echo 'selected' ; ?> >Normal (default)</option>
< option value = " 1 " < ? php if ( $distanceType == '1' ) echo 'selected' ; ?> >Flat → (Only flat distance, don't take care of altitude)</option>
< option value = " 2 " < ? php if ( $distanceType == '2' ) echo 'selected' ; ?> >Climb ↑ (Only climb distance)</option>
</ select >
</ td >
</ tr >
2017-02-27 08:47:04 +00:00
2012-07-31 14:34:27 +00:00
< tr >
< th scope = " row " > Cache :</ th >
< td >
< input name = " wpgpxmaps_skipcache " type = " checkbox " value = " true " < ? php if ( $skipcache == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Do not use cache</i>
</ td >
</ tr >
2012-06-13 13:14:18 +00:00
< tr >
< th scope = " row " > GPX Download :</ th >
< td >
2012-06-25 10:22:56 +00:00
< input name = " wpgpxmaps_download " type = " checkbox " value = " true " < ? php if ( $download == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Allow users to download your GPX file</i>
2012-06-13 13:14:18 +00:00
</ td >
2014-03-14 13:38:36 +00:00
</ tr >
< tr >
< th scope = " row " > Use browser GPS position :</ th >
< td >
< input name = " wpgpxmaps_usegpsposition " type = " checkbox " value = " true " < ? php if ( $usegpsposition == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Allow users to use browser GPS in order to display their current position on map</i>
</ td >
</ tr >
2017-02-27 08:47:04 +00:00
< tr > < th scope = " row " > Google maps api key :</ th > < td > < input name = " wpgpxmaps_googlemapsv3_apikey " type = " text " id = " wpgpxmaps_googlemapsv3_apikey " value = " <?php echo get_option('wpgpxmaps_googlemapsv3_apikey'); ?> " style = " width:400px " /> < em > Go to the < a href = " https://developers.google.com/maps/documentation/javascript/ " target = " _blank " > Google API Console </ a > and click & #8216;Get A Key’ </em> </td> </tr> </table>
2012-07-31 14:34:27 +00:00
< p class = " submit " >
< input type = " hidden " name = " action " value = " update " />
2017-02-27 08:47:04 +00:00
< input name = " page_options " type = " hidden " value = " wpgpxmaps_height,wpgpxmaps_graph_height,wpgpxmaps_width,wpgpxmaps_download,wpgpxmaps_skipcache,wpgpxmaps_distance_type,wpgpxmaps_usegpsposition,wpgpxmaps_googlemapsv3_apikey " />
2012-07-31 14:34:27 +00:00
< input type = " submit " class = " button-primary " value = " <?php _e('Save Changes', " wp_gpx_maps " ) ?> " />
</ p >
</ form >
< hr />
< form method = " post " action = " options.php " >
< ? php wp_nonce_field ( 'update-options' ) ?>
< h3 class = " title " > Summary table </ h3 >
< table class = " form-table " >
2012-06-25 10:22:56 +00:00
< tr >
< th scope = " row " > Summary table :</ th >
< td >
< input name = " wpgpxmaps_summary " type = " checkbox " value = " true " < ? php if ( $summary == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Print summary table</i>
</ td >
</ tr >
2012-07-31 14:34:27 +00:00
< tr >
< th scope = " row " > Total distance :</ th >
< td >
< input name = " wpgpxmaps_summary_tot_len " type = " checkbox " value = " true " < ? php if ( $tot_len == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Print Total distance</i>
</ td >
</ tr >
< tr >
< th scope = " row " > Max Elevation :</ th >
< td >
< input name = " wpgpxmaps_summary_max_ele " type = " checkbox " value = " true " < ? php if ( $max_ele == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Print Max Elevation</i>
</ td >
</ tr >
< tr >
< th scope = " row " > Min Elevation :</ th >
< td >
< input name = " wpgpxmaps_summary_min_ele " type = " checkbox " value = " true " < ? php if ( $min_ele == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Print Min Elevation</i>
</ td >
</ tr >
< tr >
< th scope = " row " > Min Elevation :</ th >
< 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>Print Total climbing</i>
</ td >
</ tr >
< tr >
< th scope = " row " > Min Elevation :</ th >
< 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>Print Total descent</i>
</ td >
</ tr >
< tr >
< th scope = " row " > Min Elevation :</ th >
< td >
< input name = " wpgpxmaps_summary_avg_speed " type = " checkbox " value = " true " < ? php if ( $avg_speed == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Print Average Speed</i>
</ td >
</ tr >
< tr >
< th scope = " row " > Total time :</ th >
< td >
< input name = " wpgpxmaps_summary_total_time " type = " checkbox " value = " true " < ? php if ( $total_time == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Print Total time</i>
</ td >
</ tr >
2012-06-25 10:22:56 +00:00
2012-02-15 16:04:18 +00:00
</ table >
2012-03-05 07:57:36 +00:00
< p class = " submit " >
< input type = " hidden " name = " action " value = " update " />
2012-07-31 14:34:27 +00:00
< input name = " page_options " type = " hidden " value = " wpgpxmaps_summary,wpgpxmaps_summary_tot_len,wpgpxmaps_summary_max_ele,wpgpxmaps_summary_min_ele,wpgpxmaps_summary_total_ele_up,wpgpxmaps_summary_total_ele_down,wpgpxmaps_summary_avg_speed,wpgpxmaps_summary_total_time " />
2012-06-21 13:29:17 +00:00
< input type = " submit " class = " button-primary " value = " <?php _e('Save Changes', " wp_gpx_maps " ) ?> " />
2012-03-05 07:57:36 +00:00
</ p >
</ form >
2012-07-31 14:34:27 +00:00
2012-03-05 07:57:36 +00:00
< hr />
2012-07-31 14:34:27 +00:00
2012-03-05 07:57:36 +00:00
< form method = " post " action = " options.php " >
< ? php wp_nonce_field ( 'update-options' ) ?>
2012-06-13 13:14:18 +00:00
< h3 class = " title " > Map </ h3 >
2012-02-15 16:04:18 +00:00
< table class = " form-table " >
2012-06-11 15:24:58 +00:00
< tr >
< th scope = " row " > On mouse scroll wheel :</ th >
< td >
2012-06-25 10:22:56 +00:00
< input name = " wpgpxmaps_zoomonscrollwheel " type = " checkbox " value = " true " < ? php if ( $zoomonscrollwheel == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Enable zoom</i>
2012-06-11 15:24:58 +00:00
</ td >
</ tr >
2012-01-28 11:56:52 +00:00
< tr >
< th scope = " row " > Waypoints Support :</ th >
< td >
2012-06-25 10:22:56 +00:00
< input name = " wpgpxmaps_show_waypoint " type = " checkbox " value = " true " < ? php if ( $showW == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Show Waypoints</i>
2012-01-28 11:56:52 +00:00
</ td >
</ tr >
2012-02-15 16:04:18 +00:00
< tr >
< th scope = " row " > Map line color :</ th >
< td >
< input name = " wpgpxmaps_map_line_color " type = " color " data - hex = " true " value = " <?php echo get_option('wpgpxmaps_map_line_color'); ?> " />
</ td >
</ tr >
2012-01-28 11:56:52 +00:00
< tr >
< th scope = " row " > Default Map Type :</ th >
< td >
< input type = " radio " name = " wpgpxmaps_map_type " value = " HYBRID " < ? php if ( $t == 'HYBRID' ) echo 'checked' ; ?> > HYBRID: transparent layer of major streets on satellite images.<br />
< input type = " radio " name = " wpgpxmaps_map_type " value = " ROADMAP " < ? php if ( $t == 'ROADMAP' ) echo 'checked' ; ?> > ROADMAP: normal street map.<br />
< input type = " radio " name = " wpgpxmaps_map_type " value = " SATELLITE " < ? php if ( $t == 'SATELLITE' ) echo 'checked' ; ?> > SATELLITE: satellite images.<br />
< input type = " radio " name = " wpgpxmaps_map_type " value = " TERRAIN " < ? php if ( $t == 'TERRAIN' ) echo 'checked' ; ?> > TERRAIN: maps with physical features such as terrain and vegetation.<br />
2012-03-20 07:31:51 +00:00
< input type = " radio " name = " wpgpxmaps_map_type " value = " OSM1 " < ? php if ( $t == 'OSM1' ) echo 'checked' ; ?> > Open Street Map<br />
< input type = " radio " name = " wpgpxmaps_map_type " value = " OSM2 " < ? php if ( $t == 'OSM2' ) echo 'checked' ; ?> > Open Cycle Map<br />
2013-05-16 11:54:44 +00:00
< input type = " radio " name = " wpgpxmaps_map_type " value = " OSM4 " < ? php if ( $t == 'OSM4' ) echo 'checked' ; ?> > Open Cycle Map - Transport<br />
< input type = " radio " name = " wpgpxmaps_map_type " value = " OSM5 " < ? php if ( $t == 'OSM5' ) echo 'checked' ; ?> > Open Cycle Map - Landscape<br />
2013-05-01 19:17:02 +00:00
< input type = " radio " name = " wpgpxmaps_map_type " value = " OSM3 " < ? php if ( $t == 'OSM3' ) echo 'checked' ; ?> > Hike & Bike<br />
2013-10-23 13:55:34 +00:00
< input type = " radio " name = " wpgpxmaps_map_type " value = " OSM6 " < ? php if ( $t == 'OSM6' ) echo 'checked' ; ?> > MapToolKit - Terrain<br />
2012-01-28 11:56:52 +00:00
</ td >
</ tr >
2012-03-05 07:57:36 +00:00
< tr >
< th scope = " row " > Start Icon :</ th >
< td >
< input name = " wpgpxmaps_map_start_icon " value = " <?php echo get_option('wpgpxmaps_map_start_icon'); ?> " style = " width:400px " /> < em > ( Url to image ) Leave empty to hide </ em >
</ td >
</ tr >
< tr >
< th scope = " row " > End Icon :</ th >
< td >
< input name = " wpgpxmaps_map_end_icon " value = " <?php echo get_option('wpgpxmaps_map_end_icon'); ?> " style = " width:400px " /> < em > ( Url to image ) Leave empty to hide </ em >
</ td >
</ tr >
< tr >
< th scope = " row " > Current Position Icon :</ th >
< td >
< input name = " wpgpxmaps_map_current_icon " value = " <?php echo get_option('wpgpxmaps_map_current_icon'); ?> " style = " width:400px " /> < em > ( Url to image ) Leave empty for default </ em >
</ td >
</ tr >
2014-03-14 13:38:36 +00:00
< tr >
< th scope = " row " > Current GPS Position Icon :</ th >
< td >
< input name = " wpgpxmaps_currentpositioncon " value = " <?php echo get_option('wpgpxmaps_currentpositioncon'); ?> " style = " width:400px " /> < em > ( Url to image ) Leave empty for default </ em >
</ td >
</ tr >
2012-06-21 13:29:17 +00:00
< tr >
< th scope = " row " > Custom Waypoint Icon :</ th >
< td >
< input name = " wpgpxmaps_map_waypoint_icon " value = " <?php echo get_option('wpgpxmaps_map_waypoint_icon'); ?> " style = " width:400px " /> < em > ( Url to image ) Leave empty for default </ em >
</ td >
</ tr >
2012-02-15 16:04:18 +00:00
</ table >
2012-03-05 07:57:36 +00:00
< p class = " submit " >
< input type = " hidden " name = " action " value = " update " />
2014-03-14 13:38:36 +00:00
< input name = " page_options " type = " hidden " value = " wpgpxmaps_show_waypoint,wpgpxmaps_map_line_color,wpgpxmaps_map_type,wpgpxmaps_map_start_icon,wpgpxmaps_map_end_icon,wpgpxmaps_map_current_icon,wpgpxmaps_zoomonscrollwheel,wpgpxmaps_map_waypoint_icon,wpgpxmaps_currentpositioncon " />
2012-06-21 13:29:17 +00:00
< input type = " submit " class = " button-primary " value = " <?php _e('Save Changes', " wp_gpx_maps " ) ?> " />
2012-03-05 07:57:36 +00:00
</ p >
</ form >
< hr />
< form method = " post " action = " options.php " >
< ? php wp_nonce_field ( 'update-options' ) ?>
2012-02-15 16:04:18 +00:00
< h3 class = " title " > Chart </ h3 >
< table class = " form-table " >
2014-03-14 13:38:36 +00:00
< tr >
< th scope = " row " > Show altitude :</ 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 Altitude</i>
< input name = " wpgpxmaps_show_elevation " type = " hidden " value = " <?php echo $showEle ; ?> " >
</ td >
</ tr >
2012-01-28 11:56:52 +00:00
< tr >
2012-03-05 07:57:36 +00:00
< tr >
< th scope = " row " > Altitude line color :</ th >
< td >
< input name = " wpgpxmaps_graph_line_color " type = " color " data - hex = " true " value = " <?php echo get_option('wpgpxmaps_graph_line_color'); ?> " />
</ td >
</ tr >
2012-01-28 11:56:52 +00:00
< th scope = " row " > Unit of measure :</ th >
< td >
< select name = 'wpgpxmaps_unit_of_measure' >
2012-02-22 14:29:44 +00:00
< option value = " 0 " < ? php if ( $uom == '0' ) echo 'selected' ; ?> >meters/meters</option>
< option value = " 1 " < ? php if ( $uom == '1' ) echo 'selected' ; ?> >feet/miles</option>
< option value = " 2 " < ? php if ( $uom == '2' ) echo 'selected' ; ?> >meters/kilometers</option>
2013-07-05 12:43:58 +00:00
< option value = " 3 " < ? php if ( $uom == '3' ) echo 'selected' ; ?> >meters/nautical miles</option>
2013-07-22 06:55:54 +00:00
< option value = " 4 " < ? php if ( $uom == '4' ) echo 'selected' ; ?> >meters/miles</option>
2014-06-09 13:18:24 +00:00
< option value = " 5 " < ? php if ( $uom == '5' ) echo 'selected' ; ?> >feet/nautical miles</option>
2012-01-28 11:56:52 +00:00
</ select >
</ td >
</ tr >
< tr >
2012-03-05 07:57:36 +00:00
< th scope = " row " > Altitude display offset :</ th >
2012-01-28 11:56:52 +00:00
< td >
2012-03-05 07:57:36 +00:00
From
< input name = " wpgpxmaps_graph_offset_from1 " value = " <?php echo get_option('wpgpxmaps_graph_offset_from1'); ?> " style = " width:50px; " />
To
< input name = " wpgpxmaps_graph_offset_to1 " value = " <?php echo get_option('wpgpxmaps_graph_offset_to1'); ?> " style = " width:50px; " />
< em > ( leave empty for auto scale ) </ em >
2012-01-28 11:56:52 +00:00
</ td >
</ tr >
< tr >
2012-02-15 16:04:18 +00:00
< th scope = " row " > Show speed :</ th >
2012-01-28 11:56:52 +00:00
< td >
2013-11-18 13:45:18 +00:00
< input name = " wpgpxmaps_show_speed " type = " checkbox " value = " true " < ? php if ( $showSpeed == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Show Speed</i>
2012-02-15 16:04:18 +00:00
</ td >
</ tr >
< tr >
< th scope = " row " > Speed line color :</ th >
< td >
< input name = " wpgpxmaps_graph_line_color_speed " type = " color " data - hex = " true " value = " <?php echo get_option('wpgpxmaps_graph_line_color_speed'); ?> " />
</ td >
</ tr >
< tr >
< th scope = " row " > Speed unit of measure :</ th >
< td >
< select name = 'wpgpxmaps_unit_of_measure_speed' >
2012-03-17 11:46:00 +00:00
< option value = " 0 " < ? php if ( $uomSpeed == '0' ) echo 'selected' ; ?> >m/s</option>
< option value = " 1 " < ? php if ( $uomSpeed == '1' ) echo 'selected' ; ?> >km/h</option>
< option value = " 2 " < ? php if ( $uomSpeed == '2' ) echo 'selected' ; ?> >miles/h</option>
2012-06-25 10:22:56 +00:00
< option value = " 3 " < ? php if ( $uomSpeed == '3' ) echo 'selected' ; ?> >min/km</option>
< option value = " 4 " < ? php if ( $uomSpeed == '4' ) echo 'selected' ; ?> >min/miles</option>
2017-02-27 08:47:04 +00:00
< option value = " 5 " < ? php if ( $uomSpeed == '5' ) echo 'selected' ; ?> >Nautical Miles/Hour (Knots)</option> <option value="6" <?php if ($uomSpeed == '6') echo 'selected'; ?>>min/100 meters</option>
2012-02-15 16:04:18 +00:00
</ select >
2012-01-28 11:56:52 +00:00
</ td >
2012-03-05 07:57:36 +00:00
</ tr >
< tr >
< th scope = " row " > Speed display offset :</ th >
< td >
From
< input name = " wpgpxmaps_graph_offset_from2 " value = " <?php echo get_option('wpgpxmaps_graph_offset_from2'); ?> " style = " width:50px; " />
To
< input name = " wpgpxmaps_graph_offset_to2 " value = " <?php echo get_option('wpgpxmaps_graph_offset_to2'); ?> " style = " width:50px; " />
< em > ( leave empty for auto scale ) </ em >
</ td >
2012-01-28 11:56:52 +00:00
</ tr >
2012-04-07 09:11:37 +00:00
< tr >
2012-04-12 14:49:22 +00:00
< th scope = " row " > Show Heart Rate ( where aviable ) :</ th >
2012-04-07 09:11:37 +00:00
< td >
2012-06-25 10:22:56 +00:00
< input name = " wpgpxmaps_show_hr " type = " checkbox " value = " true " < ? php if ( $showHr == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Show heart rate</i>
2012-04-07 09:11:37 +00:00
</ td >
</ tr >
< tr >
< th scope = " row " > Heart rate line color :</ th >
< td >
< input name = " wpgpxmaps_graph_line_color_hr " type = " color " data - hex = " true " value = " <?php echo get_option('wpgpxmaps_graph_line_color_hr'); ?> " />
</ td >
</ tr >
2014-03-14 13:38:36 +00:00
< tr >
< th scope = " row " > Show Temperature ( where aviable ) :</ th >
< td >
< input name = " wpgpxmaps_show_atemp " type = " checkbox " value = " true " < ? php if ( $showAtemp == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Show Temperature</i>
</ td >
</ tr >
< tr >
< th scope = " row " > Temperature line color :</ th >
< td >
< input name = " wpgpxmaps_graph_line_color_atemp " type = " color " data - hex = " true " value = " <?php echo get_option('wpgpxmaps_graph_line_color_atemp'); ?> " />
</ td >
</ tr >
2012-04-12 14:49:22 +00:00
< tr >
< th scope = " row " > Show Cadence ( where aviable ) :</ th >
< td >
2012-06-25 10:22:56 +00:00
< input name = " wpgpxmaps_show_cadence " type = " checkbox " value = " true " < ? php if ( $showCad == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Show Cadence</i>
2012-04-12 14:49:22 +00:00
</ td >
</ tr >
< tr >
< th scope = " row " > Cadence line color :</ th >
< td >
< input name = " wpgpxmaps_graph_line_color_cad " type = " color " data - hex = " true " value = " <?php echo get_option('wpgpxmaps_graph_line_color_cad'); ?> " />
</ td >
</ tr >
2013-02-04 08:58:18 +00:00
< tr >
< th scope = " row " > Show Grade :</ th >
< td >
< input name = " wpgpxmaps_show_grade " type = " checkbox " value = " true " < ? php if ( $showGrade == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Show Grade - BETA</i>
< br />
< i > ( Grade values depends on your gps accuracy . If you have a poor gps accuracy they might be totally wrong ! ) </ i >
</ td >
</ tr >
< tr >
< th scope = " row " > Grade line color :</ th >
< td >
< input name = " wpgpxmaps_graph_line_color_grade " type = " color " data - hex = " true " value = " <?php echo get_option('wpgpxmaps_graph_line_color_grade'); ?> " />
</ td >
</ tr >
2012-04-12 14:49:22 +00:00
2012-02-15 16:04:18 +00:00
</ table >
2012-03-05 07:57:36 +00:00
< p class = " submit " >
< input type = " hidden " name = " action " value = " update " />
2014-03-14 13:38:36 +00:00
< 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,wpgpxmaps_show_atemp,wpgpxmaps_graph_line_color_atemp " />
2012-06-21 13:29:17 +00:00
< input type = " submit " class = " button-primary " value = " <?php _e('Save Changes', " wp_gpx_maps " ) ?> " />
2012-03-05 07:57:36 +00:00
</ p >
</ form >
< hr />
< form method = " post " action = " options.php " >
< ? php wp_nonce_field ( 'update-options' ) ?>
2012-02-15 16:04:18 +00:00
< h3 class = " title " > Advanced options < small > ( Do not edit if you don ' t know what you are doing ! ) </ small ></ h3 >
< table class = " form-table " >
2012-01-28 11:56:52 +00:00
< tr >
2012-02-15 16:04:18 +00:00
< th scope = " row " ></ th >
2012-01-28 11:56:52 +00:00
< td >
2012-06-25 10:22:56 +00:00
< i > Skip points closer than </ i > < input name = " wpgpxmaps_pointsoffset " type = " text " id = " wpgpxmaps_pointsoffset " value = " <?php echo $po ?> " style = " width:50px; " /> < i > meters </ i >.
2012-01-28 11:56:52 +00:00
</ td >
</ tr >
2012-02-15 16:04:18 +00:00
< tr >
< th scope = " row " ></ th >
< td >
2012-06-25 10:22:56 +00:00
< input name = " wpgpxmaps_donotreducegpx " type = " checkbox " value = " true " < ? php if ( $donotreducegpx == true ){ echo ( 'checked' );} ?> onchange="this.value = (this.checked)" /> <i>Do not reduce gpx</i>.
2012-02-15 16:04:18 +00:00
</ td >
</ tr >
2012-01-28 11:56:52 +00:00
</ table >
< input type = " hidden " name = " action " value = " update " />
2012-03-05 07:57:36 +00:00
< input name = " page_options " type = " hidden " value = " wpgpxmaps_pointsoffset,wpgpxmaps_donotreducegpx " />
2012-01-28 11:56:52 +00:00
2012-02-15 16:04:18 +00:00
< p class = " submit " >
2012-06-21 13:29:17 +00:00
< input type = " submit " class = " button-primary " value = " <?php _e('Save Changes', " wp_gpx_maps " ) ?> " />
2012-01-28 11:56:52 +00:00
</ p >
2012-03-05 07:57:36 +00:00
</ form >
< hr />