From 01fc42f44a458841b7d51fc76a59b377f9f489e4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 9 Oct 2020 12:37:46 -0700 Subject: [PATCH] web: minor tweaks - allow specification of panel body class - say "Language: default" in language selector --- html/inc/bootstrap.inc | 8 ++++---- html/inc/language_names.inc | 2 +- html/inc/util.inc | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/html/inc/bootstrap.inc b/html/inc/bootstrap.inc index c05a152c2b..8239919bc2 100644 --- a/html/inc/bootstrap.inc +++ b/html/inc/bootstrap.inc @@ -214,7 +214,7 @@ function sample_navbar( // output a panel. // $content_func is a function that generates the panel contents // -function panel($title, $content_func, $class="panel-primary") { +function panel($title, $content_func, $class="panel-primary", $body_class="") { echo sprintf('
', $class ); @@ -225,9 +225,9 @@ function panel($title, $content_func, $class="panel-primary") {
'; } - echo ' -
- '; + echo sprintf('
+ ', $body_class + ); $content_func(); echo '
diff --git a/html/inc/language_names.inc b/html/inc/language_names.inc index bf6b0b53c9..d59d4bec70 100644 --- a/html/inc/language_names.inc +++ b/html/inc/language_names.inc @@ -65,7 +65,7 @@ function language_select($cur_lang_name) { $supported_languages[] = "en"; $sel = $cur_lang_name?"":"selected"; echo " -