Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757
Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757
Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758
Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758
Notice: require(): read of 3441 bytes failed with errno=14 Bad address in /var/www/html/ticnews.com.br/web/wp-content/plugins/google-maps-easy/functions.php on line 44
Notice: require(): read of 3441 bytes failed with errno=12 Cannot allocate memory in /var/www/html/ticnews.com.br/web/wp-content/plugins/google-maps-easy/functions.php on line 44
ight;" href="'. $this->generateMainLink('utm_source=plugin&utm_medium=love_link&utm_campaign=googlemaps'). '" target="_blank">'
. $title
. '';
}
public function checkSaveOpts($newValues) {
$loveLinkEnb = (int) frameGmp::_()->getModule('options')->get('add_love_link');
$loveLinkEnbNew = isset($newValues['opt_values']['add_love_link']) ? (int) $newValues['opt_values']['add_love_link'] : 0;
if($loveLinkEnb != $loveLinkEnbNew) {
$this->getModel()->saveUsageStat('love_link.'. ($loveLinkEnbNew ? 'enb' : 'dslb'));
}
}
public function checkWeLoveYou() {
if(frameGmp::_()->getModule('options')->get('add_love_link')) {
echo $this->getLoveLink();
}
}
public function addPromoMapTabs() {
$tabs = array();
$descirption['figures'] = 'With Figures Feature, you can create polygon, polyline and circle shapes on your map with an easy to use interface. Provide a Figure title and description, using text, photos, videos and links for the overlay.';
$descirption['heatmap'] = 'Heatmap is an extremely common map visualization type, especially prevalent in weather, travel, fitness and social areas. Use the points to display the relative density of the points on the map as a smoothly varying set of colours, depend on low and high density.';
if(!$this->isPro()) {
$tabs['gmpShapeTab'] = array(
'label' => __('Figures', GMP_LANG_CODE),
'content' => $this->getView()->getPromoTabContent('shapes&utm_campaign=googlemaps', 'Figures', $descirption['figures']),
'promo' => true,
);
$tabs['gmpHeatmapTab'] = array(
'label' => __('Heatmap', GMP_LANG_CODE),
'content' => $this->getView()->getPromoTabContent('heatmap&utm_campaign=googlemaps', 'Heatmap Layer', $descirption['heatmap']),
'promo' => true,
);
}
return $tabs;
}
public function showFeaturedPluginsPage() {
return $this->getView()->showFeaturedPluginsPage();
}
public function getDiscountMsg() {
if($this->isPro()
&& frameGmp::_()->getModule('options')->getActiveTab() == 'license'
&& frameGmp::_()->getModule('license')
&& frameGmp::_()->getModule('license')->getModel()->isActive()
) {
$proPluginsList = array(
'ultimate-maps-by-supsystic-pro', 'newsletters-by-supsystic-pro', 'contact-form-by-supsystic-pro', 'live-chat-pro',
'digital-publications-supsystic-pro', 'coming-soon-supsystic-pro', 'price-table-supsystic-pro', 'tables-generator-pro',
'social-share-pro', 'popup-by-supsystic-pro', 'supsystic_slider_pro', 'supsystic-gallery-pro', 'google-maps-easy-pro',
'backup-supsystic-pro',
);
$activePluginsList = get_option('active_plugins', array());
$activeProPluginsCount = 0;
foreach($activePluginsList as $actPl) {
foreach($proPluginsList as $proPl) {
if(strpos($actPl, $proPl) !== false) {
$activeProPluginsCount++;
}
}
}
if($activeProPluginsCount === 1) {
$buyLink = $this->getDiscountBuyUrl();
$this->getView()->getDiscountMsg($buyLink);
}
}
}
public function getDiscountBuyUrl() {
$license = frameGmp::_()->getModule('license')->getModel()->getCredentials();
$license['key'] = md5($license['key']);
$license = urlencode(base64_encode(implode('|', $license)));
$plugin_code = 'google_maps_easy_pro';
return 'http://supsystic.com/?mod=manager&pl=lms&action=applyDiscountBuyUrl&plugin_code='. $plugin_code. '&lic='. $license;
}
}