Make WordPress Core

Ticket #20414: img-after.diff

File img-after.diff, 1.4 KB (added by thee17, 12 years ago)
  • bookmark-template.php

     
    2626 *              of the bookmark.
    2727 * 'show_images' - Default is 1 (integer). Whether to show link image if
    2828 *              available.
     29 * 'img_after' - Default is '' (string). The html or text to display between the
     30 *              image and the name.
    2931 * 'show_name' - Default is 0 (integer). Whether to show link name if
    3032 *              available.
    3133 * 'before' - Default is '<li>' (string). The html or text to prepend to each
     
    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' => '', 'img_after' => ''
    5759        );
    5860
    5961        $r = wp_parse_args( $args, $defaults );
     
    103105                if ( $bookmark->link_image != null && $show_images ) {
    104106                        if ( strpos($bookmark->link_image, 'http') === 0 )
    105107                                $output .= "<img src=\"$bookmark->link_image\" $alt $title />";
     108                                $output .= $img_after;
    106109                        else // If it's a relative path
    107110                                $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />";
    108 
     111                                $output .= $img_after;
    109112                        if ( $show_name )
    110113                                $output .= " $name";
    111114                } else {