Wp-Insert - Version 1.3.3

Version Description

Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.3

images/style-16x16.png ADDED
Binary file
includes/ads.php CHANGED
@@ -98,7 +98,7 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
98
  <div id="post-body-content" class="has-sidebar-content">
99
  <?php do_meta_boxes('inPostAds','advanced',null); ?>
100
  <input type="hidden" name="action" value="update" />
101
- <input type="hidden" name="page_options" value="<?php wp_insert_in_post_ad_parameters('middle_1'); wp_insert_in_post_ad_parameters('middle_2'); wp_insert_in_post_ad_parameters('right_1'); wp_insert_in_post_ad_parameters('right_2'); wp_insert_in_post_ad_parameters('left_1'); wp_insert_in_post_ad_parameters('left_2'); wp_insert_in_post_ad_parameters('bottom_1'); wp_insert_in_post_ad_parameters('bottom_2'); wp_insert_in_post_ad_parameters('top_1'); wp_insert_in_post_ad_parameters('top_2'); wp_insert_ad_widget_parameters(1); wp_insert_ad_widget_parameters(2); wp_insert_ad_widget_parameters(3); wp_insert_ad_widget_parameters(4); wp_insert_ad_widget_parameters(5); wp_insert_ad_widget_parameters(6); wp_insert_ad_widget_parameters(7); wp_insert_ad_widget_parameters(8); wp_insert_ad_widget_parameters(9); wp_insert_ad_widget_parameters(10); ?>" />
102
  <p class="submit">
103
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
104
  </p>
@@ -127,7 +127,7 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
127
  }
128
 
129
  function wp_insert_in_post_ad_parameters($in_post_adID) {
130
- echo 'wp_insert_in_post_ad_'.$in_post_adID.'_enable,wp_insert_in_post_ad_'.$in_post_adID.'_content,wp_insert_in_post_ad_'.$in_post_adID.'_exclude_ids,wp_insert_in_post_ad_'.$in_post_adID.'_exclude_home,wp_insert_in_post_ad_'.$in_post_adID.'_exclude_archives,';
131
  }
132
 
133
  function wp_insert_in_post_ad_HTML($in_post_adID) { ?>
@@ -139,12 +139,12 @@ function wp_insert_in_post_ad_HTML($in_post_adID) { ?>
139
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content">Ad Code:</label>
140
  <textarea id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content" class="widefat" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content" cols="20" rows="16"><?php echo get_option('wp_insert_in_post_ad_'.$in_post_adID.'_content'); ?></textarea>
141
  </p>
142
- <p>
143
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids">Exclude On Posts/Pages:</label><div class="clear"></div>
144
- <input style="float:left; width:60%; margin: 0 6px;" class="widefat" type="text" value="<?php echo get_option('wp_insert_in_post_ad_'.$in_post_adID.'_exclude_ids'); ?>" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids" />
145
- <img style="float:left; margin-top:4px; cursor: pointer;" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/images/search-16x16.png" width="16px" height="16px" onclick="ShowPostPicker('wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids')" />
146
  <div class="clear"></div>
147
- </p>
148
  <p>
149
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_home">Exclude On Home Page:</label>
150
  <input id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_home" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_home" type="checkbox" value="1"<?php if(get_option('wp_insert_in_post_ad_'.$in_post_adID.'_exclude_home')) echo ' checked="checked"'; ?> />
@@ -153,6 +153,12 @@ function wp_insert_in_post_ad_HTML($in_post_adID) { ?>
153
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_archives">Exclude On Archives Pages:</label>
154
  <input id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_archives" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_archives" type="checkbox" value="1"<?php if(get_option('wp_insert_in_post_ad_'.$in_post_adID.'_exclude_archives')) echo ' checked="checked"'; ?> />
155
  </p>
 
 
 
 
 
 
156
  </div>
157
  <?php }
158
 
98
  <div id="post-body-content" class="has-sidebar-content">
99
  <?php do_meta_boxes('inPostAds','advanced',null); ?>
100
  <input type="hidden" name="action" value="update" />
101
+ <input type="hidden" name="page_options" value="<?php wp_insert_in_post_ad_parameters('middle_1'); wp_insert_in_post_ad_parameters('right_1'); wp_insert_in_post_ad_parameters('left_1'); wp_insert_in_post_ad_parameters('bottom_1'); wp_insert_in_post_ad_parameters('top_1'); wp_insert_ad_widget_parameters(1); wp_insert_ad_widget_parameters(2); wp_insert_ad_widget_parameters(3); wp_insert_ad_widget_parameters(4); wp_insert_ad_widget_parameters(5); wp_insert_ad_widget_parameters(6); wp_insert_ad_widget_parameters(7); wp_insert_ad_widget_parameters(8); wp_insert_ad_widget_parameters(9); wp_insert_ad_widget_parameters(10); ?>" />
102
  <p class="submit">
103
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
104
  </p>
127
  }
128
 
129
  function wp_insert_in_post_ad_parameters($in_post_adID) {
130
+ echo 'wp_insert_in_post_ad_'.$in_post_adID.'_enable,wp_insert_in_post_ad_'.$in_post_adID.'_content,wp_insert_in_post_ad_'.$in_post_adID.'_exclude_ids,wp_insert_in_post_ad_'.$in_post_adID.'_exclude_home,wp_insert_in_post_ad_'.$in_post_adID.'_exclude_archives,wp_insert_in_post_ad_'.$in_post_adID.'_style,';
131
  }
132
 
133
  function wp_insert_in_post_ad_HTML($in_post_adID) { ?>
139
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content">Ad Code:</label>
140
  <textarea id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content" class="widefat" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content" cols="20" rows="16"><?php echo get_option('wp_insert_in_post_ad_'.$in_post_adID.'_content'); ?></textarea>
141
  </p>
142
+ <div style="margin:6px;">
143
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids">Exclude On Posts/Pages:</label><div class="clear"></div>
144
+ <input style="margin: 10px 6px 0pt; float: left; width: 60%;" class="widefat" type="text" value="<?php echo get_option('wp_insert_in_post_ad_'.$in_post_adID.'_exclude_ids'); ?>" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids" />
145
+ <img style="float:left; margin-top:14px; cursor: pointer;" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/images/search-16x16.png" width="16px" height="16px" onclick="ShowPostPicker('wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids')" />
146
  <div class="clear"></div>
147
+ </div>
148
  <p>
149
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_home">Exclude On Home Page:</label>
150
  <input id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_home" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_home" type="checkbox" value="1"<?php if(get_option('wp_insert_in_post_ad_'.$in_post_adID.'_exclude_home')) echo ' checked="checked"'; ?> />
153
  <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_archives">Exclude On Archives Pages:</label>
154
  <input id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_archives" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_archives" type="checkbox" value="1"<?php if(get_option('wp_insert_in_post_ad_'.$in_post_adID.'_exclude_archives')) echo ' checked="checked"'; ?> />
155
  </p>
156
+ <div style="margin:6px;padding: 6px;border: 1px solid #DDDDDD;">
157
+ <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_style">Ad Box CSS Styler (Advanced Users Only)</label><div class="clear"></div>
158
+ <input style="float:left; width:60%; margin: 10px 6px 0pt;background: #FFEEEE;" class="widefat" type="text" value="<?php if(get_option('wp_insert_in_post_ad_'.$in_post_adID.'_style') != '') { echo get_option('wp_insert_in_post_ad_'.$in_post_adID.'_style'); } else { echo 'margin: 5px;padding: 0px;'; } ?>" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_style" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_style" />
159
+ <img style="float:left; margin-top:14px; cursor: pointer;" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/images/style-16x16.png" width="0px" height="0px" onclick="ShowStyler('wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_style')" />
160
+ <div class="clear"></div>
161
+ </div>
162
  </div>
163
  <?php }
164
 
includes/inpostads.php CHANGED
@@ -22,82 +22,92 @@ function wp_insert_filter_content_ads($content, $ad_ID) {
22
  /*End of Finding a appropriate position near the middle of the content to insert the ad*/
23
 
24
  if ($middle > 2) {
 
 
25
  if(!get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
26
- $content = substr_replace($content, '<div id="in_post_ad_middle_'.$ad_ID.'" style="margin:5px;">'.get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_content').'</div>'.$trigger, $triggerpoint, 2);
27
  }
28
  else if(!get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
29
- $content = substr_replace($content, '<div id="in_post_ad_middle_'.$ad_ID.'" style="margin:5px;">'.get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_content').'</div>'.$trigger, $triggerpoint, 2);
30
  }
31
  else {
32
  if(is_singular()) {
33
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_exclude_ids')));
34
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
35
- $content = substr_replace($content, '<div id="in_post_ad_middle_'.$ad_ID.'" style="margin:5px;">'.get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_content').'</div>'.$trigger, $triggerpoint, 2);
36
  }
37
  }
38
  }
39
  }
40
  }
41
  if(get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_enable')) {
 
 
42
  if(!get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
43
- $output .= '<div id="in_post_ad_top_'.$ad_ID.'" style="margin:5px;">'.get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_content').'</div>';
44
  }
45
  else if(!get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
46
- $output .= '<div id="in_post_ad_top_'.$ad_ID.'" style="margin:5px;">'.get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_content').'</div>';
47
  }
48
  else {
49
  if(is_singular()) {
50
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_exclude_ids')));
51
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
52
- $output .= '<div id="in_post_ad_top_'.$ad_ID.'" style="margin:5px;">'.get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_content').'</div>';
53
  }
54
  }
55
  }
56
  }
57
  if(get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_enable')) {
 
 
58
  if(!get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
59
- $output .= '<div id="in_post_ad_left_'.$ad_ID.'" style="margin:5px;float:left;">'.get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_content').'</div>';
60
  }
61
  else if(!get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
62
- $output .= '<div id="in_post_ad_left_'.$ad_ID.'" style="margin:5px;float:left;">'.get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_content').'</div>';
63
  }
64
  else {
65
  if(is_singular()) {
66
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_exclude_ids')));
67
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
68
- $output .= '<div id="in_post_ad_left_'.$ad_ID.'" style="margin:5px;float:left;">'.get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_content').'</div>';
69
  }
70
  }
71
  }
72
  }
73
  if(get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_enable')) {
 
 
74
  if(!get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
75
- $output .= '<div id="in_post_ad_right_'.$ad_ID.'" style="margin:5px;float:right;">'.get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_content').'</div>';
76
  }
77
  else if(!get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
78
- $output .= '<div id="in_post_ad_right_'.$ad_ID.'" style="margin:5px;float:right;">'.get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_content').'</div>';
79
  }
80
  else {
81
  if(is_singular()) {
82
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_exclude_ids')));
83
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
84
- $output .= '<div id="in_post_ad_right_'.$ad_ID.'" style="margin:5px;float:right;">'.get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_content').'</div>';
85
  }
86
  }
87
  }
88
  }
89
  if(get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_enable')) {
 
 
90
  if(!get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
91
- $content .= '<div id="in_post_ad_bottom_'.$ad_ID.'" style="margin:5px;clear:both;">'.get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_content').'</div>';
92
  }
93
  else if(!get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
94
- $content .= '<div id="in_post_ad_bottom_'.$ad_ID.'" style="margin:5px;clear:both;">'.get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_content').'</div>';
95
  }
96
  else {
97
  if(is_singular()) {
98
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_exclude_ids')));
99
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
100
- $content .= '<div id="in_post_ad_bottom_'.$ad_ID.'" style="margin:5px;clear:both;">'.get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_content').'</div>';
101
  }
102
  }
103
  }
22
  /*End of Finding a appropriate position near the middle of the content to insert the ad*/
23
 
24
  if ($middle > 2) {
25
+ $ad_style = get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_style');
26
+ if($ad_style == '') { $ad_style = 'margin: 5px; padding: 0px;'; }
27
  if(!get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
28
+ $content = substr_replace($content, '<div id="in_post_ad_middle_'.$ad_ID.'" style="'.$ad_style.'">'.get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_content').'</div>'.$trigger, $triggerpoint, 2);
29
  }
30
  else if(!get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
31
+ $content = substr_replace($content, '<div id="in_post_ad_middle_'.$ad_ID.'" style="'.$ad_style.'">'.get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_content').'</div>'.$trigger, $triggerpoint, 2);
32
  }
33
  else {
34
  if(is_singular()) {
35
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_exclude_ids')));
36
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
37
+ $content = substr_replace($content, '<div id="in_post_ad_middle_'.$ad_ID.'" style="'.$ad_style.'">'.get_option('wp_insert_in_post_ad_middle_'.$ad_ID.'_content').'</div>'.$trigger, $triggerpoint, 2);
38
  }
39
  }
40
  }
41
  }
42
  }
43
  if(get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_enable')) {
44
+ $ad_style = get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_style');
45
+ if($ad_style == '') { $ad_style = 'margin: 5px; padding: 0px;'; }
46
  if(!get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
47
+ $output .= '<div id="in_post_ad_top_'.$ad_ID.'" style="'.$ad_style.'">'.get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_content').'</div>';
48
  }
49
  else if(!get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
50
+ $output .= '<div id="in_post_ad_top_'.$ad_ID.'" style="'.$ad_style.'">'.get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_content').'</div>';
51
  }
52
  else {
53
  if(is_singular()) {
54
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_exclude_ids')));
55
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
56
+ $output .= '<div id="in_post_ad_top_'.$ad_ID.'" style="'.$ad_style.'">'.get_option('wp_insert_in_post_ad_top_'.$ad_ID.'_content').'</div>';
57
  }
58
  }
59
  }
60
  }
61
  if(get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_enable')) {
62
+ $ad_style = get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_style');
63
+ if($ad_style == '') { $ad_style = 'margin: 5px; padding: 0px;'; }
64
  if(!get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
65
+ $output .= '<div id="in_post_ad_left_'.$ad_ID.'" style="float:left;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_content').'</div>';
66
  }
67
  else if(!get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
68
+ $output .= '<div id="in_post_ad_left_'.$ad_ID.'" style="float:left;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_content').'</div>';
69
  }
70
  else {
71
  if(is_singular()) {
72
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_exclude_ids')));
73
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
74
+ $output .= '<div id="in_post_ad_left_'.$ad_ID.'" style="float:left;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_left_'.$ad_ID.'_content').'</div>';
75
  }
76
  }
77
  }
78
  }
79
  if(get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_enable')) {
80
+ $ad_style = get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_style');
81
+ if($ad_style == '') { $ad_style = 'margin: 5px; padding: 0px;'; }
82
  if(!get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
83
+ $output .= '<div id="in_post_ad_right_'.$ad_ID.'" style="float:right;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_content').'</div>';
84
  }
85
  else if(!get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
86
+ $output .= '<div id="in_post_ad_right_'.$ad_ID.'" style="float:right;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_content').'</div>';
87
  }
88
  else {
89
  if(is_singular()) {
90
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_exclude_ids')));
91
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
92
+ $output .= '<div id="in_post_ad_right_'.$ad_ID.'" style="float:right;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_right_'.$ad_ID.'_content').'</div>';
93
  }
94
  }
95
  }
96
  }
97
  if(get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_enable')) {
98
+ $ad_style = get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_style');
99
+ if($ad_style == '') { $ad_style = 'margin: 5px; padding: 0px;'; }
100
  if(!get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_exclude_home') && ($page_details == 'HOME')) {
101
+ $content .= '<div id="in_post_ad_bottom_'.$ad_ID.'" style="clear:both;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_content').'</div>';
102
  }
103
  else if(!get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
104
+ $content .= '<div id="in_post_ad_bottom_'.$ad_ID.'" style="clear:both;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_content').'</div>';
105
  }
106
  else {
107
  if(is_singular()) {
108
  $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_exclude_ids')));
109
  if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
110
+ $content .= '<div id="in_post_ad_bottom_'.$ad_ID.'" style="clear:both;'.$ad_style.'">'.get_option('wp_insert_in_post_ad_bottom_'.$ad_ID.'_content').'</div>';
111
  }
112
  }
113
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Namith Jawahar
3
  Donate link: http://smartlogix.co.in/
4
  Tags: adsense,google,widget,post,admin,plugin,rss,feedburner,ads,subscribe,fck editor,category description editor,excerpt,WYSIWYG,WYSIWYG editor,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,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
5
  Requires at least: 2.7
6
- Tested up to: 2.8.4
7
- Stable tag: 1.3.1
8
 
9
  WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin
10
 
@@ -28,6 +28,7 @@ Manage Ads (Completely Rewritten with a New and Powerful Interface)<br/>
28
  * Option to control each and every ad<br/>
29
  Ten ad widgets at your disposal <br/>
30
  * Go to the widgets page under "Appearance" and place the widgets onto the sidebars you want the ads to appear onto <br/>
 
31
  <br/>
32
  <br/>
33
  Manage Feeds<br/>
3
  Donate link: http://smartlogix.co.in/
4
  Tags: adsense,google,widget,post,admin,plugin,rss,feedburner,ads,subscribe,fck editor,category description editor,excerpt,WYSIWYG,WYSIWYG editor,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,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
5
  Requires at least: 2.7
6
+ Tested up to: 2.8.5
7
+ Stable tag: 1.3.3
8
 
9
  WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin
10
 
28
  * Option to control each and every ad<br/>
29
  Ten ad widgets at your disposal <br/>
30
  * Go to the widgets page under "Appearance" and place the widgets onto the sidebars you want the ads to appear onto <br/>
31
+ * Option to style the Ads <br/>
32
  <br/>
33
  <br/>
34
  Manage Feeds<br/>
wp-insert.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: wp-insert
4
  Plugin URI: http://www.smartlogix.co.in/
5
  Description: The ultimate wordpress plugin
6
- Version: 1.3.1
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin
3
  Plugin Name: wp-insert
4
  Plugin URI: http://www.smartlogix.co.in/
5
  Description: The ultimate wordpress plugin
6
+ Version: 1.3.3
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
  WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin