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