PluginProbe
Wp-Insert / 1.3.0
Wp-Insert v1.3.0
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 / adwidgets.php

adwidgets.php in Wp-Insert 1.3.0, at includes/adwidgets.php

43 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 function wp_insert_ad_widget_create($widgetID, $args) {
3 extract($args);
4 $page_details = wp_insert_get_current_page_details();
5 if(!get_option('wp_insert_ad_widget_'.$widgetID.'_exclude_home') && ($page_details == 'HOME')) {
6 $title = get_option('wp_insert_ad_widget_'.$widgetID.'_title');
7 echo $before_widget;
8 if($title != "") { echo $before_title.$title.$after_title; }
9 echo get_option('wp_insert_ad_widget_'.$widgetID.'_content');
10 echo $after_widget;
11 }
12 else if(!get_option('wp_insert_ad_widget_'.$widgetID.'_exclude_archives') && ($page_details == 'ARCHIVE')) {
13 $title = get_option('wp_insert_ad_widget_'.$widgetID.'_title');
14 echo $before_widget;
15 if($title != "") { echo $before_title.$title.$after_title; }
16 echo get_option('wp_insert_ad_widget_'.$widgetID.'_content');
17 echo $after_widget;
18 }
19 else {
20 if(is_singular()) {
21 $page_ids = explode(',', str_replace(" ", "", get_option('wp_insert_ad_widget_'.$widgetID.'_exclude_ids')));
22 if(wp_insert_is_in_array($page_details, $page_ids) =='FALSE') {
23 $title = get_option('wp_insert_ad_widget_'.$widgetID.'_title');
24 echo $before_widget;
25 if($title != "") { echo $before_title.$title.$after_title; }
26 echo get_option('wp_insert_ad_widget_'.$widgetID.'_content');
27 echo $after_widget;
28 }
29 }
30 }
31 }
32
33 function wp_insert_ad_widget_1_create($args) { wp_insert_ad_widget_create(1, $args); }
34 function wp_insert_ad_widget_2_create($args) { wp_insert_ad_widget_create(2, $args); }
35 function wp_insert_ad_widget_3_create($args) { wp_insert_ad_widget_create(3, $args); }
36 function wp_insert_ad_widget_4_create($args) { wp_insert_ad_widget_create(4, $args); }
37 function wp_insert_ad_widget_5_create($args) { wp_insert_ad_widget_create(5, $args); }
38 function wp_insert_ad_widget_6_create($args) { wp_insert_ad_widget_create(6, $args); }
39 function wp_insert_ad_widget_7_create($args) { wp_insert_ad_widget_create(7, $args); }
40 function wp_insert_ad_widget_8_create($args) { wp_insert_ad_widget_create(8, $args); }
41 function wp_insert_ad_widget_9_create($args) { wp_insert_ad_widget_create(9, $args); }
42 function wp_insert_ad_widget_10_create($args) { wp_insert_ad_widget_create(10, $args); }
43 ?>