diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-05-29 19:00:44 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-05-29 19:00:44 +0200 |
| commit | 75bb13e531654a561dc7baa2f2bc594aa4a8fc52 (patch) | |
| tree | 0b80f48e53d969292b2ffd401cb06470a1156bff /src/generators.h | |
| parent | eb3092f8bd30d065c4e6f4bf0159309e1a960156 (diff) | |
| download | cataract-75bb13e531654a561dc7baa2f2bc594aa4a8fc52.tar.xz | |
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 <show_go_up>, <show_exif_table> and <border style>
in favor of conditionals (these tags belong to theming)
Diffstat (limited to 'src/generators.h')
| -rw-r--r-- | src/generators.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/generators.h b/src/generators.h index 6a54ac3..c284f37 100644 --- a/src/generators.h +++ b/src/generators.h @@ -36,7 +36,7 @@ gboolean generate_image (TGallerySetup *setup, TIndexItem *item, unsigned int item_index, TPathInfo *path_info, - gboolean update_when_necessary); + gboolean query_update); /* * write_html_album: process album and index template files @@ -48,6 +48,7 @@ gboolean generate_image (TGallerySetup *setup, */ gboolean write_html_album (TGallerySetup *setup, TPathInfo *path_info, + TGalleryDesignTheme *theme, const gchar *template_src, const gchar *dst, TAlbum *items); @@ -63,6 +64,7 @@ gboolean write_html_album (TGallerySetup *setup, */ gboolean write_html_image (TGallerySetup *setup, TPathInfo *path_info, + TGalleryDesignTheme *theme, const gchar *template_src, const gchar *dst, TIndexItem *item, |
