Changeset 163961
- Timestamp:
- 10/16/2009 09:53:41 AM (16 years ago)
- Location:
- wp-render-blogroll-links/trunk
- Files:
-
- 2 edited
-
WP-Render-Blogroll.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-render-blogroll-links/trunk/WP-Render-Blogroll.php
r150532 r163961 2 2 /* 3 3 Plugin Name: WP Render Blogroll Links 4 Version: 1. 5.34 Version: 1.6.0 5 5 Plugin URI: http://0xtc.com/2009/04/22/wp-render-blogroll-links-plugin.xhtml 6 6 Description: Outputs your Blogroll links to a Page or Post. Add <code>[wp-blogroll]</code> to a Page or Post and all your Wordpress links/Blogrolls will be rendered. This extremely simple plug-in enables you to create your own Links page without having to write a custom template.<br />The output can easily be styled with CSS. Each category with its links is encapsulated in a DIV with a classname called "linkcat". All the links are attributed with the class "brlink". … … 20 20 $defaults = array( 21 21 'show_updated' => 0, 'show_description' => 0, 'forcerel' => '', 22 'show_images' => 1, 'show_name' => 0, 22 'show_images' => 1, 'show_name' => 0,'show_names_under_images' => 0, 23 23 'before' => '<li>', 'after' => '</li>', 'between' => "\n", 24 24 'show_rating' => 0, 'link_before' => '', 'link_after' => '' … … 73 73 $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />"; 74 74 } 75 if ( $show_name ){ 75 if ($show_name){ 76 if ($show_names_under_images){ 77 $output .= "<br />"; 78 } 76 79 $output .= " $name"; 77 80 } … … 99 102 $defaults = array( 100 103 'orderby' => 'name', 104 'show_images' => 1, 105 'show_name' => 0, 106 'show_names_under_images' => 0, 101 107 'forcerel' => '', 102 108 'order' => 'ASC', … … 173 179 function renderlinks_tc_hnd ($att,$content=null) { 174 180 $wprbr_n = 'WP Render Blogroll Links '; 175 $wprbl_v = '1. 5.3';;176 extract (shortcode_atts(array(' excludecat'=>'','limit'=>'-1','forcerel'=>'','catorder'=>'ASC','catorderby'=>'name','order'=>'ASC','orderby'=>'name','catid' => '','catname' => '','showcatdesc' => '0','showdesc' => '0','showbrk'=> ' ','notitle'=>'0'), $att));181 $wprbl_v = '1.6.0'; 182 extract (shortcode_atts(array('show_images'=>1,'always_show_names'=>0,'show_names_under_images'=>0,'excludecat'=>'','limit'=>'-1','forcerel'=>'','catorder'=>'ASC','catorderby'=>'name','order'=>'ASC','orderby'=>'name','catid' => '','catname' => '','showcatdesc' => '0','showdesc' => '0','showbrk'=> ' ','notitle'=>'0'), $att)); 177 183 if ($notitle=="1"){$notitletag='&categorize=0&title_li= ';} else {$notitletag='';} 178 184 if ($showbrk=="1"){$brk="<br />";} else {$brk=' ';} … … 181 187 $wprbl_e = ' 182 188 <!-- end['.$wprbr_n.$wprbl_v.'] -->'; 183 return $wprbl_s."\r\n".wp_list_bookmarks_plus(" exclude_category=$excludecat&category_orderby=$catorderby&category_order=$catorder&forcerel=$forcerel&limit=$limit&order=$order&orderby=$orderby&show_description=$showdesc&showcatdesc=$showcatdesc&category_name=$catname&category=$catid&category_before=<div class=\"linkcat\">&category_after=</div>&before=<li class=\"brlink\">&after=</li>&echo=0".$notitletag. "&between=".$brk)."\r\n".$wprbl_e;189 return $wprbl_s."\r\n".wp_list_bookmarks_plus("show_images=$show_images&show_names_under_images=$show_names_under_images&show_name=$always_show_names&exclude_category=$excludecat&category_orderby=$catorderby&category_order=$catorder&forcerel=$forcerel&limit=$limit&order=$order&orderby=$orderby&show_description=$showdesc&showcatdesc=$showcatdesc&category_name=$catname&category=$catid&category_before=<div class=\"linkcat\">&category_after=</div>&before=<li class=\"brlink\">&after=</li>&echo=0".$notitletag. "&between=".$brk)."\r\n".$wprbl_e; 184 190 } 185 191 add_shortcode('wp-blogroll', 'renderlinks_tc_hnd') -
wp-render-blogroll-links/trunk/readme.txt
r150532 r163961 214 214 * **`[wp-blogroll forcerel="nofollow external"]`** 215 215 216 = My links have images, but I also want to show their titles/names = 217 218 To do this, version 1.6.0 introduced the `always_show_names=1` and `show_names_under_images=1` parameters. 219 220 The `always_show_names=1` parameter makes sure that the names of the links show up even if you're using images. 221 222 The `show_names_under_images=1` parameter can be used along with `always_show_names=1` to put the link names under the link images rather than next to them. 223 224 **Example:** 225 226 * Show the names of the links that have images next to their images: 227 * **`[wp-blogroll always_show_names=1]`** 228 229 * Show the names of the links that have images under their images: 230 * **`[wp-blogroll always_show_names=1 show_names_under_images=1]`** 231 232 = Some of my links have images, but I'm too lazy to remove them manually. How do I hide the images and just show the link names? = 233 234 **Example:** 235 236 * Don't show any images even some of my links have images because I was too lazy to remove them manually: 237 * **`[wp-blogroll show_images=0]`** 238 216 239 = How do you further customize the output format? = 217 240 … … 247 270 248 271 * you can now exclude categories 272 273 = 1.6.0 = 274 275 * You can show the link names even if the links have images. 276 * You can hide all link images.
Note: See TracChangeset
for help on using the changeset viewer.