PluginProbe
Wp-Insert / 1.4
Wp-Insert v1.4
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / includes / ads.php

ads.php in Wp-Insert 1.4, at includes/ads.php

249 lines 20.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require_once (dirname(__FILE__) . '/adwidgets.php');
3 require_once (dirname(__FILE__) . '/inpostads.php');
4 // action function for above hook
5 function smart_add_menu() {
6 add_menu_page('Wp-Insert', 'Wp-Insert', 8, __FILE__);
7 add_submenu_page(__FILE__, 'wp-insert', 'Manage Ads', 8, __FILE__, 'wp_insert_add_adspage');
8 add_submenu_page(__FILE__, 'wp-insert', 'Manage Feeds', 8, 'Manage Feeds', 'smart_add_feedspage');
9 add_submenu_page(__FILE__, 'wp-insert', 'Tracking Codes', 8, 'Tracking Codes', 'smart_add_analytics');
10 add_submenu_page(__FILE__, 'wp-insert', 'WYSIWYG Editor', 8, 'WYSIWYG Editor', 'smart_add_wysiwyg_pages');
11 add_submenu_page(__FILE__, 'wp-insert', 'Syntax Highlighting', 8, 'Syntax Highlighting', 'smart_add_syntaxhighlighting_pages');
12 //add_submenu_page(__FILE__, 'wp-insert', 'Tracking Codes', 8, 'Manage Feeds', 'wp_insert_add_trackingpage');
13 //ensure, that the needed javascripts been loaded to allow drag/drop, expand/collapse and hide/show of boxes
14 wp_enqueue_script('common');
15 wp_enqueue_script('wp-lists');
16 wp_enqueue_script('postbox');
17 //$columns[$screen] = 2;
18 }
19
20 function wp_insert_add_adspage() {
21 global $screen_layout_columns;
22
23 add_meta_box('wp_insert_ad_widget_1', 'Ad Widget : 1', 'wp_insert_ad_widget_1_HTML', 'adWidgets');
24 add_meta_box('wp_insert_ad_widget_2', 'Ad Widget : 2', 'wp_insert_ad_widget_2_HTML', 'adWidgets');
25 add_meta_box('wp_insert_ad_widget_3', 'Ad Widget : 3', 'wp_insert_ad_widget_3_HTML', 'adWidgets');
26 add_meta_box('wp_insert_ad_widget_4', 'Ad Widget : 4', 'wp_insert_ad_widget_4_HTML', 'adWidgets');
27 add_meta_box('wp_insert_ad_widget_5', 'Ad Widget : 5', 'wp_insert_ad_widget_5_HTML', 'adWidgets');
28 add_meta_box('wp_insert_ad_widget_6', 'Ad Widget : 6', 'wp_insert_ad_widget_6_HTML', 'adWidgets');
29 add_meta_box('wp_insert_ad_widget_7', 'Ad Widget : 7', 'wp_insert_ad_widget_7_HTML', 'adWidgets');
30 add_meta_box('wp_insert_ad_widget_8', 'Ad Widget : 8', 'wp_insert_ad_widget_8_HTML', 'adWidgets');
31 add_meta_box('wp_insert_ad_widget_9', 'Ad Widget : 9', 'wp_insert_ad_widget_9_HTML', 'adWidgets');
32 add_meta_box('wp_insert_ad_widget_10', 'Ad Widget : 10', 'wp_insert_ad_widget_10_HTML', 'adWidgets');
33
34 add_meta_box('wp_insert_multiple_ad_network', 'Multiple Ad Networks', 'wp_insert_multiple_ad_network_HTML', 'inPostAds');
35 add_meta_box('wp_insert_in_post_ad_top_1', 'Ad - Above Post Content', 'wp_insert_in_post_ad_top_1_HTML', 'inPostAds');
36 //add_meta_box('wp_insert_in_post_ad_top_2', 'Ad - Above Post Content : 2', 'wp_insert_in_post_ad_top_2_HTML', 'inPostAds');
37 add_meta_box('wp_insert_in_post_ad_bottom_1', 'Ad - Below Post Content', 'wp_insert_in_post_ad_bottom_1_HTML', 'inPostAds');
38 //add_meta_box('wp_insert_in_post_ad_bottom_2', 'Ad - Below Post Content : 2', 'wp_insert_in_post_ad_bottom_2_HTML', 'inPostAds');
39 add_meta_box('wp_insert_in_post_ad_left_1', 'Ad - Left of Post Content', 'wp_insert_in_post_ad_left_1_HTML', 'inPostAds');
40 //add_meta_box('wp_insert_in_post_ad_left_2', 'Ad - Left of Post Content : 2', 'wp_insert_in_post_ad_left_2_HTML', 'inPostAds');
41 add_meta_box('wp_insert_in_post_ad_right_1', 'Ad - Right of Post Content', 'wp_insert_in_post_ad_right_1_HTML', 'inPostAds');
42 //add_meta_box('wp_insert_in_post_ad_right_2', 'Ad - Right of Post Content : 2', 'wp_insert_in_post_ad_right_2_HTML', 'inPostAds');
43 add_meta_box('wp_insert_in_post_ad_middle_1', 'Ad - Middle of Post Content', 'wp_insert_in_post_ad_middle_1_HTML', 'inPostAds');
44 //add_meta_box('wp_insert_in_post_ad_middle_2', 'Ad - Middle of Post Content : 2', 'wp_insert_in_post_ad_middle_2_HTML', 'inPostAds');
45 ?>
46 <div id="post_ads_container" class="wrap">
47 <?php screen_icon('options-general'); ?>
48 <h2>WP-INSERT : Manage Ads</h2>
49 <div class="updated fade below-h2" id="message" style="opacity:0;display:none;"><p>Changes have been made to this page. Please click <b>Save Changes</b> to make them permanent</p></div>
50 <?php show_support_options(); ?>
51 <form method="post" action="options.php">
52 <?php
53 wp_nonce_field('update-options');
54 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
55 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
56 ?>
57 <script type="text/javascript" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/js/jquery/ui.core.js"></script>
58 <script type="text/javascript" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/js/jquery/ui.draggable.js"></script>
59 <script type="text/javascript" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/js/jquery/jquery.corner.js"></script>
60 <?php require_once (dirname(__FILE__) . '/postpicker.php'); ?>
61
62 <script type="text/javascript" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/js/common.js"></script>
63 <style type="text/css">
64 .GreyOutLayer
65 {
66 position: absolute;
67 top: 0px;
68 left: 0px;
69 width: 100%;
70 height: 100%;
71 bottom: 0px;
72 background-color: #666;
73 z-index: 100;
74 filter: progid:DXImageTransform.Microsoft.Alpha(opacity = 30);
75 opacity: 0.30;
76 }
77
78 #popUpMaster{position:relative;padding:10px 0 0 10px;display:none}
79 #popUpTopLft{position:absolute;left:0px;top:0}
80 #popUpTop{position:absolute;left:10px;top:0;height:36px;z-index:9}
81 #popUpTopRgt{position:absolute;right:0px;top:0;z-index:9}
82 #popUpLft{position:absolute;left:0px;top:30px;width:17px;}
83 #popUpRgt{position:absolute;right:0px;top:36px;width:26px;}
84 #popUpBtmLft{position:absolute;left:0px;bottom:0px;}
85 #popUpBtm{position:absolute;left:17px;bottom:0px;height:20px}
86 #popUpBtmRgt{position:absolute;right:0px;bottom:0px;}
87 #content{background:#F2F2F2;height:520px;width:725px;margin:0px;z-index:100;position:absolute;top:26px;right:15px;}
88 .closePopUp{display:block;position:absolute;right:10px;top:4px;width:20px;height:18px;z-index:10;text-decoration:none;background:none}
89 #popUpMaster h4{position:absolute;top:0;left:0;z-index:10;padding:0;margin:6px 0 0 10px;color:#333333;text-shadow:0 1px 0 #FFFFFF;
90 font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:15px;cursor:move;background:nonImage.gif;
91 width:100%}
92 </style>
93
94 <div id="poststuff" class="metabox-holder has-right-sidebar">
95 <div id="side-info-column" class="inner-sidebar">
96 <?php do_meta_boxes('adWidgets','advanced',null); ?>
97 </div>
98 <div id="post-body" class="has-sidebar">
99 <div id="post-body-content" class="has-sidebar-content">
100 <?php do_meta_boxes('inPostAds','advanced',null); ?>
101 <input type="hidden" name="action" value="update" />
102 <input type="hidden" name="page_options" value="wp_insert_multiple_ad_network_type,<?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); ?>" />
103 <p class="submit">
104 <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
105 </p>
106 <p>
107 <a href="http://www.smartlogix.co.in/"><img src="http://www.smartlogix.co.in/ads/random/rotate.php" border="0" /></a>
108 </p>
109 </div>
110 </div>
111 <br class="clear"/>
112 </div>
113 </form>
114 </div>
115 <script type="text/javascript">
116 //<![CDATA[
117 jQuery(document).ready( function($) {
118 // close postboxes that should be closed
119 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
120 jQuery('.postbox').addClass('closed');
121 // postboxes setup
122 postboxes.add_postbox_toggles('wp-insert');
123 });
124 //]]>
125 </script>
126 </div>
127 <?php
128 }
129
130 function wp_insert_multiple_ad_network_HTML() {
131 if(!get_option('wp_insert_multiple_ad_network_type')) { add_option("wp_insert_multiple_ad_network_type", 'Primary Ad Network Only', '', 'yes'); }
132 ?>
133 <div>
134 Select the Multiple Ad Network Setup that best suits you : <select name="wp_insert_multiple_ad_network_type" id="wp_insert_multiple_ad_network_type">
135 <?php
136 $multiple_ad_network_types = array("Primary Ad Network Only","Primary and Alternate Ad Network 1","All Ad Networks");
137 $output = '';
138 foreach ($multiple_ad_network_types as $multiple_ad_network_type) {
139 $output .= '<option';
140 if ( get_option('wp_insert_multiple_ad_network_type') == $multiple_ad_network_type) { $output .= ' selected="selected"'; }
141 $output .= '>'.$multiple_ad_network_type.'</option>';
142 }
143 echo $output;
144 ?>
145 </select>
146 <p>
147 <small>Multiple Ad Networks can be setup to display ads from different networks without infringing the terms of any network.<br/>At a time only ads from one network (Randomly Choosen) will be shown.<br/>This feature can also be used to randomly display different sized Ads from the same network.</small>
148 </p>
149 </div>
150 <?php }
151
152 function wp_insert_in_post_ad_parameters($in_post_adID) {
153 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.'_content_1,wp_insert_in_post_ad_'.$in_post_adID.'_content_2,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,';
154 }
155
156 function wp_insert_in_post_ad_HTML($in_post_adID) { ?>
157 <div>
158 <?php if(get_option('wp_insert_in_post_ad_'.$in_post_adID.'_enable')) { ?><input type="button" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable_button" value="Click to Deactivate" class="button" style="font-weight:bold;color:red;" onclick="wpInsertToggleAdWidget('#wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable_button', '#wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable')"/>
159 <?php } else { ?><input type="button" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable_button" value="Click to Activate" class="button" style="font-weight:bold;color:#2f9303;" onclick="wpInsertToggleAdWidget('#wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable_button', '#wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable')"/><?php } ?>
160 <input style="display:none;" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_enable" type="checkbox" value="1"<?php if(get_option('wp_insert_in_post_ad_'.$in_post_adID.'_enable')) echo ' checked="checked"'; ?> />
161
162 <div style="margin:10px 6px;">
163 <?php if((get_option('wp_insert_multiple_ad_network_type') == "Primary and Alternate Ad Network 1") || (get_option('wp_insert_multiple_ad_network_type') == "All Ad Networks")) { ?><input type="button" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_button" value="Primary Ad Code" class="button" style="color:#2f9303;" onclick="SwitchAds('wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content','wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_1','wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_2')"/> <?php } else {?><label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content">Primary Ad Code:</label><?php } ?>
164 <?php if((get_option('wp_insert_multiple_ad_network_type') == "Primary and Alternate Ad Network 1") || (get_option('wp_insert_multiple_ad_network_type') == "All Ad Networks")) { ?><input type="button" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_1_button" value="Alternative Ad Code : 1" class="button" style="color:red;" onclick="SwitchAds('wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_1','wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content','wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_2')"/> <?php } ?>
165 <?php if(get_option('wp_insert_multiple_ad_network_type') == "All Ad Networks") { ?><input type="button" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_2_button" value="Alternative Ad Code : 2" class="button" style="color:red;" onclick="SwitchAds('wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_2','wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_1','wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content')"/> <?php } ?>
166 <textarea style="display:block;height:315px;" 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>
167 <textarea style="display:none;height:0px;" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_1" class="widefat" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_1" cols="20" rows="16"><?php echo get_option('wp_insert_in_post_ad_'.$in_post_adID.'_content_1'); ?></textarea>
168 <textarea style="display:none;height:0px;" id="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_2" class="widefat" name="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_content_2" cols="20" rows="16"><?php echo get_option('wp_insert_in_post_ad_'.$in_post_adID.'_content_2'); ?></textarea>
169 </div>
170
171 <div style="margin:6px;">
172 <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_ids">Exclude On Posts/Pages:</label><div class="clear"></div>
173 <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" />
174 <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')" />
175 <div class="clear"></div>
176 </div>
177 <p>
178 <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_home">Exclude On Home Page:</label>
179 <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"'; ?> />
180 </p>
181 <p>
182 <label for="wp_insert_in_post_ad_<?php echo $in_post_adID; ?>_exclude_archives">Exclude On Archives Pages:</label>
183 <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"'; ?> />
184 </p>
185 <div style="margin:6px;padding: 6px;border: 1px solid #DDDDDD;">
186 <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>
187 <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" />
188 <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')" />
189 <div class="clear"></div>
190 </div>
191 </div>
192 <?php }
193
194 function wp_insert_in_post_ad_top_1_HTML() { wp_insert_in_post_ad_HTML("top_1"); }
195 //function wp_insert_in_post_ad_top_2_HTML() { wp_insert_in_post_ad_HTML("top_2"); }
196 function wp_insert_in_post_ad_bottom_1_HTML() { wp_insert_in_post_ad_HTML("bottom_1"); }
197 //function wp_insert_in_post_ad_bottom_2_HTML() { wp_insert_in_post_ad_HTML("bottom_2"); }
198 function wp_insert_in_post_ad_left_1_HTML() { wp_insert_in_post_ad_HTML("left_1"); }
199 //function wp_insert_in_post_ad_left_2_HTML() { wp_insert_in_post_ad_HTML("left_2"); }
200 function wp_insert_in_post_ad_right_1_HTML() { wp_insert_in_post_ad_HTML("right_1"); }
201 //function wp_insert_in_post_ad_right_2_HTML() { wp_insert_in_post_ad_HTML("right_2"); }
202 function wp_insert_in_post_ad_middle_1_HTML() { wp_insert_in_post_ad_HTML("middle_1"); }
203 //function wp_insert_in_post_ad_middle_2_HTML() { wp_insert_in_post_ad_HTML("middle_2"); }
204
205 function wp_insert_ad_widget_parameters($widgetID) {
206 echo 'wp_insert_ad_widget_'.$widgetID.'_enable,wp_insert_ad_widget_'.$widgetID.'_title,wp_insert_ad_widget_'.$widgetID.'_content,wp_insert_ad_widget_'.$widgetID.'_exclude_ids,wp_insert_ad_widget_'.$widgetID.'_exclude_home,wp_insert_ad_widget_'.$widgetID.'_exclude_archives,';
207 }
208
209 function ad_widget_HTML($widgetID) { ?>
210 <div>
211 <?php if(get_option('wp_insert_ad_widget_'.$widgetID.'_enable')) { ?><input type="button" id="wp_insert_ad_widget_<?php echo $widgetID; ?>_enable_button" value="Click to Deactivate" class="button" style="font-weight:bold;color:red;" onclick="wpInsertToggleAdWidget('#wp_insert_ad_widget_<?php echo $widgetID; ?>_enable_button', '#wp_insert_ad_widget_<?php echo $widgetID; ?>_enable')"/>
212 <?php } else { ?><input type="button" id="wp_insert_ad_widget_<?php echo $widgetID; ?>_enable_button" value="Click to Activate" class="button" style="font-weight:bold;color:#2f9303;" onclick="wpInsertToggleAdWidget('#wp_insert_ad_widget_<?php echo $widgetID; ?>_enable_button', '#wp_insert_ad_widget_<?php echo $widgetID; ?>_enable')"/><?php } ?>
213 <input style="display:none;" id="wp_insert_ad_widget_<?php echo $widgetID; ?>_enable" name="wp_insert_ad_widget_<?php echo $widgetID; ?>_enable" type="checkbox" value="1"<?php if(get_option('wp_insert_ad_widget_'.$widgetID.'_enable')) echo ' checked="checked"'; ?> />
214 <p>
215 <label for="wp_insert_ad_widget_<?php echo $widgetID; ?>_title">Title:</label>
216 <input id="wp_insert_ad_widget_<?php echo $widgetID; ?>_title" class="widefat" type="text" value="<?php echo get_option('wp_insert_ad_widget_'.$widgetID.'_title'); ?>" name="wp_insert_ad_widget_<?php echo $widgetID; ?>_title"/>
217 </p>
218 <p>
219 <label for="wp_insert_ad_widget_<?php echo $widgetID; ?>_content">Ad Code:</label>
220 <textarea id="wp_insert_ad_widget_<?php echo $widgetID; ?>_content" class="widefat" name="wp_insert_ad_widget_<?php echo $widgetID; ?>_content" cols="20" rows="16"><?php echo get_option('wp_insert_ad_widget_'.$widgetID.'_content'); ?></textarea>
221 </p>
222 <p>
223 <label for="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_ids">Exclude On Posts/Pages:</label><div class="clear"></div>
224 <input style="float:left; width:60%; margin: 0 6px;" class="widefat" type="text" value="<?php echo get_option('wp_insert_ad_widget_'.$widgetID.'_exclude_ids'); ?>" name="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_ids" id="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_ids" />
225 <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_ad_widget_<?php echo $widgetID; ?>_exclude_ids')" />
226 <div class="clear"></div>
227 </p>
228 <p>
229 <label for="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_home">Exclude On Home Page:</label>
230 <input id="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_home" name="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_home" type="checkbox" value="1"<?php if(get_option('wp_insert_ad_widget_'.$widgetID.'_exclude_home')) echo ' checked="checked"'; ?> />
231 </p>
232 <p>
233 <label for="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_archives">Exclude On Archives Pages:</label>
234 <input id="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_archives" name="wp_insert_ad_widget_<?php echo $widgetID; ?>_exclude_archives" type="checkbox" value="1"<?php if(get_option('wp_insert_ad_widget_'.$widgetID.'_exclude_archives')) echo ' checked="checked"'; ?> />
235 </p>
236 </div>
237 <?php }
238
239 function wp_insert_ad_widget_1_HTML() { ad_widget_HTML(1); }
240 function wp_insert_ad_widget_2_HTML() { ad_widget_HTML(2); }
241 function wp_insert_ad_widget_3_HTML() { ad_widget_HTML(3); }
242 function wp_insert_ad_widget_4_HTML() { ad_widget_HTML(4); }
243 function wp_insert_ad_widget_5_HTML() { ad_widget_HTML(5); }
244 function wp_insert_ad_widget_6_HTML() { ad_widget_HTML(6); }
245 function wp_insert_ad_widget_7_HTML() { ad_widget_HTML(7); }
246 function wp_insert_ad_widget_8_HTML() { ad_widget_HTML(8); }
247 function wp_insert_ad_widget_9_HTML() { ad_widget_HTML(9); }
248 function wp_insert_ad_widget_10_HTML() { ad_widget_HTML(10); }
249 ?>