Assets.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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/Modern" />
  7. <v:variable.set name="force_standalone" value="1" />
  8. <f:comment><!-- Fonts assets --></f:comment>
  9. <v:asset.style name="montserrat-font"
  10. path="https://fonts.googleapis.com/css?family=Montserrat:300,300i,400,500,500i,600,700,800,900|Poppins:200,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900"
  11. external="1"
  12. standalone="{force_standalone}" />
  13. <v:asset.style name="dosis-font"
  14. path="https://fonts.googleapis.com/css?family=Dosis:300,400,500,600,700,800"
  15. external="1"
  16. standalone="{force_standalone}"/>
  17. <style>
  18. @font-face {
  19. font-family: "fontawesome";
  20. src: url("/typo3conf/ext/ot_templating/Resources/Public/assets/Modern/fonts/fontawesome-webfont.ttf") format("truetype");
  21. }
  22. @font-face {
  23. font-family: "themify";
  24. src: url("/typo3conf/ext/ot_templating/Resources/Public/assets/Modern/fonts/themify.ttf") format("truetype");
  25. }
  26. @font-face {
  27. font-family: "slick";
  28. src: url("/typo3conf/ext/ot_templating/Resources/Public/assets/Modern/fonts/slick.ttf") format("truetype");
  29. }
  30. @font-face {
  31. font-family: "revicons";
  32. src: url("/typo3conf/ext/ot_templating/Resources/Public/assets/Modern/fonts/revicons.ttf") format("truetype");
  33. }
  34. </style>
  35. <f:comment><!-- Style assets --></f:comment>
  36. <f:comment><!-- includes all plugins ; can be removed if none of those plugins are used --></f:comment>
  37. <v:asset.style name="plugins-css"
  38. path="{assets_dir}/style/plugins-css.css"
  39. standalone="{force_standalone}"/>
  40. <f:comment><!-- includes revolution stylesheets --></f:comment>
  41. <v:asset.style name="revolution-settings"
  42. path="{assets_dir}/style/revolution/settings.css"
  43. standalone="{force_standalone}"/>
  44. <f:comment><!-- includes all typography stylesheets --></f:comment>
  45. <v:asset.style name="typography"
  46. path="{assets_dir}/style/typography.css"
  47. standalone="{force_standalone}"/>
  48. <v:asset.style name="datetimepicker-css"
  49. path="{assets_dir}/style/plugins/bootstrap-datetimepicker.min.css"
  50. standalone="{force_standalone}"/>
  51. <v:asset.style name="slick-css"
  52. path="{assets_dir}/style/plugins/slick.css"
  53. standalone="{force_standalone}"/>
  54. <v:asset.style name="slick-theme-css"
  55. path="{assets_dir}/style/plugins/slick-theme.css"
  56. standalone="{force_standalone}"/>
  57. <v:asset.style name="leaflet-css"
  58. path="{assets_dir}/style/plugins/leaflet.css"
  59. standalone="{force_standalone}"
  60. rewrite="0"/>
  61. <f:comment><!-- main stylesheet of the template --></f:comment>
  62. <v:asset.style name="style-css"
  63. path="{assets_dir}/style/style.css"
  64. standalone="1"
  65. rewrite="0"/>
  66. <f:comment><!-- responsive stylesheet of the template (mediaqueries) --></f:comment>
  67. <v:asset.style name="responsive-css"
  68. path="{assets_dir}/style/responsive.css"
  69. standalone="{force_standalone}"/>
  70. <v:asset.style name="custom-css"
  71. path="{assets_dir}/style/custom.css"
  72. standalone="{force_standalone}"/>
  73. <f:comment><!-- Chosen theme --></f:comment>
  74. <v:variable.set name="themeColor" value ="{ot:template.getPreference(key: 'themeColor')}"/>
  75. <f:if condition="{themeColor}=='light-blue'">
  76. <f:then>
  77. <v:asset.style name="theme"
  78. path="{assets_dir}/style/skins/skin-blue.css"
  79. standalone="1"/>
  80. </f:then>
  81. <f:else if="{themeColor}=='blue'">
  82. <v:asset.style name="theme"
  83. path="{assets_dir}/style/skins/skin-steelblue.css"
  84. standalone="1"/>
  85. </f:else>
  86. <f:else if="{themeColor}=='green'">
  87. <v:asset.style name="theme"
  88. path="{assets_dir}/style/skins/skin-green.css"
  89. standalone="1"/>
  90. </f:else>
  91. <f:else if="{themeColor}=='orange'">
  92. <v:asset.style name="theme"
  93. path="{assets_dir}/style/skins/skin-orange.css"
  94. standalone="1"/>
  95. </f:else>
  96. <f:else if="{themeColor}=='grey'">
  97. <v:asset.style name="theme"
  98. path="{assets_dir}/style/skins/skin-grey.css"
  99. standalone="1"/>
  100. </f:else>
  101. <f:else if="{themeColor}=='red'">
  102. <v:asset.style name="theme"
  103. path="{assets_dir}/style/skins/skin-red.css"
  104. standalone="1"/>
  105. </f:else>
  106. <f:else if="{themeColor}=='light-red'">
  107. <v:asset.style name="theme"
  108. path="{assets_dir}/style/skins/skin-red-light.css"
  109. standalone="1"/>
  110. </f:else>
  111. <f:else if="{themeColor}=='purple'">
  112. <v:asset.style name="theme"
  113. path="{assets_dir}/style/skins/skin-purple.css"
  114. standalone="1"/>
  115. </f:else>
  116. </f:if>
  117. <f:comment><!-- Script assets --></f:comment>
  118. <f:comment><!-- Defines the path of all plugin folders to allow dynamic loading --></f:comment>
  119. <script>
  120. var plugin_path = '/typo3conf/ext/ot_templating/Resources/Public/assets/Modern/script/';
  121. </script>
  122. <v:asset.script name="jquery"
  123. path="{assets_dir}/script/jquery-3.3.1.min.js"
  124. standalone="{force_standalone}"
  125. defer="1"/>
  126. <f:comment><!-- includes all plugins ; can be removed if none of those plugins are used --></f:comment>
  127. <v:asset.script name="plugins-jquery"
  128. path="{assets_dir}/script/plugins-jquery.js"
  129. standalone="{force_standalone}"
  130. dependencies="jquery"
  131. defer="1" />
  132. <v:asset.script name="recaptcha"
  133. path="https://www.google.com/recaptcha/api.js"
  134. external="1"
  135. standalone="{force_standalone}"
  136. dependencies="jquery"
  137. defer="1"/>
  138. <v:asset.script name="jquery-tools"
  139. path="{assets_dir}/script/revolution/jquery.themepunch.tools.min.js"
  140. standalone="{force_standalone}"
  141. defer="1"/>
  142. <v:asset.script name="jquery-revolution"
  143. path="{assets_dir}/script/revolution/jquery.themepunch.revolution.min.js"
  144. standalone="{force_standalone}"
  145. dependencies="jquery"
  146. defer="1"/>
  147. <v:asset.script name="revolution-actions"
  148. path="{assets_dir}/script/revolution/extensions/revolution.extension.actions.min.js"
  149. standalone="{force_standalone}"
  150. dependencies="jquery"
  151. defer="1"/>
  152. <v:asset.script name="revolution-carousel"
  153. path="{assets_dir}/script/revolution/extensions/revolution.extension.carousel.min.js"
  154. standalone="{force_standalone}"
  155. dependencies="jquery"
  156. defer="1"/>
  157. <v:asset.script name="revolution-kenburn"
  158. path="{assets_dir}/script/revolution/extensions/revolution.extension.kenburn.min.js"
  159. standalone="{force_standalone}"
  160. dependencies="jquery"
  161. defer="1"/>
  162. <v:asset.script name="revolution-layeranimation"
  163. path="{assets_dir}/script/revolution/extensions/revolution.extension.layeranimation.min.js"
  164. standalone="{force_standalone}"
  165. dependencies="jquery"
  166. defer="1"/>
  167. <v:asset.script name="revolution-parallax"
  168. path="{assets_dir}/script/revolution/extensions/revolution.extension.parallax.min.js"
  169. standalone="{force_standalone}"
  170. dependencies="jquery"
  171. defer="1"/>
  172. <v:asset.script name="revolution-navigation"
  173. path="{assets_dir}/script/revolution/extensions/revolution.extension.navigation.min.js"
  174. standalone="{force_standalone}"
  175. defer="1"/>
  176. <v:asset.script name="revolution-slideanims"
  177. path="{assets_dir}/script/revolution/extensions/revolution.extension.slideanims.min.js"
  178. standalone="{force_standalone}"
  179. dependencies="jquery"
  180. defer="1"/>
  181. <v:asset.script name="revolution-navigation"
  182. path="{assets_dir}/script/revolution/extensions/revolution.extension.navigation.min.js"
  183. standalone="{force_standalone}"
  184. dependencies="jquery"
  185. defer="1"/>
  186. <v:asset.script name="revolution-video"
  187. path="{assets_dir}/script/revolution/extensions/revolution.extension.video.min.js"
  188. standalone="{force_standalone}"
  189. dependencies="jquery"
  190. defer="1"/>
  191. <v:asset.script name="revolution-custom"
  192. path="{assets_dir}/script/revolution/revolution-custom.js"
  193. standalone="{force_standalone}"
  194. dependencies="jquery"
  195. defer="1"/>
  196. <v:asset.script name="moment-js"
  197. path="{assets_dir}/script/bootstrap-datetimepicker/moment-datepicker.js"
  198. standalone="{force_standalone}"
  199. dependencies="jquery"
  200. defer="1"/>
  201. <v:asset.script name="datetimepicker-js"
  202. path="{assets_dir}/script/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"
  203. standalone="{force_standalone}"
  204. dependencies="jquery,moment-js"
  205. defer="1"/>
  206. <v:asset.script name="slick-js"
  207. path="{assets_dir}/script/slick/slick.min.js"
  208. standalone="{force_standalone}"
  209. dependencies="jquery"
  210. defer="1"/>
  211. <v:asset.script name="leaflet-js"
  212. path="{assets_dir}/script/leaflet/leaflet.js"
  213. standalone="{force_standalone}"
  214. dependencies="jquery"
  215. defer="1"/>
  216. <v:asset.script name="magnific-popup"
  217. path="{assets_dir}/script/magnific-popup/jquery.magnific-popup.min.js"
  218. standalone="{force_standalone}"
  219. dependencies="jquery"
  220. defer="1"/>
  221. <v:asset.script name="custom-js"
  222. path="{assets_dir}/script/custom.js"
  223. standalone="{force_standalone}"
  224. dependencies="jquery"
  225. defer="1"/>
  226. <v:asset.script name="custom-ot-js"
  227. path="{assets_dir}/script/custom-ot.js"
  228. standalone="{force_standalone}"
  229. dependencies="jquery"
  230. defer="1"/>