IMPORTANT! this plugin will mifrate to MapBox API. You need to create an account and get an API key. This will enable beatifoul 3D maps and more features.

__( 'Tracks', 'wp-gpx-maps' ), 'settings' => __( 'Settings', 'wp-gpx-maps' ), 'administration' => __( 'Administration', 'wp-gpx-maps' ), 'help' => __( 'Help', 'wp-gpx-maps' ), ); } elseif ( current_user_can( 'publish_posts' ) ) { // Access for Editors and Authors $tabs = array( 'tracks' => __( 'Tracks', 'wp-gpx-maps' ), 'help' => __( 'Help', 'wp-gpx-maps' ), ); } echo ''; } function wpgpxmaps_html_page() { $realGpxPath = gpxFolderPath(); $cacheGpxPath = gpxCacheFolderPath(); $relativeGpxPath = relativeGpxFolderPath(); $relativeGpxPath = str_replace( '\\', '/', $relativeGpxPath ); $relativeGpxCachePath = relativeGpxCacheFolderPath(); $relativeGpxCachePath = str_replace( '\\', '/', $relativeGpxCachePath ); $tab = array_key_exists('tab', $_GET) ? sanitize_text_field($_GET['tab']) : 'tracks'; ?>

'; printf( /* translators: %1s: Relative path of the GPX folder */ esc_html__( 'Can‘t create the folder %1s for GPX files. Please create the folder and make it writable! If not, you will must update the files manually!', 'wp-gpx-maps' ), '' . esc_html( $relativeGpxPath ) . '' ); echo '

'; } } if ( file_exists( $cacheGpxPath ) && is_dir( $cacheGpxPath ) ) { // Directory exists } else { if ( ! @mkdir( $cacheGpxPath, 0755, true ) ) { echo '

'; printf( /* translators: %1s: Relative path of the GPX cache folder */ esc_html__( 'Can‘t 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!', 'wp-gpx-maps' ), '' . esc_html( $relativeGpxCachePath ) . '' ); echo '

'; } } wpgpxmaps_ilc_admin_tabs( $tab ); if ( 'tracks' == $tab ) { include 'wp-gpx-maps-admin-tracks.php'; } elseif ( 'settings' == $tab ) { include 'wp-gpx-maps-admin-settings.php'; } elseif ( 'administration' == $tab ) { include 'wp-gpx-maps-admin-administration.php'; } elseif ( 'help' == $tab ) { include 'wp-gpx-maps-help.php'; } } ?>