aboutsummaryrefslogtreecommitdiff
path: root/templates/albumitem.tmpl
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2012-04-06 23:26:54 +0100
committerSimon McVittie <smcv@debian.org>2014-07-11 22:09:47 +0100
commit7cc54e7f347c95733452ebfc22f33031f96854ca (patch)
tree1c1a54b0241b4557cf0e8f4fee180458b1def15c /templates/albumitem.tmpl
parent3f4a93574071c004fc332a68b2cac1f70de7f940 (diff)
downloadikiwiki-7cc54e7f347c95733452ebfc22f33031f96854ca.tar
ikiwiki-7cc54e7f347c95733452ebfc22f33031f96854ca.tar.gz
Album plugin v4
Diffstat (limited to 'templates/albumitem.tmpl')
-rw-r--r--templates/albumitem.tmpl34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/albumitem.tmpl b/templates/albumitem.tmpl
new file mode 100644
index 000000000..28cd43db0
--- /dev/null
+++ b/templates/albumitem.tmpl
@@ -0,0 +1,34 @@
+<TMPL_IF NAME=FIRST>
+<div class="album">
+</TMPL_IF>
+
+<div class="album-item">
+ <div class="album-thumbnail">
+ <TMPL_VAR NAME=THUMBNAIL>
+ </div>
+ <div class="album-title">
+ <a href="<TMPL_VAR NAME=PAGEURL>"><TMPL_VAR NAME=TITLE></a>
+ </div>
+ <div class="album-metadata">
+ <TMPL_IF NAME=CTIME>
+ <span class="album-ctime">
+ <TMPL_VAR NAME=CTIME>
+ </span>
+ </TMPL_IF>
+ <TMPL_IF NAME=IMAGEWIDTH>
+ <span class="album-dimensions"><TMPL_VAR NAME=IMAGEWIDTH ESCAPE=HTML>
+ &#xd7; <TMPL_VAR NAME=IMAGEHEIGHT ESCAPE=HTML></span>
+ </TMPL_IF>
+ <TMPL_IF NAME=IMAGEFORMAT>
+ <span class="album-format"><TMPL_VAR NAME=IMAGEFORMAT ESCAPE=HTML></span>
+ </TMPL_IF>
+ <TMPL_IF NAME=IMAGEFILESIZE>
+ <span class="album-size"><TMPL_VAR NAME=IMAGEFILESIZE ESCAPE=HTML></span>
+ </TMPL_IF>
+ </div>
+ <div class="album-caption"><TMPL_VAR NAME=CAPTION></div>
+</div>
+
+<TMPL_IF NAME=LAST>
+</div> <div class="album-end"></div>
+</TMPL_IF>