Plugin Directory

Changeset 163961


Ignore:
Timestamp:
10/16/2009 09:53:41 AM (16 years ago)
Author:
0xTC
Message:

1.6.0

Location:
wp-render-blogroll-links/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-render-blogroll-links/trunk/WP-Render-Blogroll.php

    r150532 r163961  
    22/*
    33Plugin Name: WP Render Blogroll Links
    4 Version: 1.5.3
     4Version: 1.6.0
    55Plugin URI: http://0xtc.com/2009/04/22/wp-render-blogroll-links-plugin.xhtml
    66Description: 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".
     
    2020    $defaults = array(
    2121        '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,
    2323        'before' => '<li>', 'after' => '</li>', 'between' => "\n",
    2424        'show_rating' => 0, 'link_before' => '', 'link_after' => ''
     
    7373                $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />";
    7474            }
    75             if ( $show_name ){
     75            if ($show_name){
     76                if ($show_names_under_images){
     77                    $output .= "<br />";
     78                }
    7679                $output .= " $name";
    7780            }
     
    99102    $defaults = array(
    100103        'orderby' => 'name',
     104        'show_images' => 1,
     105        'show_name' => 0,
     106        'show_names_under_images' => 0,
    101107        'forcerel' => '',
    102108        'order' => 'ASC',
     
    173179function renderlinks_tc_hnd ($att,$content=null) {
    174180    $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));
    177183    if ($notitle=="1"){$notitletag='&categorize=0&title_li= ';} else {$notitletag='';}
    178184    if ($showbrk=="1"){$brk="<br />";} else {$brk=' ';}
     
    181187    $wprbl_e = '
    182188        <!-- 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;
    184190}
    185191 add_shortcode('wp-blogroll', 'renderlinks_tc_hnd')
  • wp-render-blogroll-links/trunk/readme.txt

    r150532 r163961  
    214214 * **`[wp-blogroll forcerel="nofollow external"]`**
    215215
     216= My links have images, but I also want to show their titles/names =
     217
     218To do this, version 1.6.0 introduced the `always_show_names=1` and `show_names_under_images=1` parameters.
     219
     220The `always_show_names=1` parameter makes sure that the names of the links show up even if you're using images.
     221 
     222The `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
    216239= How do you further customize the output format? =
    217240
     
    247270
    248271* 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.