X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=inline;f=themes%2Fdefault.sh;h=de357871bd49695f9a2b01efc81c1f12178b2628;hb=9684cabf3651df8369d71c7a60e9235730dbe978;hp=563ea3afdbd8676a428bbb3b3fec30a57bff680e;hpb=2c724512b2e744027ae0a43d571f2e0c9fd820f3;p=shellwiki diff --git a/themes/default.sh b/themes/default.sh index 563ea3a..de35787 100755 --- a/themes/default.sh +++ b/themes/default.sh @@ -25,16 +25,17 @@ theme_pagemenu(){ local page="$1" if acl_write "$page"; then - printf ' -
' + cat <<-EOF + + EOF fi } @@ -74,19 +75,22 @@ theme_editor(){ [ "$template" ] && acl_read "$template" || template="$page" theme_page - "Editor: $title" <<-EOF - - - - + + + + $([ "$LANGUAGE_DEFAULT" -a "$LANGUAGE_DEFAULT" != "$LANGUAGE" ] && printf ' + + ' "$LANGUAGE_DEFAULT" + )![](%s)
![](%s)
[%s](%s)
' "$att" "$att" + printf '[%s](%s)
' "$att" "$att" ;; esac done)