__( 'Tracks', 'wp-gpx-maps' ), 'settings' => __( 'Settings', '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 WP_GPX_Maps_html_page() { $realGpxPath = gpxFolderPath(); $cacheGpxPath = gpxCacheFolderPath(); $relativeGpxPath = relativeGpxFolderPath(); $relativeGpxPath = str_replace( '\\', '/', $relativeGpxPath ); $relativeGpxCachePath = relativeGpxCacheFolderPath(); $relativeGpxCachePath = str_replace( '\\', '/', $relativeGpxCachePath ); $tab = $_GET['tab']; if ( $tab == '' ) $tab = 'tracks'; ?>

'; printf( /* translators: Relative path of the GPX folder */ __( 'Can not 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 exist! */ } else { if ( ! @mkdir( $cacheGpxPath, 0755, true ) ) { echo '

'; printf( /* translators: Relative path of the GPX cache folder */ __( 'Can not 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 ( $tab == 'tracks' ) { include 'wp-gpx-maps_admin_tracks.php'; } elseif ( $tab == 'settings' ) { include 'wp-gpx-maps_admin_settings.php'; } elseif ( $tab == 'help' ) { include 'wp-gpx-maps_help.php'; } } ?>