". "". "". "". "". "". "". ""; return $content."
".$obj; } function AddFeedwebColumn($columns) { // Check if user is admin if (current_user_can('manage_options')) $columns['feedweb'] = "Feedweb Widget"; return $columns; } function FillFeedwebCell($id) { // First, find out if a wiget has been created already $pac = GetPac($id); echo "
"; if ($pac == null) // Not created yet - display 'Insert' button { $url = plugin_dir_url(__FILE__)."widget_dialog.php?wp_post_id=".$id."&KeepThis=true&TB_iframe=true&height=345&width=675"; echo ""; } else // Created - display 'Remove' button { $url = plugin_dir_url(__FILE__)."widget_remove.php?wp_post_id=".$id."&KeepThis=true&TB_iframe=true&height=125&width=575"; echo ""; } echo "
"; } function FillFeedwebColumn($column_name, $id) { switch ($column_name) { case 'feedweb' : FillFeedwebCell($id); break; } } function InitTheme() { add_thickbox(); } function FeedwebPluginMenu() { add_options_page('Feedweb Plugin Options', 'Feedweb', 'manage_options', basename(__FILE__), 'FeedwebPluginOptions'); } function BuildLanguageBox($language) { $languages = array("en"=>"English", "fr"=>"French", "ru"=>"Russian"); echo ""; } function BuildDelayBox($delay) { $values = array("0"=>"No Delay", "1"=>"1 Hour", "2"=>"2 Hours", "5"=>"5 Hours"); echo ""; } function FeedwebPluginOptions() { if (!current_user_can('manage_options')) wp_die( __('You do not have sufficient permissions to access this page.') ); // Read options $feedweb_data = GetFeedwebOptions(); ?>

Feedweb Plugin Settings

Widget Language: Don't find your language? Help us translate the widget for you!
Widget width (pixels): Allowed width: 350 to 700 pixels. Recommended width: 380 to 440 pixels.
Widgets at the Home/Front Page: id="MPWidgetsBox" name="MPWidgetsBox" type="checkbox" onchange='OnCheckMPWidgets()'> Display Widgets Check to display the widgets both in the Front Page and the single post pages.
Delay displaying results: Set the period of time you want to hide voting results after the widget is created.
Settings"; array_unshift($links, $settings_link); return $links; } add_action('init', 'InitTheme'); add_filter('the_content', 'ContentFilter'); add_filter( 'manage_posts_columns', 'AddFeedwebColumn'); add_action( 'manage_posts_custom_column', 'FillFeedwebColumn', 10, 2 ); $feedweb_plugin = plugin_basename(__FILE__); add_action('admin_menu', 'FeedwebPluginMenu'); add_filter("plugin_action_links_$feedweb_plugin", 'FeedwebSettingsLink' ); ?>