PluginProbe
Wp-Insert / 1.6.1
Wp-Insert v1.6.1
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 / widgethook.php

widgethook.php in Wp-Insert 1.6.1, at includes/widgethook.php

18 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 add_action("plugins_loaded", "wp_insert_register_widgets");
3
4 // Creating the dynamic widgets for the widgets page
5 function wp_insert_register_widgets() {
6 //Ad Widgets
7 if(get_option('wp_insert_ad_widget_1_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 1'), 'wp_insert_ad_widget_1_create'); }
8 if(get_option('wp_insert_ad_widget_2_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 2'), 'wp_insert_ad_widget_2_create'); }
9 if(get_option('wp_insert_ad_widget_3_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 3'), 'wp_insert_ad_widget_3_create'); }
10 if(get_option('wp_insert_ad_widget_4_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 4'), 'wp_insert_ad_widget_4_create'); }
11 if(get_option('wp_insert_ad_widget_5_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 5'), 'wp_insert_ad_widget_5_create'); }
12 if(get_option('wp_insert_ad_widget_6_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 6'), 'wp_insert_ad_widget_6_create'); }
13 if(get_option('wp_insert_ad_widget_7_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 7'), 'wp_insert_ad_widget_7_create'); }
14 if(get_option('wp_insert_ad_widget_8_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 8'), 'wp_insert_ad_widget_8_create'); }
15 if(get_option('wp_insert_ad_widget_9_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 9'), 'wp_insert_ad_widget_9_create'); }
16 if(get_option('wp_insert_ad_widget_10_enable')) { register_sidebar_widget(__('WP-INSERT : Ad Widget - 10'), 'wp_insert_ad_widget_10_create'); }
17 }
18 ?>