fullimage.tpl

The fullimage.tpl file is the template that actually displays the fullsized image. It gives you the opportunity to style the page exactly how you want.

Variables

<!--addtocart-->
Displays a form allowing your visitor to add the image to their cart.

The current color mode will be added, so if a visitor is viewing the sepia image when they click on Add to Cart the sepia version will be added.

Note: If the album or image is marked as 'Not for Sale' or you have not put any pricing options in your database this will show a blank.

<!--colortypes-->
Displays a link to the 3 different color types- Color, Black & White, and Sepia; but only if enabled. If the images has one of the color modes disabled then the link will not be shown.

<!--colortype_bw-->, <!--colortype_color-->, <!--colortype_sepia-->
Creates a link to each of the 3 color modes. If the color mode is disabled the link will not be shown.

<!--comments-->
Displays any public comments or comments placed by the current visitor on the image. Also displays a form where the visitor can enter their own comment.

This is an optional variable and will be blanked out if the admin has disabled comments.

<!--firstimagehref-->
The href portion of an <a> tag to link to the first image in the album.

<!--image--> Displays the fullsized image. This is most likely the variable you will want to use to display a fullsized image.

The image displayed using this variable will define the height and width of the image so that the page doesn't jump.

This is also the variable used if you want to enable transparent overlays on your images. If you use this variable you can style the image using CSS class pb_image.

<!--imageid-->
The database id of the current image. Not a useful variable by itself, but it can be used to create links.

<!--imagerank-->
A small form allowing the visitor to rank the image from 0 to 5. Visitors are only allowed one vote per image, so once they have voted this variable will return a blank for the image.

<!--imagerankimage-->
A graphic representation of the current image ranking. If you use this variable you will will need a set of images to represent the rankings in an images folder off of your theme folder. They must be titled rank0.gif, rank05.gif, rank10.gif, rank15.gif, rank20.gif, rank25.gif, rank30.gif, rank35.gif, rank40.gif, rank45.gif, rank50.gif, and ranknone.gif; and the filenames must be all lower case. For an example look in the images folder for the Basic White theme.

<!--imagesrc-->
The source of the image. Example: <img src="<!--imagesrc-->">

<!--imagetitle-->
The title of the image from the database.

<!--imageviews-->
The number of times the color version of this image has been viewed.

<!--img_height-->
The height of the image in pixels.

<!--img_width-->
The width of the image in pixels.

<!--lastimagehref-->
The href portion of an <a> tag to create a link to the last image in the album.

<!--previmagehref-->
The href portion of an <a> tag linking to the previous image in the album. If the page is already showing the first image this will link to the last image creating a loop.

<!--nextimagehref-->
The href portion of an <a> tag linking to the next image in the album. If the page is already showing the last image this will link to the first image creating a loop.

<!--returnalbumhref-->
The href portion of an <a> tag linking back to the thumbnail page. This will create a link to the thumbnail page that contains the current image.

Leave a Reply