WordPress.org

Plugin Directory

Changeset 450225


Ignore:
Timestamp:
10/12/11 11:20:09 (3 years ago)
Author:
ydubois
Message:

Doc upgrade for version 2.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • yd-wpmu-bloglist-widget/trunk/readme.txt

    r450220 r450225  
    118118 
    119119`<?php yd_display_wpmu_bloglist() ?>` 
     120 
     121= How to display a drop-down list of blogs? = 
     122 
     123Since version 2.1.0, you can use this syntax: 
     124 
     125`<?php yd_wpmubl_dropdown_js(); ?> 
     126<select name="select" id="select" onChange="ddjump(this);"> 
     127    <option selected="selected"><?php _e('Please choose an option below:'); ?></option> 
     128    <?php yd_wpmu_bloglist_dropdown( 'show_count=0' ); ?> 
     129</select>` 
    120130 
    121131= If I don’t want to use the widget, how can I display it in php? = 
     
    154164* skip_spam  
    155165* skip_deleted  
    156 * to_skip (comma-delimited list of blog IDs) 
     166* to_skip (comma-delimited list of blog IDs that xill not be displayed) 
     167 
     168**new since 2.1.0 ** 
     169 
     170* show_count (can be set to 0 or false to avoid displaying post count) 
     171* group_by (needs an option in the blogs' options tables) 
     172* before_groupby 
     173* after_groupby 
     174 
    157175 
    158176For example, here's how to call the function with a bunch of parameters: 
    159177 
    160178`<?php yd_display_wpmu_bloglist( 'column_count=1&before_item=<li><b>&after_item=</b></li>' ) ?>` 
     179 
     180Since version 2.1.0 you can also pass artguments in an array, like this for example: 
     181 
     182`<?php yd_display_wpmu_bloglist(  
     183    true, //echo 
     184    array(  
     185        'to_skip'   => '1,0', 
     186        'order_by'  => 'domain', 
     187        'group_by'  => 'continent', 
     188        'column_count'  => 3, 
     189        'show_count'    => 0, 
     190        'before_block'  => '<div>', 
     191        'after_block'   => '</div>', 
     192        'before_column' => '<div class="columns coln">', 
     193        'after_column'  => '</div>'  
     194    ) 
     195); ?>` 
    161196 
    162197= Can I make the function return HTML for further php processing without displaying it? = 
Note: See TracChangeset for help on using the changeset viewer.