diff options
author | Simon McVittie <smcv@debian.org> | 2012-04-06 23:26:54 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2017-09-15 20:43:44 +0100 |
commit | a60bdd73fcfffdfc9b4de8bdd3be3a5a2777c8a8 (patch) | |
tree | c73db04f1fef939bb0b575a8f7e4de5de2235c97 /templates | |
parent | b2b75ca8297c4c03ea854f5bcf6d0af0e134dc9b (diff) | |
download | ikiwiki-a60bdd73fcfffdfc9b4de8bdd3be3a5a2777c8a8.tar ikiwiki-a60bdd73fcfffdfc9b4de8bdd3be3a5a2777c8a8.tar.gz |
Album plugin v4
Diffstat (limited to 'templates')
-rw-r--r-- | templates/albumitem.tmpl | 34 | ||||
-rw-r--r-- | templates/albumnext.tmpl | 6 | ||||
-rw-r--r-- | templates/albumprev.tmpl | 6 | ||||
-rw-r--r-- | templates/albumviewer.tmpl | 16 |
4 files changed, 62 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> + × <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> diff --git a/templates/albumnext.tmpl b/templates/albumnext.tmpl new file mode 100644 index 000000000..7e92b24e1 --- /dev/null +++ b/templates/albumnext.tmpl @@ -0,0 +1,6 @@ +<div class="album-next"> + <a href="<TMPL_VAR NAME=PAGEURL>"><span class="album-arrow">→</span></a><br /> + <div class="album-thumbnail"> + <TMPL_VAR NAME=THUMBNAIL> + </div> +</div> diff --git a/templates/albumprev.tmpl b/templates/albumprev.tmpl new file mode 100644 index 000000000..36c00d8f6 --- /dev/null +++ b/templates/albumprev.tmpl @@ -0,0 +1,6 @@ +<div class="album-prev"> + <a href="<TMPL_VAR NAME=PAGEURL>"><span class="album-arrow">←</span></a><br /> + <div class="album-thumbnail"> + <TMPL_VAR NAME=THUMBNAIL> + </div> +</div> diff --git a/templates/albumviewer.tmpl b/templates/albumviewer.tmpl new file mode 100644 index 000000000..aeb0abe4f --- /dev/null +++ b/templates/albumviewer.tmpl @@ -0,0 +1,16 @@ +<div class="album-viewer"> + <div id="album-img"> + <TMPL_VAR NAME="PREV"> + + <TMPL_IF NEXT> + <TMPL_VAR NAME="NEXT"> + <TMPL_ELSE> + <div class="album-finish"> + <a href="<TMPL_VAR NAME=ALBUMURL>"><span class="album-arrow">↑</span></a> + </div> + + </TMPL_IF> + + <TMPL_VAR NAME="IMG"> + </div> +</div> |