'Tierrecht', 'news' => '5', 'chars' => '30' ); } // RSS Objekt erzeugen $rss = simplexml_load_file( 'http://www.tierrecht.org/feed/'); ?> 'Tierrecht', 'news' => '5', 'chars' => '30' ); } echo $before_widget; echo $before_title; echo $options['title']; echo $after_title; tierrechtnews(); echo $after_widget; } function tierrechtnews_control() { $options = get_option("widget_tierrechtnews"); if (!is_array($options)){ $options = array( 'title' => 'Tierrecht', 'news' => '5', 'chars' => '30' ); } if($_POST['tierrechtnews-Submit']) { $options['title'] = htmlspecialchars($_POST['tierrechtnews-WidgetTitle']); $options['news'] = htmlspecialchars($_POST['tierrechtnews-NewsCount']); $options['chars'] = htmlspecialchars($_POST['tierrechtnews-CharCount']); update_option("widget_tierrechtnews", $options); } ?>