From db789c6f592c8e90a561abf6e767cc1fcbc7ef21 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 2 Nov 2006 22:12:13 +0000 Subject: [PATCH] category_before and category_after git-svn-id: http://svn.automattic.com/wordpress/trunk@4444 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/bookmark-template.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php index c1540a3b3a..7c31ce5e0a 100644 --- a/wp-includes/bookmark-template.php +++ b/wp-includes/bookmark-template.php @@ -319,7 +319,8 @@ function wp_list_bookmarks($args = '') { $defaults = array('orderby' => 'name', 'order' => 'ASC', 'limit' => -1, 'category' => '', 'category_name' => '', 'hide_invisible' => 1, 'show_updated' => 0, 'echo' => 1, 'categorize' => 1, 'title_li' => __('Bookmarks'), 'title_before' => '

', 'title_after' => '

', - 'category_orderby' => 'name', 'category_order' => 'ASC'); + 'category_orderby' => 'name', 'category_order' => 'ASC', 'class' => 'linkcat', + 'category_before' => '
  • ', 'category_after' => '
  • '); $r = array_merge($defaults, $r); extract($r); @@ -333,18 +334,20 @@ function wp_list_bookmarks($args = '') { $bookmarks = get_bookmarks("limit=$limit&category={$cat->cat_ID}&show_updated=$show_updated&orderby=$orderby&order=$order&hide_invisible=$hide_invisible&show_updated=$show_updated"); if ( empty($bookmarks) ) continue; - $output .= "
  • $title_before$cat->cat_name$title_after\n\t\n$category_after\n"; } } else { //output one single list using title_li for the title $bookmarks = get_bookmarks("limit=$limit&category=$category&show_updated=$show_updated&orderby=$orderby&order=$order&hide_invisible=$hide_inivisible&show_updated=$show_updated"); if ( !empty($bookmarks) ) { - $output .= "
  • $title_before$title_li$title_after\n\t\n$category_after\n"; } }