diff --git a/app/helpers/render.php b/app/helpers/render.php new file mode 100644 index 0000000..418d4f9 --- /dev/null +++ b/app/helpers/render.php @@ -0,0 +1,23 @@ +"; + foreach ($config as $config_item => $config_value) { + echo "\n\t\t\t\t\t\t
  • "; + echo htmlspecialchars($config_item) . ': '; + + if (is_array($config_value)) { + // here we render recursively nested arrays + renderConfig($config_value); + } else { + // if it's not array, just display it + echo htmlspecialchars($config_value ?? ''); + } + + echo '
  • '; + } + echo "\n\t\t\t\t\t"; +} + +?> diff --git a/app/templates/widget-config.php b/app/templates/widget-config.php index 817f750..b38a3f3 100644 --- a/app/templates/widget-config.php +++ b/app/templates/widget-config.php @@ -2,10 +2,10 @@

    Jilo web configuration

    - +