2009/12/23 haijak <[email protected]>:
> Something like that. But instead of one post at a time, a page of
> several posts at a time.
Ah, sorry, I misunderstood (or didn't really concentrate while reading).
$theme->prev_page_link and $theme->next_page_link are theme functions[1]. You
can get a return value without echo by adding _return to the end of
the call, like
$theme->prev_page_link_return(). But I don't think you really want that.
This snippet is from the core theme mzingi.
<?php $theme->prev_page_link('« ' . _t('Newer Posts')); ?> <?php
$theme->page_selector( null, array( 'leftSide' => 2, 'rightSide' => 2
) ); ?> <?php $theme->next_page_link('& raquo; ' . _t('Older
Posts')); ?>
That seems to me to do what you're asking. If there is no previous page of
posts, 'Newer Posts' is not printed. Likewise next page. Let me know if that's
not doing what you're after and I've misunderstood again.
[1] See http://wiki.habariproject.org/en/Dev:Theme_Functions for an
explanation of theme functions, though the _return part is not
currently documented there.
--
Michael C. Harris, School of CS&IT, RMIT University
http://twofishcreative.com/michael/blog
IRC: michaeltwofish #habari
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users