'', 'mediaid'=>'0');
if ( $_POST['wordtube-submit'] )
{
$options['title'] = strip_tags(stripslashes($_POST['wordtube-title']));
$options['mediaid'] = $_POST['wordtube-mediaid'];
update_option('web_wordtube', $options);
}
$title = htmlspecialchars($options['title'], ENT_QUOTES);
// The Box content
echo '
';
echo '';
echo '
';
echo '';
}
register_sidebar_widget ( 'pt-wordTube', 'web_wordTube', 'wid-wordtube');
register_widget_control ( 'pt-wordTube', 'web_wordtube_control', 300, 100);
}
/*********************************************************************************/
/* Simple forum widget
/*********************************************************************************/
if (function_exists('sf_recent_posts_tag')) {
function web_forum($args)
{
extract($args);
$options = get_option('web_forum');
$title = empty($options['title']) ? __('Forum', 'post-thumb') : $options['title'];
?>
'.$html.'>'; ?>
'.$html.'>'; ?>
'.$html.'>'; ?>
'.$html.'>'; ?>
'.$html.'>'; ?>
') : $options['html_title_before'];
$a = empty($options['html_title_after']) ? __('') : $options['html_title_after'];
$title = empty($options['title']) ? __('Blogroll') : $options['title'];
if (is_home()) {
echo $before_widget;
echo $before_title . $title . $after_title;
echo '';
pt_list_bookmarks('title_before='.$b.'&title_after='.$a);
echo '
';
echo $after_widget;
}
}
/*********************************************************************************/
/* pt-bookmarks widget control
/*********************************************************************************/
function web_bookmarks_control()
{
$options = $newoptions = get_option('web_bookmarks');
if ( $_POST['bookmarks-submit'] )
{
$newoptions['title'] = strip_tags(stripslashes($_POST['bookmarks-title']));
$newoptions['html_title_before'] = stripslashes($_POST['bookmarks-before']);
$newoptions['html_title_after'] = stripslashes($_POST['bookmarks-after']);
}
if ( $options != $newoptions )
{
$options = $newoptions;
update_option('web_bookmarks', $options);
}
$title = wp_specialchars($options['title']);
$html_title_before = wp_specialchars($options['html_title_before']);
$html_title_after = $options['html_title_after'];
?>