diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/default.xml | 8 | ||||
| -rw-r--r-- | templates/template_picture.html | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/templates/default.xml b/templates/default.xml index 2a2fd8b..83a1c1a 100644 --- a/templates/default.xml +++ b/templates/default.xml @@ -93,8 +93,12 @@ act as block conditionals (combo "ifdef(DEFINE_NAME)" and "endif(DEFINE_NAME)") or as a value constant (specify "value(DEFINE_NAME)" to retrieve the value). For "ifdef" negation, use "ifndef" or "else". --> - <define name="BORDER" value="single" /> - <define name="I_AM_HERE" /> + <!-- Some defines are added during runtime and take priority over custom defines + here. This way you can define default values here which would get eventually + overriden by the generator. --> + + <!-- image border style, overriden by <border style> tags from the album source file --> + <define name="BORDER_STYLE" value="border_single" /> </theme> <!-- Here you can define another theme, with different templates etc. diff --git a/templates/template_picture.html b/templates/template_picture.html index 413d348..d9b72b2 100644 --- a/templates/template_picture.html +++ b/templates/template_picture.html @@ -33,7 +33,7 @@ <!-- ## Image --> <div class="img_preview"> - <a href="$(LINK_NEXT)"><img src="$(IMG_SRC)" width="$(IMG_SIZE_W)" height="$(IMG_SIZE_H)" alt="" id="$(IMG_BORDER_STYLE)" /></a> + <a href="$(LINK_NEXT)"><img src="$(IMG_SRC)" width="$(IMG_SIZE_W)" height="$(IMG_SIZE_H)" alt="" id="$(value(BORDER_STYLE))" /></a> <!-- $(BEGIN_IMG_FULLSIZE_LINK) --> <div class="img_preview_full"> <a href="$(IMG_SRC_FULL)">See original size (<!-- $(IMG_SIZE_ORIG_W) -->x<!-- $(IMG_SIZE_ORIG_H) -->)</a> |
