function "wiki" of index.sh returned with an error.') -
X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=themes%2Fdefault.sh;h=563ea3afdbd8676a428bbb3b3fec30a57bff680e;hb=2c724512b2e744027ae0a43d571f2e0c9fd820f3;hp=e9e9d73f195466c6bfcf2433dfe0dcb8767aab60;hpb=210e62ec5d92672b5471c10a47a886d5cd6d1238;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index e9e9d73..563ea3a 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -3,11 +3,14 @@ . "$_EXEC/tools.sh" theme_head(){ + local IFS="$BR" printf ' - - - - ' "$_BASE" + + ' + for css in "$_BASE/%5B.%5D/cgilite/common.css" "$_BASE/%5B.%5D/themes/default.css" $PAGE_CSS; do + printf '' \ + "$(HTML "${css##*//}")" + done } theme_header(){ @@ -24,31 +27,40 @@ theme_pagemenu(){ if acl_write "$page"; then printf '
' fi } theme_page(){ - local page="$1" title - title="${page%/}"; title="${title##*/}" + local page="$1" title="$2" + title="$(HTML "${title:-"${PAGE_TITLE:-"${page}"}"}")" # Important! Web Server response including newline printf "%s\r\n" "Content-Type: text/html; charset=utf-8" "" cat <<-EOF - + $(theme_head) -![](%s)
[%s](%s)
' "$att" "$att" + ;; + esac + done) +