Actually "_return" is exactly what I was looking for. Thank you so much. I have been pulling my hair out trying to find that.
On Dec 22, 5:32 pm, "Michael C. Harris" <[email protected]> wrote: > 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] Seehttp://wiki.habariproject.org/en/Dev:Theme_Functionsfor an > explanation of theme functions, though the _return part is not > currently documented there. > > -- > Michael C. Harris, School of CS&IT, RMIT > Universityhttp://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
