'', 'description' => __('Konektor do ads.ranky.cz') ); $this->WP_Widget('widget', 'Ads.ranky.cz', $widget_ops); } function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags( $new_instance['title'] ); $instance['url'] = strip_tags( $new_instance['url'] ); $instance['template'] = $new_instance['template']; return $instance; } function form( $instance ) { $defaults = array( 'title' => '', 'template' => '
%2$s
get_description(), ENT_QUOTES, get_option('blog_charset')))); if ( empty($title) ) $title = esc_html(strip_tags($rss->get_title())); $link = esc_url(strip_tags($rss->get_permalink())); while ( stristr($link, 'http') != $link ) $link = substr($link, 1); } $title = apply_filters('widget_title', $title ); echo $before_widget; if ($title) echo $before_title . $title . $after_title; foreach ( $rss->get_items() as $item ) { printf( (!empty($instance['template']) ? $instance['template'] : '
%2$s