set -f
-VERSION="1.1.1+arch"
+VERSION="1.1.2"
function bpgallery_default_head() {
cat <<END
}
function generate_thumbs() {
- generate_resized_images $WIDTH $ICONSDIRECTORY
+ if [[ ! -z $HEIGHT ]]; then
+ generate_resized_images "${WIDTH}x${HEIGHT}" $ICONSDIRECTORY
+ else
+ generate_resized_images $WIDTH $ICONSDIRECTORY
+ fi
}
function generate_medium() {
- generate_resized_images $MEDIUMWIDTH $MEDIUMDIRECTORY
+ if [[ ! -z $MEDIUMHEIGHT ]]; then
+ generate_resized_images "${WIDTH}x${HEIGHT}" $MEDIUMDIRECTORY
+ else
+ generate_resized_images $MEDIUMWIDTH $MEDIUMDIRECTORY
+ fi
}
function generate_pages() {