summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
77556ba)
Declare the function even if we're not generating fullsize pages.
git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.1--patch-6
-* Generate medium sized pages correctly when not generating full size pages.
* Allow a fixed height to be specified instead or as well as a fixed width, in
the latter case, resize to which ever fits the bounding box, but keep the
aspect ratio.
* Allow a fixed height to be specified instead or as well as a fixed width, in
the latter case, resize to which ever fits the bounding box, but keep the
aspect ratio.
INDEXDOCUMENT=index.html
fi
INDEXDOCUMENT=index.html
fi
-if [[ $GENERATEPAGESFORFULLSIZE != 0 ]]; then
- if declare -F "bpgallery_${BPGALLERY_THEME}_page" > /dev/null ; then
- BPGALLERY_PAGE_FUNCTION="bpgallery_${BPGALLERY_THEME}_page"
- else
- BPGALLERY_PAGE_FUNCTION="bpgallery_default_page"
- fi
+if declare -F "bpgallery_${BPGALLERY_THEME}_page" > /dev/null ; then
+ BPGALLERY_PAGE_FUNCTION="bpgallery_${BPGALLERY_THEME}_page"
+else
+ BPGALLERY_PAGE_FUNCTION="bpgallery_default_page"
fi
if declare -F "bpgallery_${BPGALLERY_THEME}_head" > /dev/null ; then
fi
if declare -F "bpgallery_${BPGALLERY_THEME}_head" > /dev/null ; then
addlink=""
if [[ $GENERATEPAGESFORFULLSIZE != 0 ]]; then
addlink=""
if [[ $GENERATEPAGESFORFULLSIZE != 0 ]]; then
- addlink=${currentimage}${extra}.html
+ if [[ $addlinks == 1 ]]; then
+ addlink=${currentimage}.html
+ else
+ addlink=${currentimage}${extra}.html
+ fi
else
addlink=${currentimage}
fi
else
addlink=${currentimage}
fi
- if [[ $addlinks == 1 ]]; then
- addlink=${currentimage}.html
- else
- addlink=${currentimage}${extra}.html
- fi
-
previouspage=$currentpage
currentpage=$nextpage
if [[ $addlinks == 1 ]]; then
previouspage=$currentpage
currentpage=$nextpage
if [[ $addlinks == 1 ]]; then
nextpage=${nextimage}.html
fi
filename=${extradir}${currentimage}
nextpage=${nextimage}.html
fi
filename=${extradir}${currentimage}
- generate_general_page "$previouspage" "$currentpage" "$nextpage" $addlink
+ echo "'$previouspage' '$currentpage' '$nextpage' '$addlink'" >> /tmp/bpgallery-tmp.log
+ if [ "x$currentpage" != "x" ]; then
+ generate_general_page "$previouspage" "$currentpage" "$nextpage" $addlink
+ fi
$ECHOCOMMAND $nextimage
done | tail -n 2 | (
read previouspage
$ECHOCOMMAND $nextimage
done | tail -n 2 | (
read previouspage
addlink=""
if [[ $GENERATEPAGESFORFULLSIZE != 0 ]]; then
addlink=""
if [[ $GENERATEPAGESFORFULLSIZE != 0 ]]; then
- addlink=${currentpage}.html
+ if [[ $addlinks == 1 ]]; then
+ addlink=${currentpage}.html
+ else
+ addlink=${currentpage}${extra}.html
+ fi
else
addlink=${currentpage}
fi
else
addlink=${currentpage}
fi
- if [[ $addlinks == 1 ]]; then
- addlink=${currentpage}.html
- else
- addlink=${currentpage}${extra}.html
- fi
-
filename=${extradir}${currentpage}
if [[ $addlinks == 1 ]]; then
currentpage=${currentpage}${extra}.html
filename=${extradir}${currentpage}
if [[ $addlinks == 1 ]]; then
currentpage=${currentpage}${extra}.html
function generate_general_page() {
function generate_general_page() {
+ echo 'Generating the page...' >> /tmp/bpgallery-tmp.log
+
if [[ -z $1 ]]; then
previouspage=""
fi
if [[ -z $1 ]]; then
previouspage=""
fi