summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b53a01a)
Simplistic output of HTML from the script (just wraps it in a pre block)
git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.0--patch-18
TITLE - the title of the gallery
WIDTH - the width to make the icons
BPGALLERY_THEME - set the theme to use (described below)
TITLE - the title of the gallery
WIDTH - the width to make the icons
BPGALLERY_THEME - set the theme to use (described below)
+ OUTPUTHTML - sets the script output to be wrapped in a <pre> block
Example Usage:
TITLE="My Funky Gallery" bpgallery.sh /path/to/image/files
Example Usage:
TITLE="My Funky Gallery" bpgallery.sh /path/to/image/files
+if [[ -z $OUTPUTHTML ]]; then
+ OUTPUTHTML=0
+fi
+
if declare -F "bpgallery_${BPGALLERY_THEME}_head" > /dev/null ; then
BPGALLERY_HEAD_FUNCTION="bpgallery_${BPGALLERY_THEME}_head"
else
if declare -F "bpgallery_${BPGALLERY_THEME}_head" > /dev/null ; then
BPGALLERY_HEAD_FUNCTION="bpgallery_${BPGALLERY_THEME}_head"
else
$ECHOCOMMAND "Completed generating thumbs for $totalimages images"
}
$ECHOCOMMAND "Completed generating thumbs for $totalimages images"
}
+if [[ $OUTPUTHTML != 0 ]]; then
+ $ECHOCOMMAND "<pre>"
+fi
+
if [[ -z $1 ]]; then
$ECHOCOMMAND "No path given"
usage
if [[ -z $1 ]]; then
$ECHOCOMMAND "No path given"
usage
$BPGALLERY_STYLESHEET_FUNCTION > style.css
$ECHOCOMMAND "All done"
$BPGALLERY_STYLESHEET_FUNCTION > style.css
$ECHOCOMMAND "All done"
+
+if [[ $OUTPUTHTML != 0 ]]; then
+ $ECHOCOMMAND "</pre>"
+fi