The following variables are initialized right before the posts parsing thus they're globally available in PR theme files:
object(WP_Post) Contains data from the current Edition
URI of the Edition active theme.
Return the current packager type ( 'hpub', 'web', ... )
Absolute URL of the Edition active theme.
Inside the theme file identified by the rule
toc we automatically expose the
$edition_posts variable which is used to loop through the issue's content items to build the main navigation. The same result could be achieved using the
pr_get_edition_posts function documented below.
pr_get_edition_posts( $edition, $only_enabled )
Returns the array of content items connected to an Edition.
$edition - _object_The whole Edition object
pr_prev( $post_id, $edition )
Returns the previous post url following the flatplan order.
pr_next( $post_id, $edition )
Returns the next post url following the flatplan order.
pr_get_sharing_url( $post_id )
Returns the sharing url for the current post.