file theme-settings.twig

{% for heading, settings in groups %}


{{ heading|raw }}

{% for id, setting in settings %} {% endfor %}
{{ 'Setting name'|t }} {{ 'Description and default value'|t }}
{{- id -}}
{{- setting.description -}}
{{- setting.defaultValue -}}
{% endfor %} {% if deprecated %}

{{ 'Deprecated'|t }}

{% for id, setting in deprecated %} {% endfor -%}
{{ 'Setting name'|t }} {{ 'Description and default value'|t }}
{{- id -}}
{{- setting.description -}}
{{- setting.defaultValue -}}
{{ 'Deprecated since @version'|t({'@version': setting.deprecated.version }) }} - {{ setting.deprecated.reason }} ({{ 'see: @replacement'|t({'@replacement': setting.deprecated.replacement}) }})
{% endif %}
Source
  1. <!-- THEME SETTINGS GENERATION START -->
  2. {% for heading, settings in groups %}
  3. ---
  4. ### {{ heading|raw }}
  5. <table class="table table-striped table-responsive">
  6. <thead>
  7. <tr>
  8. <th class="col-xs-3">{{ 'Setting name'|t }}</th>
  9. <th>{{ 'Description and default value'|t }}</th>
  10. </tr>
  11. </thead>
  12. <tbody>
  13. {% for id, setting in settings %}<tr>
  14. <td class="col-xs-3">
  15. <span id="{{- id|clean_class -}}" data-anchor="true">{{- id -}}</span>
  16. </td>
  17. <td>
  18. <div class="help-block">{{- setting.description -}}</div>
  19. <pre class="language-yaml"><code>{{- setting.defaultValue -}}</code></pre>
  20. </td>
  21. </tr>
  22. {% endfor %}
  23. </tbody>
  24. </table>
  25. {% endfor %}
  26. {% if deprecated %}
  27. ---
  28. ### {{ 'Deprecated'|t }}
  29. <table class="table table-responsive">
  30. <thead>
  31. <tr>
  32. <th class="col-xs-3">{{ 'Setting name'|t }}</th>
  33. <th>{{ 'Description and default value'|t }}</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. {% for id, setting in deprecated %}<tr class="bg-warning">
  38. <td class="col-xs-3">
  39. <span id="{{- id -}}" data-anchor="true">{{- id -}}</span>
  40. </td>
  41. <td>
  42. <div class="help-block">{{- setting.description -}}</div>
  43. <pre class="language-yaml"><code>{{- setting.defaultValue -}}</code></pre>
  44. <div class="alert alert-danger alert-sm">
  45. <strong>{{ 'Deprecated since @version'|t({'@version': setting.deprecated.version }) }}</strong> - {{ setting.deprecated.reason }} ({{ 'see: @replacement'|t({'@replacement': setting.deprecated.replacement}) }})
  46. </div>
  47. </td>
  48. </tr>
  49. {% endfor -%}
  50. </tbody>
  51. </table>
  52. {% endif %}
  53. <!-- THEME SETTINGS GENERATION END -->