www.mapsmarker.com"); } include('inc' . DIRECTORY_SEPARATOR . 'admin-header.php'); $first_run = (isset($_GET['first_run']) ? 'true' : 'false'); $lmm_pro_readme = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'leaflet-maps-marker-pro' . DIRECTORY_SEPARATOR . 'readme.txt'; $lmm_pro_readme_four = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'maps-marker-pro' . DIRECTORY_SEPARATOR . 'readme.txt'; $action = isset($_POST['action']) ? $_POST['action'] : ''; if ( $action == NULL ) { if (file_exists($lmm_pro_readme) || (file_exists($lmm_pro_readme_four)) ) { echo '

' . __('Upgrade to pro version','lmm') . '

'; echo '
' . __('You already downloaded "Maps Marker Pro" to your server but did not activate the plugin yet!','lmm') . '
'; if ( current_user_can( 'install_plugins' ) ) { echo sprintf(__('Please navigate to Plugins / Installed Plugins and activate the plugin "Maps Marker Pro".','lmm'), LEAFLET_WP_ADMIN_URL . 'plugins.php'); } else { echo sprintf(__('Please contact your administrator (%1s) to activate the plugin "Maps Marker Pro".','lmm'), '' . get_bloginfo('admin_email') . '' ); } } else { $override_css = ($first_run == 'true') ? 'style="margin-top:16px;"' : 'style="margin-top:20px;"'; echo '
Pro Logo
'; echo '

' . __('More power: try Maps Marker Pro for free!','lmm') . '

'; echo '
'; wp_nonce_field('pro-upgrade-nonce'); echo '

' . __('The free version of this plugin is retired, meaning it will no longer be updated for new features (details). If you’d like a faster plugin with dedicated support and new features added frequently, try Maps Marker Pro: Start a free 30-day-trial without any obligation.','lmm') . '

'; if ( current_user_can( 'install_plugins' ) ) { echo ''; } else { echo '
' . sprintf(__('Warning: your user does not have the capability to install new plugins - please contact your administrator (%1s)','lmm'), '' . get_bloginfo('admin_email') . '' ) . '
'; echo ''; } if ($first_run == 'true') { echo ' ' . __('or thanks, maybe later','lmm') . ''; } echo '
'; echo '

' . __('Highlights of Maps Marker Pro','lmm') . '

'; echo '

' . sprintf(__('For demo maps please visit %1s which also allows you to test the admin area of the pro version.','lmm'), 'demo.mapsmarker.com') . '

'; echo '

' . sprintf(__('If you want to compare the free and pro version side by side, please visit %1s.','lmm'), 'mapsmarker.com/comparison') . '

'; //info: different backgrounds for WP3.8+ global $wp_version; if ( version_compare( $wp_version, '3.8-alpha', '>' ) ) { //info: for mp6 theme compatibility $bgcolor = '#FFFFFF'; } else { $bgcolor = '#F2F2F2'; } echo '

' . __('integration of the latest leaflet.js version','lmm') . '

' . __('Maps Marker Pro supports the latest leaflet.js version, which is the core library used for displaying maps.','lmm') . ' ' . __('Major highlights:','lmm') . '

' . sprintf(__('Click here to get the full changelog for leaflet.js v%1s currently integrated in the pro version','lmm'), '1.2.0 (08/2017)') . ' (' . sprintf(__('v%1s is used in the free version','lmm'), '0.7.7 (10/2015)') . ')

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('significantly increased performance for Google-based maps','lmm') . '
' . __('Maps Marker Pro uses the state-of-the-art "GoogleMutant" leaflet plugin, which provides a much better user experience and performance when using Google Maps as basemaps.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('significantly decreased loadtimes for OpenStreetMap-based maps','lmm') . '
' . __('Maps Marker Pro supports conditional and deferred Google Maps API loading. This saves visitor of your site up to ~370kb uncompressed data transmission for each page view with an embedded OpenStreetMap based map! If you are using Google Maps as basemap, the needed scripts are loaded deferred and on demand only.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('Marker clustering','lmm') . '

' . __('Maps Marker Pro allows you to create beautifully animated marker clusters for layer maps:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('Filter maps on frontend','lmm') . '
' . __('Maps Marker Pro allows you to organize your markers in categories and to toggle their visibility on frontend.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('Dynamic list of markers supporting paging, searching and sorting','lmm') . '

' . __('The list of markers below layer maps in Maps Marker Pro allows you use dynamic paging, searching and sorting - making the list more usable for your visitors. The list can also be sorted based on the current position of the user viewing the map:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('geolocation support: show and follow your location when viewing maps','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('GPX tracks, elevation charts and waypoints','lmm') . '

' . __('Maps Marker Pro allows you to also display GPX tracks with waypoints and interactive elevations chars on your maps:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('Augmented-reality support using layar.com API','lmm') . '

' . __('Markers can also be displayed via Augmented-Reality technology powered by layar on mobile devices.:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('support for assigning markers to multiple layers','lmm') . '

' . __('Maps Marker Pro allows you to assign markers to multiple layers at once - helping you to better manage and organize your points of interest.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('support for CSV/XLS/XLSX/ODS import and export for bulk additions and bulk updates','lmm') . '

' . __('Maps Marker Pro allows you to easily perform bulk updates on markers and layers by using the integrated import feature:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('HTML5 fullscreen maps','lmm') . '

' . __('Maps Marker Pro allows you to add a fullscreen button to maps. Clicking on this button will open an HTML5 fullscreen map without leaving the page you are currently viewing.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('home button','lmm') . '

' . __('With Maps Marker Pro you can add a home button to your maps which allows your visitors to reset the map to its original state.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('Minimaps','lmm') . '

' . __('Maps Marker Pro allows you to add a small map in the corner which shows the same as the main map with a set zoom offset:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('Optimized viewport on mobile devices','lmm') . '

' . __('The viewport of the device used is considered, which results in optimized display of fullscreen maps especially on mobile devices:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('custom Google Maps styling','lmm') . '

' . __('Maps Marker Pro allow you to easily customize the presentation of the standard Google base maps, changing the visual display of such elements as roads, parks, and built-up areas:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('upload icon button & custom icon directory','lmm') . '

' . __('Uploading new icons gets easier with Maps Marker Pro - no more need to use a FTP client, just click on the new upload button and add new icons from WordPress admin area easily:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('backup and restore of settings','lmm') . '

' . __('Maps Marker Pro allows you to backup and restore your settings which makes it possible to quickly switch between different plugin profiles. This is especially useful if you want to deploy the plugin with custom configuration on multiple sites:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('advanced recent marker widget','lmm') . '

' . __('Maps Marker Pro allows you to customize which markers and layers to include or exclude in the recent marker widget:','lmm') . '

' . __('Furthermore can also remove the attribution link from the recent marker widget:','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('MapsMarker API','lmm') . '

' . __('Manage your markers and layers through a highly customizable REST API, which supports GET & POST requests, JSON & XML as formats and was developed with a focus on security.','lmm') . ' ' . __('In addition, Maps Marker Pro also offers a separate MMPAPI class which you can use to developing an add-on for example.','lmm') . '

' . __('For more details please visit the MapsMarker API docs.','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('whitelabel backend admin pages','lmm') . '

' . __('Maps Marker Pro allows you to remove all backlinks and logos on backend as well as making the pages and menu entries for Tools, Settings, Support, License visible to admins only.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('option to remove MapsMarker.com backlinks','lmm') . '

' . __('Maps Marker Pro allows you to hide MapsMarker.com-backlinks from maps and KML files:','lmm') . '





' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('advanced permission settings','lmm') . '

' . __('Maps Marker Pro allows you to set the user level needed for editing and deleting marker and layer maps from other users.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('WPML translation support for multilingual maps','lmm') . '

' . __('Maps Marker Pro makes it easy to build multilingual maps by fully supporting the translation solutions WPML and Polylang.','lmm') . '

' . __('Click here to get more information about this pro feature on mapsmarker.com','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('additional optimizations and improvements','lmm') . '

' . __('back to top to start free 30-day-trial','lmm') . '

' . __('For more details, showcases and reviews please also visit www.mapsmarker.com','lmm') . '

'; echo ''; } } else { if (!wp_verify_nonce( $_POST['_wpnonce'], 'pro-upgrade-nonce') ) { wp_die('
'.__('Security check failed - please call this function from the according admin page!','lmm').''); }; if ($action == 'upgrade_to_pro_version') { global $wpdb; $table_name_layers = $wpdb->prefix.'leafletmapsmarker_layers'; $table_name_markers = $wpdb->prefix.'leafletmapsmarker_markers'; $count_markers = $wpdb->get_var('SELECT count(*) FROM `'.$table_name_markers.'`'); $count_layers = $wpdb->get_var('SELECT count(*) FROM `'.$table_name_layers.'`'); if ( (!$count_markers) && ($count_layers == 1) ) { $dl = 'https://www.mapsmarker.com/download-pro'; //download latest version to skip migration (as no data with free version has been created yet) } else { $dl = 'https://www.mapsmarker.com/upgrade-pro'; //download latest 3.x version for migrating existing data } include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; add_filter( 'https_ssl_verify', '__return_false' ); //info: otherwise SSL error on localhost installs. add_filter( 'https_local_ssl_verify', '__return_false' ); //info: not sure if needed, added to be sure $upgrader = new Plugin_Upgrader( new Plugin_Upgrader_Skin() ); $upgrader->install( $dl ); //info: check if download was successful if ( (!$count_markers) && ($count_layers == 1) ) { $lmm_pro_readme = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'maps-marker-pro' . DIRECTORY_SEPARATOR . 'readme.txt'; } else { $lmm_pro_readme = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . 'leaflet-maps-marker-pro' . DIRECTORY_SEPARATOR . 'readme.txt'; } if (file_exists($lmm_pro_readme)) { echo '

' . __('Please activate the plugin by clicking the link above','lmm') . '

'; } else { echo '

' . sprintf(__('The pro plugin package could not be downloaded automatically. Please download the plugin from %2s and upload it to the directory /wp-content/plugins on your server manually','lmm'), $dl, $dl) . '

'; } } } ?>