set -f
-VERSION="0.9.2+arch"
+VERSION="0.9.3"
function bpgallery_default_head() {
cat <<END
function bpgallery_default_thumbsline() {
cat << END
-<div class="thumbnail"><a href="$filename"><img src="icons/$filename" /></a></div>
+<div class="thumbnail"><a href="$filename"><img src="icons/$filename" /></a><div class="caption">$caption</div></div>
END
}
background: white;
color: black;
font-family: sans-serif;
- font-size: 12pt;
+ font-size: 10pt;
}
div.thumbnail {
height: ${MAXHEIGHT}px;
}
+div.caption {
+ width: 100%;
+ text-align: center;
+ font-weight: bold;
+}
+
a {
border: 0px;
}
HEADCOMMAND=head
fi
+if [[ -z $GREPCOMMAND ]]; then
+ GREPCOMMAND=grep
+fi
+
if [[ -z $WIDTH ]]; then
WIDTH=100
fi
$BPGALLERY_HEAD_FUNCTION > index.html
-$FINDCOMMAND . $FINDIMAGESOPTIONS | $XARGSCOMMAND -0 --replace $ECHOCOMMAND {} |$SORTCOMMAND -g | while read filename; do filename=${filename#./}; $BPGALLERY_THUMBSLINE_FUNCTION; done >> index.html
+$FINDCOMMAND . $FINDIMAGESOPTIONS | $XARGSCOMMAND -0 --replace $ECHOCOMMAND {} |$SORTCOMMAND -g | while read filename; do filename=${filename#./}; caption=$($GREPCOMMAND -E "^$filename " captions.txt); caption=${caption#* }; $BPGALLERY_THUMBSLINE_FUNCTION; done >> index.html
$BPGALLERY_TAIL_FUNCTION >> index.html