Assets.html 1.9 KB

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