'.pt_replacevideo($mediaid, $content).'
'; echo $after_widget; } /*********************************************************************************/ /* wordTube widget control /*********************************************************************************/ function web_wordtube_control() { global $wpdb; $options = get_option('web_wordtube'); if ( !is_array($options) ) $options = array('title'=>'', '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 ''; } /*********************************************************************************/ /* Simple forum widget /*********************************************************************************/ function web_forum($args) { extract($args); $options = get_option('web_forum'); $title = empty($options['title']) ? __('Forum', 'post-thumb') : $options['title']; ?>