Changeset 140462
- Timestamp:
- 07/29/2009 12:31:19 PM (17 years ago)
- File:
-
- 1 edited
-
proper-pagination/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
proper-pagination/trunk/readme.txt
r140458 r140462 15 15 16 16 Inspired by [The Loop](http://codex.wordpress.org/The_Loop) and [WP_Query](http://codex.wordpress.org/Function_Reference/WP_Query), this plugin stays out of the theme 17 developer s way, allowing her to create the markup needed by providing the17 developer's way, allowing her to create the markup needed by providing the 18 18 following template tags: 19 19 20 * `pp_has_pagination` determines whether the current viewhas any pagination to display, i.e. whether the content being browsed spans more than 1 page21 * `pp_the_pagination` initiates the pagination context, should be called at the beginning of each loop iteration22 * `pp_rewind_pagination` resets the pagination context, so that the pagination loop can be iterated over multiple times23 * `pp_is_current_page` for use in the pagination loop, returns a boolean indicating whether the current loop iteration is for the current page24 * `pp_has_previous_page` for use in the pagination loop, returns a boolean indicating whether there is a previous page, e.g. when at page 1, there is no previous page25 * `pp_has_next_page` for use in the pagination loop, returns a boolean indicating whether there is a next page, e.g. when at page N of N, there is no next page26 * `pp_the_page_permalink` for use in the pagination loop, echos the permalink for the current page27 * `pp_the_previous_page_permalink` for use in the pagination loop, echos the permalink for the previous page28 * `pp_the_next_page_permalink` for use in the pagination loop, echos the permalink for the next page29 * `pp_the_first_page_permalink` for use in the pagination loop, echos the permalink for the first page30 * `pp_the_last_page_permalink` for use in the pagination loop, echos the permalink for the last page31 * `pp_the_page_num` for use in the pagination loop, echos the page number of the current page being iterated over20 * `pp_has_pagination` - determines whether the current 'view' has any pagination to display, i.e. whether the content being browsed spans more than 1 page 21 * `pp_the_pagination` - initiates the pagination context, should be called at the beginning of each loop iteration 22 * `pp_rewind_pagination` - resets the pagination context, so that the pagination loop can be iterated over multiple times 23 * `pp_is_current_page` - for use in the pagination loop, returns a boolean indicating whether the current loop iteration is for the current page 24 * `pp_has_previous_page` - for use in the pagination loop, returns a boolean indicating whether there is a previous page, e.g. when at page 1, there is no previous page 25 * `pp_has_next_page` - for use in the pagination loop, returns a boolean indicating whether there is a next page, e.g. when at page N of N, there is no next page 26 * `pp_the_page_permalink` - for use in the pagination loop, echos the permalink for the current page 27 * `pp_the_previous_page_permalink` - for use in the pagination loop, echos the permalink for the previous page 28 * `pp_the_next_page_permalink` - for use in the pagination loop, echos the permalink for the next page 29 * `pp_the_first_page_permalink` - for use in the pagination loop, echos the permalink for the first page 30 * `pp_the_last_page_permalink` - for use in the pagination loop, echos the permalink for the last page 31 * `pp_the_page_num` - for use in the pagination loop, echos the page number of the current page being iterated over 32 32 33 33 For example, the following arrangement of template tags would provide a rudimentary pagination control: … … 62 62 <?php endif; ?>` 63 63 64 64 65 The template tags on offer by this plugin provide the theme developer with an 65 66 unlimited array of possibilities for marking up the pagination control in a
Note: See TracChangeset
for help on using the changeset viewer.