From 75bb13e531654a561dc7baa2f2bc594aa4a8fc52 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 29 May 2011 19:00:44 +0200 Subject: Introduce new theming system 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 , and in favor of conditionals (these tags belong to theming) --- sample/src/setup.xml | 51 ++++++--------------------------------------------- 1 file changed, 6 insertions(+), 45 deletions(-) (limited to 'sample/src') diff --git a/sample/src/setup.xml b/sample/src/setup.xml index 72ce9dd..63f9caf 100644 --- a/sample/src/setup.xml +++ b/sample/src/setup.xml @@ -1,44 +1,16 @@ - - - ../../templates - - - template-index.tmpl - - template-album.tmpl - - template-view_photo.tmpl - - - - - - - - - - index.html + + + ../../templates/default.xml - - - + + + - - - @@ -61,17 +33,6 @@ - - _thumb - _big - _orig - - - - - - thn_%d_%s - -- cgit v1.2.3