summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7ef6a62)
Add in extra environmental variable to specify extra location to look for themes
git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.0--patch-19
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)
+ BPGALLERY_THEME_DIR - set an extra location to look for themes
OUTPUTHTML - sets the script output to be wrapped in a <pre> block
Example Usage:
OUTPUTHTML - sets the script output to be wrapped in a <pre> block
Example Usage:
BPGALLERY_THEME=default
fi
BPGALLERY_THEME=default
fi
-if [[ -e $HOME/.bpgallery.themes/${BPGALLERY_THEME} ]]; then
+if [[ ! -z ${BPGALLERY_THEME_DIR} ]] && \
+ [[ -e ${BPGALLERY_THEME_DIR}/${BPGALLERY_THEME} ]]; then
+ . ${BPGALLERY_THEME_DIR/${BPGALLERY_THEME} 2>/dev/null
+elif [[ -e $HOME/.bpgallery.themes/${BPGALLERY_THEME} ]]; then
. $HOME/.bpgallery.themes/${BPGALLERY_THEME} 2>/dev/null
elif [[ -e /usr/local/etc/bpgallery/themes/${BPGALLERY_THEME} ]]; then
. /usr/local/etc/bpgallery/themes/${BPGALLERY_THEME} 2>/dev/null
. $HOME/.bpgallery.themes/${BPGALLERY_THEME} 2>/dev/null
elif [[ -e /usr/local/etc/bpgallery/themes/${BPGALLERY_THEME} ]]; then
. /usr/local/etc/bpgallery/themes/${BPGALLERY_THEME} 2>/dev/null