Wp-Insert - Version 2.0.4

Version Description

Download this release

Release Info

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

Code changes from version 2.0.3 to 2.0.4

includes/adwidgets/admin-page.php CHANGED
@@ -63,6 +63,12 @@ function wp_insert_adwidgets_content($post, $args) {
63
  $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
64
  $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
65
  $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
 
 
 
 
 
 
66
 
67
  $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
68
 
@@ -241,6 +247,35 @@ function wp_insert_adwidgets_rules_content($controls) {
241
  )
242
  )
243
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
 
245
  return wp_insert_get_table($rulesTable);
246
  }
63
  $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
64
  $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
65
  $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
66
+ $post_types = get_post_types(array('public' => true, '_builtin' => false), 'names');
67
+ if($post_types) {
68
+ foreach($post_types as $post_type) {
69
+ $controls['rules_exclude_cpt_'.$post_type] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_cpt_'.$post_type.']', $id.'-rules_exclude_cpt_'.$post_type, $data['rules_exclude_cpt_'.$post_type], '', '', null, '', false);
70
+ }
71
+ }
72
 
73
  $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
74
 
247
  )
248
  )
249
  );
250
+ array_push(
251
+ $rulesTable['rows'],
252
+ array(
253
+ 'cells' => array(
254
+ array('colspan' => '3', 'content' => ' ')
255
+ )
256
+ ),
257
+ array(
258
+ 'cells' => array(
259
+ array('style' => 'text-align: left;', 'colspan' => '3', 'type' => 'th', 'content' => 'Custom Post Types')
260
+ )
261
+ )
262
+ );
263
+
264
+ $post_types = get_post_types(array('public' => true, '_builtin' => false), 'object');
265
+ if($post_types) {
266
+ foreach($post_types as $post_type) {
267
+ array_push(
268
+ $rulesTable['rows'],
269
+ array(
270
+ 'cells' => array(
271
+ array('content' => $post_type->labels->name),
272
+ array('content' => ' : '),
273
+ array('content' => $controls['rules_exclude_cpt_'.$post_type->name]['html'])
274
+ )
275
+ )
276
+ );
277
+ }
278
+ }
279
 
280
  return wp_insert_get_table($rulesTable);
281
  }
includes/common/css/style.css CHANGED
@@ -389,10 +389,12 @@ label.iOSCheckLabelOff span {
389
  }
390
 
391
  .wp-insert input.submit {
392
- background: #21759B;
 
 
 
393
  padding: 10px 0;
394
  width: 97%;
395
- border: 4px solid gold;
396
  }
397
 
398
  .wp-insert .rules {
389
  }
390
 
391
  .wp-insert input.submit {
392
+ border: 4px solid gold;
393
+ border-radius: 10px 10px 10px 10px;
394
+ font-size: 24px;
395
+ height: auto;
396
  padding: 10px 0;
397
  width: 97%;
 
398
  }
399
 
400
  .wp-insert .rules {
includes/common/images/chitika.gif CHANGED
Binary file
includes/common/images/clicksor.gif DELETED
Binary file
includes/common/status.php CHANGED
@@ -41,6 +41,7 @@ function wp_insert_get_page_details() {
41
  $page_details['type'] = 'POST';
42
  } else {
43
  $page_details['type'] = 'CUSTOM';
 
44
  }
45
  }
46
 
@@ -102,7 +103,9 @@ function wp_insert_get_ad_status($rules) {
102
  }
103
  break;
104
  case 'CUSTOM':
105
- return true;
 
 
106
  break;
107
  }
108
  return true;
41
  $page_details['type'] = 'POST';
42
  } else {
43
  $page_details['type'] = 'CUSTOM';
44
+ $page_details['type_name'] = $post->post_type;
45
  }
46
  }
47
 
103
  }
104
  break;
105
  case 'CUSTOM':
106
+ if($rules['rules_exclude_cpt_'.$page_details['type_name']]) {
107
+ return false;
108
+ }
109
  break;
110
  }
111
  return true;
includes/common/support.php CHANGED
@@ -17,7 +17,6 @@ function wp_insert_support_admin_init() {
17
  add_settings_section('wp-insert-support-top', '', 'wp_insert_support_section', 'wp-insert-support');
18
  add_meta_box('wp_insert_facebook', 'Like Us On Facebook', 'wp_insert_facebook_content', 'wp-insert-support-top', 'advanced', 'high');
19
  add_meta_box('wp_insert_donate', 'Donate and Support Free Plugins', 'wp_insert_donate_content', 'wp-insert-support-top', 'advanced', 'high');
20
- add_meta_box('wp_insert_matching_blog', 'Matching Blog for $100', 'wp_insert_matching_blog_content', 'wp-insert-support-bottom', 'advanced', 'high');
21
  if(get_option('wp_insert_showcase_submission') != 'SUBMITTED') {
22
  add_meta_box('wp_insert_showcase', 'Showcase your Site', 'wp_insert_showcase_content', 'wp-insert-support-bottom', 'advanced', 'high');
23
  }
@@ -157,8 +156,4 @@ function wp_insert_showcase_content() {
157
  echo '</div>';
158
  }
159
  }
160
-
161
- function wp_insert_matching_blog_content() {
162
- echo '<a href="http://smartlogix.co.in/matching-blog-for-100-offer/"><img src="'.WP_INSERT_URL.'/includes/common/images/blog_for_$100_ad.png" style="margin-top: 5px;" /></a><br /><small style="display: block; text-align: center;">This offer is only available for a limited period to Wp-Insert users and our existing customers.</small><small style="display: block; text-align: center;">If you face any difficulties placing the order, drop us an email : <a href="mailto:support@smartlogix.co.in">support@smartlogix.co.in</a></small>';
163
- }
164
  ?>
17
  add_settings_section('wp-insert-support-top', '', 'wp_insert_support_section', 'wp-insert-support');
18
  add_meta_box('wp_insert_facebook', 'Like Us On Facebook', 'wp_insert_facebook_content', 'wp-insert-support-top', 'advanced', 'high');
19
  add_meta_box('wp_insert_donate', 'Donate and Support Free Plugins', 'wp_insert_donate_content', 'wp-insert-support-top', 'advanced', 'high');
 
20
  if(get_option('wp_insert_showcase_submission') != 'SUBMITTED') {
21
  add_meta_box('wp_insert_showcase', 'Showcase your Site', 'wp_insert_showcase_content', 'wp-insert-support-bottom', 'advanced', 'high');
22
  }
156
  echo '</div>';
157
  }
158
  }
 
 
 
 
159
  ?>
includes/inpostads/admin-page.php CHANGED
@@ -56,6 +56,12 @@ function wp_insert_inpostads_content($post, $args) {
56
  $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
57
  $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
58
  $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
 
 
 
 
 
 
59
 
60
  $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
61
 
@@ -276,6 +282,35 @@ function wp_insert_inpostads_rules_content($controls) {
276
  )
277
  )
278
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
 
280
  return wp_insert_get_table($rulesTable);
281
  }
56
  $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
57
  $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
58
  $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
59
+ $post_types = get_post_types(array('public' => true, '_builtin' => false), 'names');
60
+ if($post_types) {
61
+ foreach($post_types as $post_type) {
62
+ $controls['rules_exclude_cpt_'.$post_type] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_cpt_'.$post_type.']', $id.'-rules_exclude_cpt_'.$post_type, $data['rules_exclude_cpt_'.$post_type], '', '', null, '', false);
63
+ }
64
+ }
65
 
66
  $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
67
 
282
  )
283
  )
284
  );
285
+ array_push(
286
+ $rulesTable['rows'],
287
+ array(
288
+ 'cells' => array(
289
+ array('colspan' => '3', 'content' => '&nbsp;')
290
+ )
291
+ ),
292
+ array(
293
+ 'cells' => array(
294
+ array('style' => 'text-align: left;', 'colspan' => '3', 'type' => 'th', 'content' => 'Custom Post Types')
295
+ )
296
+ )
297
+ );
298
+
299
+ $post_types = get_post_types(array('public' => true, '_builtin' => false), 'object');
300
+ if($post_types) {
301
+ foreach($post_types as $post_type) {
302
+ array_push(
303
+ $rulesTable['rows'],
304
+ array(
305
+ 'cells' => array(
306
+ array('content' => $post_type->labels->name),
307
+ array('content' => '&nbsp;:&nbsp;'),
308
+ array('content' => $controls['rules_exclude_cpt_'.$post_type->name]['html'])
309
+ )
310
+ )
311
+ );
312
+ }
313
+ }
314
 
315
  return wp_insert_get_table($rulesTable);
316
  }
includes/multiple-adnetwork/meta-box.php CHANGED
@@ -11,7 +11,10 @@ function wp_insert_multiple_network_status_content($post, $args) {
11
  );
12
  echo wp_insert_get_control('select', true, $name.'[status]', $id.'-status', $data, 'Select the Ad Network Setup that best suits you :', '', $networkOptions);
13
  echo '<small>Multiple Ad Networks can be setup to display ads from different networks without infringing the terms of any network. At a time only ads from one network (Randomly Choosen) will be shown. This feature can also be used to randomly display different sized Ads from the same network. Please note that this option is global and applied to Template Ads, In Post Ads as well as Ad Widgets.</small>';
14
- echo '<p><b>Recommended Primary Ad Network</b><br /><a href="http://google.com/adsense"><img src="'.WP_INSERT_URL.'/includes/common/images/adsense.gif" /></a></p>';
15
- echo '<p><b>Recommended Secondary Ad Networks</b><br /><a href="https://chitika.com/publishers/apply.php?refid=smartlogix"><img src="'.WP_INSERT_URL.'/includes/common/images/chitika.gif" /></a>&nbsp;&nbsp;<a href="http://signup.clicksor.com/pub/index.php?ref=285056"><img src="'.WP_INSERT_URL.'/includes/common/images/clicksor.gif" /></a></p>';
 
 
 
16
  }
17
  ?>
11
  );
12
  echo wp_insert_get_control('select', true, $name.'[status]', $id.'-status', $data, 'Select the Ad Network Setup that best suits you :', '', $networkOptions);
13
  echo '<small>Multiple Ad Networks can be setup to display ads from different networks without infringing the terms of any network. At a time only ads from one network (Randomly Choosen) will be shown. This feature can also be used to randomly display different sized Ads from the same network. Please note that this option is global and applied to Template Ads, In Post Ads as well as Ad Widgets.</small>';
14
+ echo '<p>';
15
+ echo '<b>Recommended Ad Networks</b><br />';
16
+ echo '<a href="http://google.com/adsense"><img src="'.WP_INSERT_URL.'/includes/common/images/adsense.gif" /></a>';
17
+ echo '<a href="https://chitika.com/publishers/apply.php?refid=smartlogix" style="margin-left: 10px;"><img src="'.WP_INSERT_URL.'/includes/common/images/chitika.gif" /></a>';
18
+ echo '</p>';
19
  }
20
  ?>
includes/templateads/admin-page.php CHANGED
@@ -63,6 +63,12 @@ function wp_insert_templateads_content($post, $args) {
63
  $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
64
  $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
65
  $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
 
 
 
 
 
 
66
 
67
  $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
68
 
@@ -245,6 +251,35 @@ function wp_insert_templateads_rules_content($controls) {
245
  )
246
  )
247
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
 
249
  return wp_insert_get_table($rulesTable);
250
  }
63
  $controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
64
  $controls['rules_exclude_post'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_post]', $id.'-rules_exclude_post', $data['rules_exclude_post'], '', '', null, '', false);
65
  $controls['rules_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_post_exceptions]', $id.'-rules_post_exceptions', $data['rules_post_exceptions'], '', '', array('type' => 'posts'), '', false);
66
+ $post_types = get_post_types(array('public' => true, '_builtin' => false), 'names');
67
+ if($post_types) {
68
+ foreach($post_types as $post_type) {
69
+ $controls['rules_exclude_cpt_'.$post_type] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_cpt_'.$post_type.']', $id.'-rules_exclude_cpt_'.$post_type, $data['rules_exclude_cpt_'.$post_type], '', '', null, '', false);
70
+ }
71
+ }
72
 
73
  $controls['styles'] = wp_insert_get_control('textarea', false, $name.'[styles]', $id.'-styles', $data['styles'], 'Styles:');
74
 
251
  )
252
  )
253
  );
254
+ array_push(
255
+ $rulesTable['rows'],
256
+ array(
257
+ 'cells' => array(
258
+ array('colspan' => '3', 'content' => '&nbsp;')
259
+ )
260
+ ),
261
+ array(
262
+ 'cells' => array(
263
+ array('style' => 'text-align: left;', 'colspan' => '3', 'type' => 'th', 'content' => 'Custom Post Types')
264
+ )
265
+ )
266
+ );
267
+
268
+ $post_types = get_post_types(array('public' => true, '_builtin' => false), 'object');
269
+ if($post_types) {
270
+ foreach($post_types as $post_type) {
271
+ array_push(
272
+ $rulesTable['rows'],
273
+ array(
274
+ 'cells' => array(
275
+ array('content' => $post_type->labels->name),
276
+ array('content' => '&nbsp;:&nbsp;'),
277
+ array('content' => $controls['rules_exclude_cpt_'.$post_type->name]['html'])
278
+ )
279
+ )
280
+ );
281
+ }
282
+ }
283
 
284
  return wp_insert_get_table($rulesTable);
285
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Namith Jawahar
3
  Donate link:www.wp-insert.smartlogix.co.in/support
4
  Tags: adsense,google,widget,post,admin,plugin,ads,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,privacy policy,privacy,policy,automatic privacy policy,blog,feed,feeds,formatting,html,javascript,manage,post,posts,seo,sidebar,widget,widgets,wordpress,tracking,syntex highlighter,highlighting,theme tools,plugin tools,developer tools,highlighting,theme editor,plugin editor,middle ad,ad filtration,pagewise ad filtration,template ads,ad tags,adbrite ads,adsense ready,easy adsense,adsense optimized,terms and conditions,terms,conditions,automatic terms and conditions
5
  Requires at least: 3.2
6
- Tested up to: 3.4.2
7
- Stable tag: 2.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
3
  Donate link:www.wp-insert.smartlogix.co.in/support
4
  Tags: adsense,google,widget,post,admin,plugin,ads,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,privacy policy,privacy,policy,automatic privacy policy,blog,feed,feeds,formatting,html,javascript,manage,post,posts,seo,sidebar,widget,widgets,wordpress,tracking,syntex highlighter,highlighting,theme tools,plugin tools,developer tools,highlighting,theme editor,plugin editor,middle ad,ad filtration,pagewise ad filtration,template ads,ad tags,adbrite ads,adsense ready,easy adsense,adsense optimized,terms and conditions,terms,conditions,automatic terms and conditions
5
  Requires at least: 3.2
6
+ Tested up to: 3.5.1
7
+ Stable tag: 2.0.4
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 wordpress plugin (No1 Adsense Plugin for Wordpress)
6
- Version: 2.0.3
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)
@@ -31,7 +31,7 @@ if(!defined('WP_INSERT_URL'))
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR',WP_PLUGIN_DIR.'/wp-insert');
33
  if(!defined('WP_INSERT_VERSION'))
34
- define('WP_INSERT_VERSION', '2.0.3');
35
  /*Includes*/
36
  require_once (dirname(__FILE__).'/includes/includes.php');
37
  ?>
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
  Description: WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)
6
+ Version: 2.0.4
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR',WP_PLUGIN_DIR.'/wp-insert');
33
  if(!defined('WP_INSERT_VERSION'))
34
+ define('WP_INSERT_VERSION', '2.0.4');
35
  /*Includes*/
36
  require_once (dirname(__FILE__).'/includes/includes.php');
37
  ?>