Changeset 566390
- Timestamp:
- 07/02/2012 11:54:29 AM (14 years ago)
- File:
-
- 1 edited
-
3pagination/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
3pagination/trunk/readme.txt
r566389 r566390 46 46 47 47 draw() : Display the pagination 48 `draw ( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = 'classic' )`48 `draw ( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = 'classic', $wp_query = FALSE )` 49 49 <ul> 50 50 <li>$pretty (optional) | Are you using pretty permalinks?</li> … … 52 52 <li>$labels (optional) | Display or not the navigation arrows</li> 53 53 <li>$css (optional) | CSS class name that will be appended to the main div container</li> 54 <li>$wp_query (optional) | custom WP query object 54 55 </ul> 55 56 56 57 get() : Return the pagination as a HTML string 57 `get ( $pretty = TRUE, $num_items = FALSE, $per_page = FALSE, $labels = TRUE, $css = 'classic' )`58 `get ( $pretty = TRUE, $num_items = FALSE, $per_page = FALSE, $labels = TRUE, $css = 'classic', $wp_query = FALSE )` 58 59 59 60 <h4>Example usages</h4> 60 `threepagination::draw ( TRUE, FALSE, FALSE, 'my_custom_class' )`61 Displays the pagination on a website that uses pretty urls, takes the standard page count, hides the navigation arrows and uses a CSS class 'my_custom_class'61 `threepagination::draw ( TRUE, FALSE, FALSE, 'my_custom_class', FALSE )` 62 Displays the pagination on a website that uses pretty urls, takes the standard page count, hides the navigation arrows, attributes a CSS class 'my_custom_class' to the pagination container and uses the global query object. 62 63 63 64 `$string = threepagination::get ()`
Note: See TracChangeset
for help on using the changeset viewer.