Description
Create a nav menu for oik-preentation slides
Usage
oikp_lazy_nav( $post );Parameters
- $post
- ( mixed ) required –
Returns
voidSource
File name: oik-presentation/includes/oikp-lazy-nav.incLines:
1 to 20 of 20
function oikp_lazy_nav( $post ) { bw_trace2(); stag( "nav", null, "navsingle" ); h3( "Post navigation", "assistive-text" ); $oobit = site_url(); alink( "home", $oobit, "home" ); /* We need a better way of determining the Table of Contents (TOC) for a particular presentation. **?** */ alink( "toc", $oobit . "/oik-presentations/table-of-contents", "TOC" ); $up = get_permalink( $post->post_parent ); alink( "up", $up , "up" ); oik_require( "includes/bw_posts.php" ); $next = oikp_next( $post ); alink( "next", $next , "next" ); $prev = oikp_prev( $post ); alink( "prev", $prev, "prev" ); etag( "nav" ); bw_flush(); }
Invoked by
Calls
1 to 8 of 8
- alink() – Create a link
- bw_flush() – Use bw_flush() to echo the contents of $bwecho then empty it
- bw_trace2() – Trace $value to the trace log file if tracing is active
- etag() – Output an end tag
- h3() –
- oikp_next() – Get the ID of the next post in menu order.
- oikp_prev() – Get the ID of the previous post in menu order.
- stag() – Output an HTML opening tag
Call hooks
API Letters:
