Recent Changes - Search:

SimpleLog wiki

Installing SimpleLog

        MT(gs) users
        DreamHost users

Upgrading

Working with themes

How to

Troubleshooting

Development & resources

PostHelpers

This page is under active construction!

You should also see available helper methods as well as available preferences.

build_tag_list( tags [, archive_token [, separator]] )

Create a list of tags for a post, linked to the proper tag archives for each.

previous_next( current_post [, div [, title [, show_titles [, prev_text [, next_text [, append_left [, append_right [, separator]]]]]]]] )

Builds links to the previous and next post from current_post, which must be a Post object. This method is highly customizable. div will set the id value of the div tag this output is wrapped in, title will prepend the actual output itself, show_titles (true or false) will either show the post titles or the values of prev_text and next_text. You can use append_left and append_right to add text to the left and right of the links (say, for instance, an arrow), and separator is the string to be used between the next and previous links.

date_time_linked( post )

Pass in a Post object, get an HTML link to the post's permalink with the text of the link being in the date and time formats specified in preferences. Example output would be:
<a href="site.com/2007/01/2/post" title="Permalink for this post">January 12, 2006 at 10:35PM</a>

date_time( post [, hide_time] )

Just the date and time for the post, without an HTML link. hide_time will return only the date if you pass true.

post_excerpt( post )

Pass in a Post object, get 20 words of its body.

date_time_comment_linked( comment, body )

Same as date_time_linked, but for a comment instead of a post.

extended_content_link( post [, wrap_in_p] )

If there's extended content for post, this will return a link to it. wrap_in_p defaults to true, pass false if you don't want the link wrapped in an HTML paragraph.

extended_content_block( post )

If the post has extended content, it will be returned.

comment_info( post )

If the comment system is turned on preferences, this returns comment information for the post with a link to comments.

comment_count_description( post )

Returns a natural language statement about how many comments for post there are. Example: "There are 2 comments on this post."

add_comment_link( post )

If comments are allowed for post, this will return a "post yours" link that links to the post form.

comment_author( comment )

Returns the comment author's name, linked if they provided a URL.

accepting_comments( post )

Returns a boolean--is this post accepting comments?

tag_info( post )

If there are tags for post, this returns them in a string using build_tag_list
Edit - History - Print - Recent Changes - Search
Page last modified on February 05, 2007, at 05:09 PM EST