summaryrefslogtreecommitdiff
path: root/templates/default.xml
AgeCommit message (Collapse)AuthorFilesLines
2015-01-04Introduce new "fixed" thumbnail crop modeTomas Bzatek1-3/+9
This mode retains given aspect ratio and crops the area from inside of the source image.
2015-01-04generators: Use single function for all templatesTomas Bzatek1-14/+19
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 - <protected_thumbnail> tag has been moved out of the <album> structure into the <index> 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
2014-09-15theming: Allow themes to use different thumbnail image sizesTomas Bzatek1-1/+8
This change makes thumbnail image sizes more flexible by explicitly stating the particular image size is a thumbnail. And each thumbnail image size can have different squared settings. On the theme side it's now mandatory to specify which thumbnail size to use (if applicable). This allows us to have different thumbnail styles for index and album pages. This commit also removes the <squared_thumbnails> tag from setup.xml file but retains fallback for ver. 1 setup.xml files.
2014-09-15theming: Define meaning of the <no_resize> tagTomas Bzatek1-0/+6
Although probably not very common scenario, let's be consistent across all defined image sizes and clearly state that an explicitly supplied image file for an optional image size should carry the tag in order not to get resized.
2014-09-14theming: Clarify image size rulesTomas Bzatek1-4/+13
Adding notes mostly about legacy features.
2014-03-21Make setup files versioned and add fallback for old versionsTomas Bzatek1-1/+1
This commit makes setup files (setup.xml and referenced design setup xml file) versioned and adds checks for correct versions. If a newer versioned file is detected, warning is printed out in assumption that a stray cgg version is used. If the version information is missing or is lower than expected version, files are read in legacy mode. Some values are left on defaults and missing mandatory values are either read from renamed keys or made up to suit current requirements. This essentially brings back compatibility with old setup.xml files that are usually part of galleries. However, some values are hardcoded and should be kept in mind to update and test the legacy mode along with future enhancements.
2013-02-10Support theme-defined thumbnail for protected albumsTomas Bzatek1-0/+4
2011-06-04Port Go Up link to the new defines systemTomas Bzatek1-0/+6
2011-06-04Port EXIF table visibility switch to the new defines systemTomas Bzatek1-0/+2
2011-06-04Port border style to the new defines systemTomas Bzatek1-2/+6
This change allows greater flexibility for separate themes.
2011-06-04Introduce conditional systemTomas Bzatek1-0/+8
This is very basic scripting support - simple value retrieval and block conditionals. Defines could be either static from theme setup or programatically added during page generation.
2011-05-29Introduce new theming systemTomas Bzatek1-0/+97
This extends current templating system to another dimension, bringing the possibility to have multiple themes generated at once. The purpose is to be able to switch between multiple designs, from PC to mobile, classic vs. flat view, slideshow, etc. For the moment, only the classic theme is available. Rules: * for switching between themes, place a link inside your template manually - it's not a cgg concern, only your theming infrastructure * don't forget to define different file names for index and album pages across different themes * it's recommended to keep default theme named as "index.*" to avoid showing directory listing on webserver Notes: * some TODOs will be fixed when we have new theme using these advanced features (e.g. pictures in album pages) * TODO: introduce tag/block conditional system, allow custom user defines for each theme/page * TODO: deprecate <show_go_up>, <show_exif_table> and <border style> in favor of conditionals (these tags belong to theming)