Wp-Insert - Version 2.1.3

Version Description

Download this release

Release Info

Developer namith.jawahar
Plugin Icon 128x128 Wp-Insert
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

includes/adwidgets.php CHANGED
@@ -132,6 +132,7 @@ function wp_insert_adwidgets_form_get_content($identifier) {
132
  echo '</div>';
133
  echo '<h3>Geo Targeting</h3>';
134
  echo '<div>';
 
135
  echo '<p>A Geo Targeted Ads have a higher priority than Ads configured via Multiple Ad Networks / A-B Testing.<br />If a Geo Targeting match is found all other Ads (Primary, Secondary and Tertiary Networks) will be ignored.</p>';
136
  $control->add_control(array('type' => 'choosen-multiselect', 'label' => 'Countries', 'optionName' => 'geo_group1_countries', 'options' => wp_insert_get_countries()));
137
  $control->add_control(array('type' => 'textarea', 'label' => 'Ad Code', 'style' => 'height: 220px;', 'optionName' => 'geo_group1_adcode'));
132
  echo '</div>';
133
  echo '<h3>Geo Targeting</h3>';
134
  echo '<div>';
135
+ echo '<p><b>This feature is temporarily unavailable as the servers we were using for FREE Geo Ip service has shut down.</b><br />(If you are interested in supporting us setup our own servers for continuing this service please contact the Author via support@smartlogix.co.in)</p>';
136
  echo '<p>A Geo Targeted Ads have a higher priority than Ads configured via Multiple Ad Networks / A-B Testing.<br />If a Geo Targeting match is found all other Ads (Primary, Secondary and Tertiary Networks) will be ignored.</p>';
137
  $control->add_control(array('type' => 'choosen-multiselect', 'label' => 'Countries', 'optionName' => 'geo_group1_countries', 'options' => wp_insert_get_countries()));
138
  $control->add_control(array('type' => 'textarea', 'label' => 'Ad Code', 'style' => 'height: 220px;', 'optionName' => 'geo_group1_adcode'));
includes/common/geotargeting.php CHANGED
@@ -282,11 +282,10 @@ function wp_insert_get_geotargeted_adcode($adOptions) {
282
  }
283
  }
284
 
285
- add_action('init', 'wp_insert_ip_to_country');
286
  function wp_insert_ip_to_country() {
287
  global $wpInsertGeoLocation;
288
  $userIp = $_SERVER["REMOTE_ADDR"];
289
- delete_transient('wp_insert_ip_'.$userIp);
290
  if($wpInsertGeoLocation != false) {
291
  return $wpInsertGeoLocation;
292
  } else {
282
  }
283
  }
284
 
285
+ //add_action('init', 'wp_insert_ip_to_country');
286
  function wp_insert_ip_to_country() {
287
  global $wpInsertGeoLocation;
288
  $userIp = $_SERVER["REMOTE_ADDR"];
 
289
  if($wpInsertGeoLocation != false) {
290
  return $wpInsertGeoLocation;
291
  } else {
includes/inpostads.php CHANGED
@@ -176,6 +176,7 @@ function wp_insert_inpostads_form_get_content($position) {
176
  echo '</div>';
177
  echo '<h3>Geo Targeting</h3>';
178
  echo '<div>';
 
179
  echo '<p>A Geo Targeted Ads have a higher priority than Ads configured via Multiple Ad Networks / A-B Testing.<br />If a Geo Targeting match is found all other Ads (Primary, Secondary and Tertiary Networks) will be ignored.</p>';
180
  $control->add_control(array('type' => 'choosen-multiselect', 'label' => 'Countries', 'optionName' => 'geo_group1_countries', 'options' => wp_insert_get_countries()));
181
  $control->add_control(array('type' => 'textarea', 'label' => 'Ad Code', 'style' => 'height: 220px;', 'optionName' => 'geo_group1_adcode'));
176
  echo '</div>';
177
  echo '<h3>Geo Targeting</h3>';
178
  echo '<div>';
179
+ echo '<p><b>This feature is temporarily unavailable as the servers we were using for FREE Geo Ip service has shut down.</b><br />(If you are interested in supporting us setup our own servers for continuing this service please contact the Author via support@smartlogix.co.in)</p>';
180
  echo '<p>A Geo Targeted Ads have a higher priority than Ads configured via Multiple Ad Networks / A-B Testing.<br />If a Geo Targeting match is found all other Ads (Primary, Secondary and Tertiary Networks) will be ignored.</p>';
181
  $control->add_control(array('type' => 'choosen-multiselect', 'label' => 'Countries', 'optionName' => 'geo_group1_countries', 'options' => wp_insert_get_countries()));
182
  $control->add_control(array('type' => 'textarea', 'label' => 'Ad Code', 'style' => 'height: 220px;', 'optionName' => 'geo_group1_adcode'));
includes/inthemeads.php CHANGED
@@ -139,6 +139,7 @@ function wp_insert_inthemeads_form_get_content($identifier) {
139
  echo '</div>';
140
  echo '<h3>Geo Targeting</h3>';
141
  echo '<div>';
 
142
  echo '<p>A Geo Targeted Ads have a higher priority than Ads configured via Multiple Ad Networks / A-B Testing.<br />If a Geo Targeting match is found all other Ads (Primary, Secondary and Tertiary Networks) will be ignored.</p>';
143
  $control->add_control(array('type' => 'choosen-multiselect', 'label' => 'Countries', 'optionName' => 'geo_group1_countries', 'options' => wp_insert_get_countries()));
144
  $control->add_control(array('type' => 'textarea', 'label' => 'Ad Code', 'style' => 'height: 220px;', 'optionName' => 'geo_group1_adcode'));
139
  echo '</div>';
140
  echo '<h3>Geo Targeting</h3>';
141
  echo '<div>';
142
+ echo '<p><b>This feature is temporarily unavailable as the servers we were using for FREE Geo Ip service has shut down.</b><br />(If you are interested in supporting us setup our own servers for continuing this service please contact the Author via support@smartlogix.co.in)</p>';
143
  echo '<p>A Geo Targeted Ads have a higher priority than Ads configured via Multiple Ad Networks / A-B Testing.<br />If a Geo Targeting match is found all other Ads (Primary, Secondary and Tertiary Networks) will be ignored.</p>';
144
  $control->add_control(array('type' => 'choosen-multiselect', 'label' => 'Countries', 'optionName' => 'geo_group1_countries', 'options' => wp_insert_get_countries()));
145
  $control->add_control(array('type' => 'textarea', 'label' => 'Ad Code', 'style' => 'height: 220px;', 'optionName' => 'geo_group1_adcode'));
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Namith Jawahar
3
  Tags: ads,adsense,advertising,advertisement,google ads,ad widget,analytics,google analytics,code insertion,privacy policy,best adsense plugin
4
  Donate link: http://wpinsert.smartlogix.co.in/support/
5
  Requires at least: 4.1.0
6
- Tested up to: 4.3.1
7
- Stable tag: 2.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
3
  Tags: ads,adsense,advertising,advertisement,google ads,ad widget,analytics,google analytics,code insertion,privacy policy,best adsense plugin
4
  Donate link: http://wpinsert.smartlogix.co.in/support/
5
  Requires at least: 4.1.0
6
+ Tested up to: 4.4
7
+ Stable tag: 2.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
wp-insert.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
  Description: WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
6
- Version: 2.1.2
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
@@ -31,7 +31,7 @@ if(!defined('WP_INSERT_URL'))
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR', plugin_dir_path(__FILE__));
33
  if(!defined('WP_INSERT_VERSION'))
34
- define('WP_INSERT_VERSION', '2.1.1');
35
  /*Includes*/
36
  require_once(dirname(__FILE__).'/includes/common/common.php');
37
  require_once(dirname(__FILE__).'/includes/controls/controls.php');
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
  Description: WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
6
+ Version: 2.1.3
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR', plugin_dir_path(__FILE__));
33
  if(!defined('WP_INSERT_VERSION'))
34
+ define('WP_INSERT_VERSION', '2.1.3');
35
  /*Includes*/
36
  require_once(dirname(__FILE__).'/includes/common/common.php');
37
  require_once(dirname(__FILE__).'/includes/controls/controls.php');