".
"".
"".
"".
"".
"".
"";
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();
?>