get_language(); $options['tld'] = $this->get_tld(); $user = QypeUser::find_by_login($options['username']); $options['userid'] = $user->get_id(); include ($this->getDisplayTemplate('button-widget/widget-display.php')); } /** * Contains the widget control html */ function qype_widget_control() { $options = $newoptions = get_option('qype-button-widget'); if ( $_POST["qype-submit"] ) { $newoptions['username'] = strip_tags(stripslashes($_POST['qype-button-widget-username'])); $newoptions['size'] = $_POST['qype-button-widget-size']; } if ( $options != $newoptions ) { $options = $newoptions; update_option('qype-button-widget', $options); } include(dirname(__FILE__).'/widget-options.php'); } } ?>