Guide to Foliopress Testimonials templates
Template defines the HTML structure of each outputted testimonial. Templates use special syntax which is covered in this guide.

templates
Name of the template is just for the user. It should be picked wisely, so it would tell about the use of the template. The template content can is HTML with special tags that Foliopress Testimonials parses out and replaces it for real data.
Foliopress Testimonials template tags:
- [title] - testimonial title
- [title ,] - testimonial parsed title, where comma will be replaced for <br />
- - testimonial excerpt. If the excerpt is empty, this tag will be replaced for empty string
- [content] - testimonial content
- [slug] - link to the testimonial. This works only when the URL to testimonials page is set in options
- [link] - link to the page where testimonials are. Again this is entirely dependent on the URL in options
- [category] - category name in which the testimonial is
Pair tags:
- [not-featured] ... [end-not-featured] - if the testimonial is not featured, everything between these two tags will be displayed
- [featured] ... [end-featured] - the opposite of previous
- [no-lightbox] ... [end-no-lightbox] - if lightbox option is turned off, everything between these two tags will be displayed
- [lightbox] ... [end-lightbox] - the opposite of previous
Images tags:
All images tags work inside main enclosing image tags: [{number-}image] ... [end-{number-}image], where {number-} is zero indexed index of the image. For instance: if one testimonial has 3 images, to output second image, [1-image] ... [end-1-image] needs to be in the template. Tags that work inside main image enclosing tags:
- [image-path] - Path to the image (URI) without the domain name
- [image-name] - Parsed name of the image
- [image-width] - Width of image in pixels
- [image-height] - Height of image in pixels
- [image-link{ size}] - Path to the image, where you can also specify the size of the image you want to link to. If size is not specified, this tag behaves just like [image-path]
If the testimonial doesn't have images, code between
[no-images] ... [end-no-images] will be outputted.

Leave a Reply