Make WordPress Core

Ticket #16353: bookmark-template.patch

File bookmark-template.patch, 1.2 KB (added by in2thats12, 15 years ago)

Add

  • bookmark-template.php

     
    3939 * 'between' - Default is '\n' (string). The string for use in between the link,
    4040 *              description, and image.
    4141 * 'show_rating' - Default is 0 (integer). Whether to show the link rating.
     42 * 'li_between' - Default is '' (string). The html or text to use between
     43 *      successive list elements, but not after the final element.
    4244 *
    4345 * @since 2.1.0
    4446 * @access private
     
    5355                'show_updated' => 0, 'show_description' => 0,
    5456                'show_images' => 1, 'show_name' => 0,
    5557                'before' => '<li>', 'after' => '</li>', 'between' => "\n",
    56                 'show_rating' => 0, 'link_before' => '', 'link_after' => ''
     58                'show_rating' => 0, 'link_before' => '', 'link_after' => '',
     59                'li_between' => ''
    5760        );
    5861
    5962        $r = wp_parse_args( $args, $defaults );
     
    126129                        $output .= $between . sanitize_bookmark_field('link_rating', $bookmark->link_rating, $bookmark->link_id, 'display');
    127130
    128131                $output .= "$after\n";
     132               
     133                if ( $bookmark != end($bookmarks) )
     134                        $output .= $li_between;
    129135        } // end while
    130136
    131137        return $output;