From 1f9e7dee25dfd002b6b1ab4636faa9a24f74d09f Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 4 Jan 2015 19:58:05 +0100 Subject: generators: Use single function for all templates This commit makes use of a common function for all template parsing and page writing. The behaviour is controlled by the "item" argument passed in. This allows us to have a single code that generates code for list of items as well as for a single item. In the future, this can be used for e.g. combining thumbnails and large images on the same page. Other than that this commit also brings several other changes: - further clarification of theming setup XML file - tag has been moved out of the structure into the structure where it functionally belongs. Only whole albums can be protected and the substitute thumbnail is displayed on index pages. - position marker format has been broken out to a constant - added few more FIXMEs to mark places that will change soon - some template variables have been renamed --- src/setup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/setup.h') diff --git a/src/setup.h b/src/setup.h index 64351f3..4678423 100644 --- a/src/setup.h +++ b/src/setup.h @@ -105,11 +105,11 @@ typedef struct { gchar *index_template; gchar *index_filename; gchar *index_thumb_size; + gchar *index_protected_thumbnail; gchar *album_template; gchar *album_filename; gchar *album_image_size; gchar *album_thumb_size; - gchar *album_protected_thumbnail; gchar *picture_template; gchar *picture_filename; gchar *picture_image_size; -- cgit v1.2.3