Assets.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {namespace v=FluidTYPO3\Vhs\ViewHelpers}
  2. {namespace ot=Opentalent\OtTemplating\ViewHelpers}
  3. <f:comment><!--
  4. Assets included with the VHS viewhelpers
  5. /!\ Warning: assets'names shall be uniques, even among styles and scripts viewhelpers!
  6. --></f:comment>
  7. <v:variable.set name="assets_dir" value="EXT:ot_templating/Resources/Public/assets/Classic" />
  8. <f:comment><!-- Style assets --></f:comment>
  9. <v:asset.style name="fontAwesome"
  10. path="{assets_dir}/style/ext/font-awesome/css/all.min.css"/>
  11. <v:asset.style name="jquery-ui-css"
  12. path="{assets_dir}/style/ext/jquery-ui.min.css"/>
  13. <v:asset.style name="slick-css"
  14. path="{assets_dir}/style/ext/slick.css"/>
  15. <v:asset.style name="slick-theme"
  16. path="{assets_dir}/style/ext/slick-theme.css"/>
  17. <f:comment><!-- Leaflet's path shall not be rewritten since
  18. it won't find the images files anymore --></f:comment>
  19. <v:asset.style name="leaflet-css"
  20. path="{assets_dir}/style/ext/leaflet.css"
  21. rewrite="0"
  22. standalone="1"/>
  23. <v:asset.style name="theme"
  24. path="{assets_dir}/style/theme-{ot:template.getPreference(key: 'themeColor')}.css"
  25. dependencies="fontAwesome,slick,slick-theme,leaflet"
  26. standalone="1"/>
  27. <f:comment><!-- Script assets --></f:comment>
  28. <v:asset.script name="jquery"
  29. path="{assets_dir}/script/jquery-3.4.1.min.js"/>
  30. <v:asset.script name="datepicker"
  31. path="{assets_dir}/script/jquery-ui.min.js"/>
  32. <v:asset.script name="slick"
  33. path="{assets_dir}/script/slick.min.js"
  34. dependencies="jquery"/>
  35. <v:asset.script name="leaflet"
  36. path="{assets_dir}/script/leaflet.js"/>
  37. <v:asset.script name="main"
  38. path="{assets_dir}/script/main.js"
  39. dependencies="jquery,datepicker,slick,leaflet"
  40. standalone="1"/>