No permission

'; return; } /* General */ $distanceType = get_option( 'wpgpxmaps_distance_type' ); $skipcache = get_option( 'wpgpxmaps_skipcache' ); $download = get_option( 'wpgpxmaps_download' ); $usegpsposition = get_option( 'wpgpxmaps_usegpsposition' ); /* Print Summary Table */ $summary = get_option( 'wpgpxmaps_summary' ); $tot_len = get_option( 'wpgpxmaps_summary_tot_len' ); $max_ele = get_option( 'wpgpxmaps_summary_max_ele' ); $min_ele = get_option( 'wpgpxmaps_summary_min_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' ); $avg_cad = get_option( 'wpgpxmaps_summary_avg_cad' ); $avg_hr = get_option( 'wpgpxmaps_summary_avg_hr' ); $avg_temp = get_option( 'wpgpxmaps_summary_avg_temp' ); $total_time = get_option( 'wpgpxmaps_summary_total_time' ); /* Map */ $t = get_option( 'wpgpxmaps_map_type' ); $zoomonscrollwheel = get_option( 'wpgpxmaps_zoomonscrollwheel' ); $showW = get_option( 'wpgpxmaps_show_waypoint' ); /* Diagram */ $showEle = get_option( 'wpgpxmaps_show_elevation' ); $uom = get_option( 'wpgpxmaps_unit_of_measure' ); $showSpeed = get_option( 'wpgpxmaps_show_speed' ); $uomSpeed = get_option( 'wpgpxmaps_unit_of_measure_speed' ); $showHr = get_option( 'wpgpxmaps_show_hr' ); $showAtemp = get_option( 'wpgpxmaps_show_atemp' ); $showCad = get_option( 'wpgpxmaps_show_cadence' ); $showGrade = get_option( 'wpgpxmaps_show_grade' ); /* Advanced */ $po = get_option( 'wpgpxmaps_pointsoffset' ); $donotreducegpx = get_option( 'wpgpxmaps_donotreducegpx' ); if ( empty( $showEle ) ) $showEle = 'true'; if ( ! ( $t ) ) $t = 'HYBRID'; if ( ! ( $po ) ) $po = 10; function render_color_input($name, $label, $value, $style = 'width:50px;') { echo " ".esc_html($label)." "; } function render_text_input($name, $label, $value, $style = 'width:50px;', $appendHtml = '') { echo " ".esc_html($label)." ".esc_html($appendHtml)." "; } function render_checkbox($name, $label, $value) { $checked = $value ? 'checked' : ''; echo " ".esc_html($label)." ".esc_html($label)." "; } function render_radio($name, $label, $options, $checked) { echo " ".esc_html($label)." "; foreach ($options as $value => $text) { $isChecked = $value == $checked ? 'checked' : ''; echo "
"; //echo ""; } echo ""; } function render_select($name, $label, $options, $selected) { echo " ".esc_html($label)." "; } ?>

'Normal (default)', '1' => 'Flat → (Only flat distance, don’t take care of altitude)', '2' => 'Climb ↑ (Only climb distance)' ], $distanceType); render_checkbox('wpgpxmaps_skipcache', 'Cache:', $skipcache); render_checkbox('wpgpxmaps_download', 'GPX Download:', $download); render_checkbox('wpgpxmaps_usegpsposition', 'Use browser GPS position:', $usegpsposition); render_text_input('wpgpxmaps_openstreetmap_apikey', 'Thunderforest API Key (Open Cycle Map):', get_option('wpgpxmaps_openstreetmap_apikey'), 'width:400px'); render_text_input('wpgpxmaps_mapbox_apikey', 'Mapbox API Key:', get_option('wpgpxmaps_mapbox_apikey'), 'width:400px'); ?>



'Open Street Map', 'OSM2' => 'Open Cycle Map / Thunderforest - Open Cycle Map (API Key required)', 'OSM3' => 'Thunderforest - Outdoors (API Key required)', 'OSM4' => 'Thunderforest - Transport (API Key required)', 'OSM5' => 'Thunderforest - Landscape (API Key required)', 'OSM6' => 'MapToolKit - Terrain', 'OSM7' => 'Open Street Map - Humanitarian map style', 'OSM9' => 'Hike & Bike', 'OSM10' => 'Open Sea Map', 'OSM11' => 'GSI Map (Japan)' ], $t); render_text_input('wpgpxmaps_map_line_color', 'Map line color:', get_option('wpgpxmaps_map_line_color'), 'width:100px;'); render_checkbox('wpgpxmaps_zoomonscrollwheel', 'On mouse scroll wheel:', $zoomonscrollwheel); render_checkbox('wpgpxmaps_show_waypoint', 'Waypoints support:', $showW); render_text_input('wpgpxmaps_map_start_icon', 'Start track icon:', get_option('wpgpxmaps_map_start_icon'), 'width:400px;'); render_text_input('wpgpxmaps_map_end_icon', 'End track icon:', get_option('wpgpxmaps_map_end_icon'), 'width:400px;'); render_text_input('wpgpxmaps_map_current_icon', 'Current position icon:', get_option('wpgpxmaps_map_current_icon'), 'width:400px;'); render_text_input('wpgpxmaps_currentpositioncon', 'Current GPS position icon:', get_option('wpgpxmaps_currentpositioncon'), 'width:400px;'); render_text_input('wpgpxmaps_map_waypoint_icon', 'Custom waypoint icon:', get_option('wpgpxmaps_map_waypoint_icon'), 'width:400px;'); ?>


'meters / meters', '1' => 'feet / miles', '2' => 'meters / kilometers', '3' => 'meters / nautical miles', '4' => 'meters / miles', '5' => 'feet / nautical miles' ], $uom); render_text_input('wpgpxmaps_graph_offset_from1', 'Altitude display offset from:', get_option('wpgpxmaps_graph_offset_from1')); render_text_input('wpgpxmaps_graph_offset_to1', 'Altitude display offset to:', get_option('wpgpxmaps_graph_offset_to1')); render_checkbox('wpgpxmaps_show_speed', 'Speed:', $showSpeed); render_text_input('wpgpxmaps_graph_line_color_speed', 'Speed line color:', get_option('wpgpxmaps_graph_line_color_speed'), 'width:100px;'); render_select('wpgpxmaps_unit_of_measure_speed', 'Speed unit of measure:', [ '0' => 'm/s', '1' => 'km/h', '2' => 'miles/h', '3' => 'min/km', '4' => 'min/miles', '5' => 'Knots (nautical miles / hour)', '6' => 'min/100 meters' ], $uomSpeed); render_text_input('wpgpxmaps_graph_offset_from2', 'Speed display offset from:', get_option('wpgpxmaps_graph_offset_from2')); render_text_input('wpgpxmaps_graph_offset_to2', 'Speed display offset to:', get_option('wpgpxmaps_graph_offset_to2')); render_checkbox('wpgpxmaps_show_hr', 'Heart rate (where available):', $showHr); render_text_input('wpgpxmaps_graph_line_color_hr', 'Heart rate line color:', get_option('wpgpxmaps_graph_line_color_hr'), 'width:100px;'); render_checkbox('wpgpxmaps_show_atemp', 'Temperature (where available):', $showAtemp); render_text_input('wpgpxmaps_graph_line_color_atemp', 'Temperature line color:', get_option('wpgpxmaps_graph_line_color_atemp'), 'width:100px;'); render_checkbox('wpgpxmaps_show_cadence', 'Cadence (where available):', $showCad); render_text_input('wpgpxmaps_graph_line_color_cad', 'Cadence line color:', get_option('wpgpxmaps_graph_line_color_cad'), 'width:100px;'); render_checkbox('wpgpxmaps_show_grade', 'Grade:', $showGrade); render_text_input('wpgpxmaps_graph_line_color_grade', 'Grade line color:', get_option('wpgpxmaps_graph_line_color_grade'), 'width:100px;'); ?>
onchange="wpgpxmaps_show_elevation.value = this.checked" onload="wpgpxmaps_show_elevation.value = this.checked" />