From 09d31c8edbbdbc8f8522846da21067c6391a2339 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 26 Apr 2007 17:17:30 +0000 Subject: [PATCH] Add dropdown option to archives and categories widgets. Props Joseph Scott. fixes #4194 for 2.2 git-svn-id: https://develop.svn.wordpress.org/trunk@5319 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 63 ++++++++++++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 13 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 78cb3d200a..e86e19d8e1 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -334,21 +334,32 @@ function wp_widget_archives($args) { extract($args); $options = get_option('widget_archives'); $c = $options['count'] ? '1' : '0'; + $d = $options['dropdown'] ? '1' : '0'; $title = empty($options['title']) ? __('Archives') : $options['title']; + + echo $before_widget; + echo $before_title . $title . $after_title; + + if($d) { ?> - - - - + + +

+

- - - - + + + + +

+

\ No newline at end of file +?>