--- widget-functions_orig.php +++ widget-functions.php @@ -239,6 +239,100 @@ 'widget_categories', 'description' => __('A dropdown categories widget', 'precious') ); + $this->WP_Widget('randomlinks', __('Dropdown categories', 'precious'), $widget_ops); + } + + function widget($args, $instance) { + extract($args); + $title = apply_filters('widget_title', empty($instance['title']) ? __('Categories', 'precious') : $instance['title']); + + echo $before_widget; + /*if ( $title ) + echo $before_title . $title . $after_title;*/ + ?> + + '', ) ); + $title = strip_tags($instance['title']); + $number = strip_tags($instance['number']); + + ?> +

+ +

+ 'widget_bookmarks', 'description' => __('A dropdown bookmarks widget', 'precious') ); + $this->WP_Widget('randomlinks1', __('Dropdown bookmarks', 'precious'), $widget_ops); + } + + function widget($args, $instance) { + extract($args); + $title = apply_filters('widget_title', empty($instance['title']) ? __('Bookmarks', 'precious') : $instance['title']); + + echo $before_widget; + /*if ( $title ) + echo $before_title . $title . $after_title;*/ + ?> + + '', ) ); + $title = strip_tags($instance['title']); + $number = strip_tags($instance['number']); + + ?> +

+ +

+