aboutsummaryrefslogtreecommitdiffstats
path: root/example/db/macros/AUTOIMG
blob: 85ba217874c2d9b14c8dfc193e49f1848fb85904 (plain)
1
2
3
4
5
6
7
8
9
10
11
<!--- An IMG with automatic preview.
      @AUTOIMG(imagefile, (width), (height), (quality), (float-bool), (border-bool))
--->

<a href="$IMAGES_DIR/$1">
	<img $(if $5,class="float" )
	$(if $6,style="border: $6px solid black; display: inline-block;")
	src="$THUMBS_DIR/$1?w=$(if $2,$2,300)&amp;h=$(if $3,$3,300)&amp;q=$(if $4,$4,3)"
	width="$(if $2,$2,300)"
	alt="Image preview of $1" />
</a>
bues.ch cgit interface