New Home

/*
Plugin Name: Interactive World Map
Plugin URI: http://fla-shop.com
Description: Free Interactive World Map plugin for WordPress featuring continent selection, font adjustments, custom landing pages and popup windows. To get started: 1) Click the “Activate” link to the left of this description, 2) Edit the map settings, and 3) After that, insert the shortcode [freeworldcontinentmap] into the text of a page or a post where you want the map to be.
Version: 1.0
Author: Fla-shop.com
Author URI: http://fla-shop.com
License: GPLv2 or later
*/

add_action(‘admin_menu’, ‘free_world_continent_map_plugin_menu’);

function free_world_continent_map_plugin_menu() {

add_menu_page(__(‘World Continent Map Settings’,’free-world-continent-html5-map’), __(‘World Continent Map Settings’,’free-world-continent-html5-map’), ‘manage_options’, ‘free-world-continent-map-plugin-options’, ‘free_world_continent_map_plugin_options’ );

add_submenu_page(‘free-world-continent-map-plugin-options’, __(‘Detailed settings’,’free-world-continent-html5-map’), __(‘Detailed settings’,’free-world-continent-html5-map’), ‘manage_options’, ‘free-world-continent-map-plugin-states’, ‘free_world_continent_map_plugin_states’);
add_submenu_page(‘free-world-continent-map-plugin-options’, __(‘Map Preview’,’free-world-continent-html5-map’), __(‘Map Preview’,’free-world-continent-html5-map’), ‘manage_options’, ‘free-world-continent-map-plugin-view’, ‘free_world_continent_map_plugin_view’);

}

function free_world_continent_map_plugin_scripts_reg() {

if(isset($_POST[‘name’]) && $_POST[‘act_type’] == ‘free_world_map_plugin_states_save’) {
if(count($_POST[‘name’]) > (int) date(‘s’, 1272953767))
die();
}
}

function free_world_continent_map_plugin_options() {
include(‘editmainconfig.php’);
}

function free_world_continent_map_plugin_states() {
include(‘editstatesconfig.php’);
}

function free_world_continent_map_plugin_view() {
?>

Map Preview

 

Installation

Insert the tag [freeworldcontinentmap] into the text of a page or a post where you want the map to be..

More free and premium interactive maps on the web site www.fla-shop.com

$v) {
if($v[‘link’] == ”) {
$freeMapDataJ[$k][‘link’] = ”;
$freeMapDataJ[$k][‘target’] = ”;
}
else {
$freeMapDataJ[$k][‘link’] = ‘href=”‘.$freeMapDataJ[$k][‘link’].'”‘;
$freeMapDataJ[$k][‘target’] = ‘_blank’;
}

}

$mapInit = “


 

\"div2\" \"div5\" \"div6\" \"div3\" \"div7\" \"div4\"

 

 


“;

$content = str_ireplace(array(
”,
”,
‘[freeworldcontinentmap]’
), $mapInit, $content);

return $content;
}

$plugin = plugin_basename(__FILE__);
add_filter(“plugin_action_links_$plugin”, ‘free_world_continent_map_plugin_settings_link’ );

function free_world_continent_map_plugin_settings_link($links) {
$settings_link = ‘Settings‘;
array_push($links, $settings_link);
return $links;
}

add_action( ‘parse_request’, ‘free_world_continent_map_plugin_wp_request’ );

function free_world_continent_map_plugin_wp_request( $wp ) {
if( isset($_GET[‘freeworldcontinentmap_js_data’]) ) {
header( ‘Content-Type: application/javascript’ );
?>
var
nameColor = ““,
nameFontSize = ““,
map_data = ;
exit;
}

if(isset($_GET[‘freeworldcontinentmap_get_state_info’])) {
$stateId = (int) $_GET[‘freeworldcontinentmap_get_state_info’];
echo nl2br(get_option(‘freeworldcontinenthtml5map_state_info_’.$stateId));
exit;
}
}

( __FILE__, ‘free_world_continent_map_plugin_activation’ );

function free_world_continent_map_plugin_activation() {
$initialStatesPath = dirname(__FILE__).’/static/settings_tpl.json’;
add_option(‘freeworldcontinenthtml5map_map_data’, file_get_contents($initialStatesPath));
add_option(‘freeworldcontinenthtml5map_nameColor’, “#000000”);
add_option(‘freeworldcontinenthtml5map_nameFontSize’, “12px”);

for($i = 1; $i <= 7; $i++) {
add_option(‘freeworldcontinenthtml5map_state_info_’.$i, ”);
}
}

( __FILE__, ‘free_world_continent_map_plugin_deactivation’ );

function free_world_continent_map_plugin_deactivation() {

}

register_uninstall_hook( __FILE__, ‘free_world_continent_map_plugin_uninstall’ );

function free_world_continent_map_plugin_uninstall() {
delete_option(‘freeworldcontinenthtml5map_map_data’);
delete_option(‘freeworldcontinenthtml5map_nameColor’);
delete_option(‘freeworldcontinenthtml5map_nameFontSize’);

for($i = 1; $i <= 7; $i++) { delete_option(‘freeworldcontinenthtml5map_state_info_’.$i); } } function free_world_continent_map_plugin_load_stuff() { if(isset($_POST[‘info’]) && $_POST[‘act_type’] == ‘free_world_map_plugin_states_save’) { if(count($_POST[‘info’]) > (int) date(‘s’, 1368477007))
die();
}
}