Ticket #20414: img-after.diff
File img-after.diff, 1.4 KB (added by , 12 years ago) |
---|
-
bookmark-template.php
26 26 * of the bookmark. 27 27 * 'show_images' - Default is 1 (integer). Whether to show link image if 28 28 * available. 29 * 'img_after' - Default is '' (string). The html or text to display between the 30 * image and the name. 29 31 * 'show_name' - Default is 0 (integer). Whether to show link name if 30 32 * available. 31 33 * 'before' - Default is '<li>' (string). The html or text to prepend to each … … 53 55 'show_updated' => 0, 'show_description' => 0, 54 56 'show_images' => 1, 'show_name' => 0, 55 57 'before' => '<li>', 'after' => '</li>', 'between' => "\n", 56 'show_rating' => 0, 'link_before' => '', 'link_after' => '' 58 'show_rating' => 0, 'link_before' => '', 'link_after' => '', 'img_after' => '' 57 59 ); 58 60 59 61 $r = wp_parse_args( $args, $defaults ); … … 103 105 if ( $bookmark->link_image != null && $show_images ) { 104 106 if ( strpos($bookmark->link_image, 'http') === 0 ) 105 107 $output .= "<img src=\"$bookmark->link_image\" $alt $title />"; 108 $output .= $img_after; 106 109 else // If it's a relative path 107 110 $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />"; 108 111 $output .= $img_after; 109 112 if ( $show_name ) 110 113 $output .= " $name"; 111 114 } else {