Description
Implement "oik_shortcode_result" for pagination
Usage
$string = oik_navi_shortcode_result( $result, $atts, $content, $tag );Parameters
- $result
- ( string ) optional – the result of the shortcode expansion so far
- $atts
- ( array ) optional – shortcode parameters – including our amendments
- $content
- ( string ) optional – future use
- $tag
- ( string ) optional – future use
Returns
string the modified resultSource
File name: oik/includes/oik-shortcodes.phpLines:
1 to 12 of 12
function oik_navi_shortcode_result( $result=null, $atts=null, $content=null, $tag=null ) { $posts_per_page = bw_array_get( $atts, "posts_per_page", null ); if ( $posts_per_page ) { oik_require( "shortcodes/oik-navi.php" ); // belt and braces oik_navi_s2eofn_from_query( $atts ); $prepend = bw_ret(); $result = $prepend . $result; oik_navi_lazy_paginate_links( $atts ); $result .= bw_ret(); } return( $result ); }View on GitHub View on Trac
Called by
Calls
1 to 5 of 5
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_ret() – Use bw_ret() to return the contents of $bwecho, leaving the global value as NULL
- oik_navi_lazy_paginate_links() – Display pagination links for this shortcode
- oik_navi_s2eofn_from_query() – Display "s to e of n"
- oik_require() – Invoke require_once on an oik include file or other file
