Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/interact...
File: interactive-geo-maps.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Interactive Geo Maps
[3] Fix | Delete
*
[4] Fix | Delete
* @wordpress-plugin
[5] Fix | Delete
* Plugin Name: MapGeo - Interactive Geo Maps
[6] Fix | Delete
* Plugin URI: https://interactivegeomaps.com/
[7] Fix | Delete
* Description: Create interactive geographic vector maps of the world, continents or any country in the world. Color full regions or create markers on specific locations that will have information on hover and can also have actions on click. This plugin uses the online amcharts library to generate the maps.
[8] Fix | Delete
* Version: 1.6.19
[9] Fix | Delete
* Requires PHP: 7.0
[10] Fix | Delete
* Author: MapGeo
[11] Fix | Delete
* Author URI: https://interactivegeomaps.com
[12] Fix | Delete
* Text Domain: interactive-geo-maps
[13] Fix | Delete
* Domain Path: /languages
[14] Fix | Delete
*
[15] Fix | Delete
*/
[16] Fix | Delete
namespace Saltus\WP\Plugin\Saltus\InteractiveMaps;
[17] Fix | Delete
[18] Fix | Delete
// If this file is called directly, quit.
[19] Fix | Delete
if ( !defined( 'WPINC' ) ) {
[20] Fix | Delete
exit;
[21] Fix | Delete
}
[22] Fix | Delete
// Only run plugin code if PHP version bigger than 7.0 for now
[23] Fix | Delete
if ( version_compare( PHP_VERSION, '7.0', '<' ) ) {
[24] Fix | Delete
return;
[25] Fix | Delete
}
[26] Fix | Delete
// Freemius logic
[27] Fix | Delete
if ( function_exists( __NAMESPACE__ . '\\igmfreemiusinit' ) ) {
[28] Fix | Delete
igmfreemiusinit()->set_basename( false, __FILE__ );
[29] Fix | Delete
} else {
[30] Fix | Delete
if ( !function_exists( __NAMESPACE__ . '\\igmfreemiusinit' ) ) {
[31] Fix | Delete
// Create a helper function for easy SDK access.
[32] Fix | Delete
function igmfreemiusinit() {
[33] Fix | Delete
global $igmfreemiusinit;
[34] Fix | Delete
if ( !isset( $igmfreemiusinit ) ) {
[35] Fix | Delete
// Include Freemius SDK.
[36] Fix | Delete
if ( file_exists( dirname( __FILE__ ) . '/vendor/freemius/wordpress-sdk/start.php' ) ) {
[37] Fix | Delete
require_once dirname( __FILE__ ) . '/vendor/freemius/wordpress-sdk/start.php';
[38] Fix | Delete
}
[39] Fix | Delete
$igmfreemiusinit = fs_dynamic_init( array(
[40] Fix | Delete
'id' => '5114',
[41] Fix | Delete
'slug' => 'interactive-geo-maps',
[42] Fix | Delete
'type' => 'plugin',
[43] Fix | Delete
'public_key' => 'pk_81cc828e3f6fa811c70bab7631a4f',
[44] Fix | Delete
'is_premium' => false,
[45] Fix | Delete
'premium_suffix' => 'PRO',
[46] Fix | Delete
'has_addons' => true,
[47] Fix | Delete
'has_paid_plans' => true,
[48] Fix | Delete
'trial' => array(
[49] Fix | Delete
'days' => 7,
[50] Fix | Delete
'is_require_payment' => true,
[51] Fix | Delete
),
[52] Fix | Delete
'menu' => array(
[53] Fix | Delete
'slug' => 'edit.php?post_type=igmap',
[54] Fix | Delete
'support' => false,
[55] Fix | Delete
),
[56] Fix | Delete
'is_live' => true,
[57] Fix | Delete
) );
[58] Fix | Delete
}
[59] Fix | Delete
return $igmfreemiusinit;
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
// Init Freemius.
[63] Fix | Delete
igmfreemiusinit();
[64] Fix | Delete
// Signal that SDK was initiated.
[65] Fix | Delete
do_action( 'igmfreemiusinit_loaded' );
[66] Fix | Delete
/**
[67] Fix | Delete
* Prevent trial notice from displaying
[68] Fix | Delete
*
[69] Fix | Delete
* @param bool $show
[70] Fix | Delete
* @param array $msg
[71] Fix | Delete
* @return bool
[72] Fix | Delete
*/
[73] Fix | Delete
function igm_remove_trial_notice( $show, $msg ) {
[74] Fix | Delete
if ( 'trial_promotion' === $msg['id'] ) {
[75] Fix | Delete
// Don't show the trial promotional admin notice.
[76] Fix | Delete
return false;
[77] Fix | Delete
}
[78] Fix | Delete
return $show;
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
/**
[82] Fix | Delete
* Returns the plugin icon url
[83] Fix | Delete
*
[84] Fix | Delete
* @return string
[85] Fix | Delete
*/
[86] Fix | Delete
function igm_plugin_icon() {
[87] Fix | Delete
return dirname( __FILE__ ) . '/assets/imgs/icon-256x256.png';
[88] Fix | Delete
}
[89] Fix | Delete
[90] Fix | Delete
igmfreemiusinit()->add_filter(
[91] Fix | Delete
'show_admin_notice',
[92] Fix | Delete
'Saltus\\WP\\Plugin\\Saltus\\InteractiveMaps\\igm_remove_trial_notice',
[93] Fix | Delete
10,
[94] Fix | Delete
2
[95] Fix | Delete
);
[96] Fix | Delete
// set plugin icon for freemius
[97] Fix | Delete
igmfreemiusinit()->add_filter( 'plugin_icon', 'Saltus\\WP\\Plugin\\Saltus\\InteractiveMaps\\igm_plugin_icon' );
[98] Fix | Delete
igmfreemiusinit()->override_i18n( array(
[99] Fix | Delete
'start-trial' => __( 'Free 7 Day Pro Trial', 'interactive-geo-maps' ),
[100] Fix | Delete
'upgrade' => __( 'Get Pro Features', 'interactive-geo-maps' ),
[101] Fix | Delete
) );
[102] Fix | Delete
}
[103] Fix | Delete
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
[104] Fix | Delete
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
[105] Fix | Delete
}
[106] Fix | Delete
if ( class_exists( \Saltus\WP\Framework\Core::class ) ) {
[107] Fix | Delete
/*
[108] Fix | Delete
* The path to the plugin root directory is mandatory,
[109] Fix | Delete
* so it loads the models from a subdirectory.
[110] Fix | Delete
*/
[111] Fix | Delete
$framework = new \Saltus\WP\Framework\Core(dirname( __FILE__ ));
[112] Fix | Delete
$framework->register();
[113] Fix | Delete
/**
[114] Fix | Delete
* Initialize plugin
[115] Fix | Delete
*/
[116] Fix | Delete
add_action( 'plugins_loaded', function () use($framework) {
[117] Fix | Delete
$plugin = new Core(
[118] Fix | Delete
'interactive-geo-maps',
[119] Fix | Delete
'1.6.19',
[120] Fix | Delete
__FILE__,
[121] Fix | Delete
$framework
[122] Fix | Delete
);
[123] Fix | Delete
$plugin->init();
[124] Fix | Delete
} );
[125] Fix | Delete
}
[126] Fix | Delete
}
[127] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function