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 --- templates/default.xml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'templates/default.xml') diff --git a/templates/default.xml b/templates/default.xml index 9197519..c903a4b 100644 --- a/templates/default.xml +++ b/templates/default.xml @@ -9,10 +9,11 @@ the "preview" size will be used instead. --> + it's considered more like a bigger preview size for large screens now. + However it still serves the purpose of supplying metadata (EXIF etc.). --> + this image size availability on the page. --> @@ -72,31 +73,34 @@ - + index.html thumbnail + + emblems-readonly_120.png - + index.html - - preview - + thumbnail - - emblems-readonly_120.png + + preview + images will be generated. Images are processed in either case, for + potential use within album pages. --> @@ -120,7 +124,7 @@ or as a value constant (specify "value(DEFINE_NAME)" to retrieve the value). For "ifdef" negation, use "ifndef" or "else". --> @@ -141,3 +145,4 @@ filenames to avoid conflicts. --> + -- cgit v1.2.3