summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2011-06-04 18:36:44 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2011-06-04 18:36:44 +0200
commita894e2f163153553e5ac32a1f2600315971e13c4 (patch)
tree15ba6c75994ea02e55ccc969596fe4dd896ff007 /templates
parent02c5b4315a9aaf64b945428288453134f90b75cc (diff)
downloadcataract-a894e2f163153553e5ac32a1f2600315971e13c4.tar.xz
Port border style to the new defines system
This change allows greater flexibility for separate themes.
Diffstat (limited to 'templates')
-rw-r--r--templates/default.xml8
-rw-r--r--templates/template_picture.html2
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>