customizer-variables.pug 1.2 KB

1234567891011121314151617181920212223242526
  1. // NOTE: DO NOT EDIT THE FOLLOWING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.pug template.
  2. each section in sections
  3. if section.customizable
  4. h2(id=section.id)= section.heading
  5. if section.docstring
  6. p!= section.docstring.html
  7. each subsection in section.subsections
  8. if subsection.heading
  9. h3(id=subsection.id)= subsection.heading
  10. div.row
  11. each variable, index in subsection.variables
  12. if index > 0 && index % 3 === 0
  13. div.clearfix
  14. div.col-xs-4
  15. label(for="input-" + variable.name)= variable.name
  16. - var helpId = "help-block-" + variable.name
  17. input.form-control(
  18. id="input-" + variable.name
  19. type="text"
  20. aria-describedby=variable.docstring ? helpId : undefined
  21. value=variable.defaultValue
  22. data-var=variable.name)
  23. if variable.docstring
  24. p.help-block(id=helpId)!= variable.docstring.html
  25. // NOTE: DO NOT EDIT THE PRECEDING SECTION DIRECTLY! It is autogenerated via the `build-customizer-html` Grunt task using the customizer-variables.pug template.