Powered by MediaWiki
Personal tools

Tag item prevnext links

From b2evolution manual

Jump to: navigation, search

Links to previous and next post in single post mode.

[edit] Example

<?php  
  item_prevnext_links( array(
     'block_start' => '<table class="prevnext_post"><tr>',
     'prev_start'  => '<td>',
     'prev_end'    => '</td>',
     'next_start'  => '<td class="right">',
     'next_end'    => '</td>',
     'block_end'   => '</tr></table>',
  ) );
  ?>

Result: « Post title #1      Post title #2 »

[edit] Parameters

Name Usage
block_start Displayed before previous and next links block.
prev_start Displayed before previous link.
prev_end Displayed after previous link.
next_start Displayed before next link.
next_end Displayed after next link
block_end Displayed after previous and next links block.

[edit] Return value

This tag displays content only, it does not have a return value.