<%doc> Template used for image galleries. If ``folders`` contains items then this is a listing of galleries or is a gallery which contains sub-galleries. Interesting variables include: * post: A post object, containing descriptive post.text() for the gallery. * crumbs: A list of link, crumb to implement breadcrumbs. * folders: A list of folders to implement hierarchical gallery navigation. * enable_comments: To enable/disable comments in galleries. * thumbnail_size: The THUMBNAIL_SIZE option. * photo_array: a list of dictionaries, each containing: * url: URL for the full-sized image. * url_thumb: URL for the thumbnail. * title: The title of the image. * size: A dict containing w and h, the real size of the thumbnail. <%inherit file="/_base.tmpl"/> <%block name="page_title"> ## galleries is the default title for the listing of galleries % if title != 'galleries': ${title} % elif folders: Photo Galleries % endif % if post:
${post.text()}
% endif % if folders:
% if photo_array: ## This gallery contains sub-galleries.

Sub-Galleries:

% endif
% endif