X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=themes%2Fdefault.sh;h=3c5a87fcb57a1ce56a0f4061070a1f8ab4e9bc2e;hb=a26c541b845f86aa37b872d06ab3bf51e8206be8;hp=c99477bc4d99c54cb6b3362d04bedc1ff0dcd862;hpb=fdf7e4a1d8ce05970999243145db34162db40e3f;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index c99477b..3c5a87f 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -5,9 +5,9 @@ theme_head(){ local IFS="$BR" printf ' - + ' - for css in "$_BASE/[.]/cgilite/common.css" "$_BASE/[.]/themes/default.css" $PAGE_CSS; do + for css in "$_BASE/%5B.%5D/cgilite/common.css" "$_BASE/%5B.%5D/themes/default.css" $PAGE_CSS; do printf '' \ "$(HTML "${css##*//}")" done @@ -25,29 +25,30 @@ theme_pagemenu(){ local page="$1" if acl_write "$page"; then - printf ' -
' + cat <<-EOF + + EOF fi } theme_page(){ local page="$1" title="$2" - title="$(HTML "${title:-"${page}"}")" + 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) +