Template Functions
The following template functions are included for use in your theme files.
asfp_get_image($post_id,$size='thumbnail',$class=null)
Arguments:
$post_id - required. The ID of the post you'd like to grab an image for.
$size - optional. Default is thumbnail
$class - optional. If you provide a class, it will be assigned to the image's image tag.
Returns:
An HTML string containing an image tag.
Notes:
The dimensions of the returned image are currently hard-coded to 70x70. This will be fixed in a future release.
asfp_subpages_nav()
Arguments:
none
Prints:
An HTML string containing a subnav list inside of a widget div. If the current page is a top-level item, the list will include its children and grandchildren. If the current page is not a top-level item, the list will include the current page's siblings and aunts and uncles and cousins, if applicable. Try it out to see the CSS classes used.