# Header of TazPanel html page rootclass='user'; [ $(id -u) -eq 0 ] && rootclass='root' TEXTDOMAIN_original="${TEXTDOMAIN:-tazpanel}" export TEXTDOMAIN='tazpanel' extra_menu() { local x case "$1" in */*) filter="s/data-icon=\\\"[^\\\"]*\\\"/data-icon=\\\"\\\"/";; *) filter='';; esac for x in menu.d/$1/*; do [ -f $x ] && sh $x menu $x | sed "$filter" [ -d $x ] || continue icon="$(sed '/data-icon/!d;s/.*data-icon="\([^"]*\).*/\1/;q' $x/*)" echo -e "
- $(_ "$(basename $x)")\n" extra_menu ${x#menu.d/} echo -e "\n
" done } cat <
$(printf '\t\n' $(cd /var/www/tazpanel; ls styles/$STYLE/*.css* | sed 's|.gz||')) $(printf '\t
\n' $(cd /var/www/tazpanel; ls lib/*.js* | sed 's|.gz||'))
$(_ 'Confirm break')
EOT export TEXTDOMAIN="$TEXTDOMAIN_original"