Assets.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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><!-- includes all shortcodes ; can be removed if none of those plugins are used --></f:comment>
  62. <v:asset.style name="shortcodes"
  63. path="{assets_dir}/style/shortcodes/shortcodes.css"
  64. standalone="{force_standalone}"/>
  65. <f:comment><!-- main stylesheet of the template --></f:comment>
  66. <v:asset.style name="style-css"
  67. path="{assets_dir}/style/style.css"
  68. standalone="1"
  69. rewrite="0"/>
  70. <f:comment><!-- responsive stylesheet of the template (mediaqueries) --></f:comment>
  71. <v:asset.style name="responsive-css"
  72. path="{assets_dir}/style/responsive.css"
  73. standalone="{force_standalone}"/>
  74. <v:asset.style name="custom-css"
  75. path="{assets_dir}/style/custom.css"
  76. standalone="{force_standalone}"/>
  77. <f:comment><!-- Chosen theme --></f:comment>
  78. <v:variable.set name="themeColor" value ="{ot:template.getPreference(key: 'themeColor')}"/>
  79. <f:if condition="{themeColor}=='light-blue'">
  80. <f:then>
  81. <v:asset.style name="theme"
  82. path="{assets_dir}/style/skins/skin-blue.css"
  83. standalone="1"/>
  84. </f:then>
  85. <f:else if="{themeColor}=='blue'">
  86. <v:asset.style name="theme"
  87. path="{assets_dir}/style/skins/skin-steelblue.css"
  88. standalone="1"/>
  89. </f:else>
  90. <f:else if="{themeColor}=='green'">
  91. <v:asset.style name="theme"
  92. path="{assets_dir}/style/skins/skin-green.css"
  93. standalone="1"/>
  94. </f:else>
  95. <f:else if="{themeColor}=='orange'">
  96. <v:asset.style name="theme"
  97. path="{assets_dir}/style/skins/skin-orange.css"
  98. standalone="1"/>
  99. </f:else>
  100. <f:else if="{themeColor}=='grey'">
  101. <v:asset.style name="theme"
  102. path="{assets_dir}/style/skins/skin-grey.css"
  103. standalone="1"/>
  104. </f:else>
  105. <f:else if="{themeColor}=='red'">
  106. <v:asset.style name="theme"
  107. path="{assets_dir}/style/skins/skin-red.css"
  108. standalone="1"/>
  109. </f:else>
  110. <f:else if="{themeColor}=='light-red'">
  111. <v:asset.style name="theme"
  112. path="{assets_dir}/style/skins/skin-red-light.css"
  113. standalone="1"/>
  114. </f:else>
  115. <f:else if="{themeColor}=='purple'">
  116. <v:asset.style name="theme"
  117. path="{assets_dir}/style/skins/skin-purple.css"
  118. standalone="1"/>
  119. </f:else>
  120. </f:if>
  121. <f:comment><!-- Script assets --></f:comment>
  122. <f:comment><!-- Defines the path of all plugin folders to allow dynamic loading --></f:comment>
  123. <script>
  124. var plugin_path = '/typo3conf/ext/ot_templating/Resources/Public/assets/Modern/script/';
  125. </script>
  126. <v:asset.script name="jquery"
  127. path="{assets_dir}/script/jquery-3.3.1.min.js"
  128. standalone="{force_standalone}"/>
  129. <f:comment><!-- includes all plugins ; can be removed if none of those plugins are used --></f:comment>
  130. <v:asset.script name="plugins-jquery"
  131. path="{assets_dir}/script/plugins-jquery.js"
  132. standalone="{force_standalone}"
  133. dependencies="jquery" />
  134. <v:asset.script name="recaptcha"
  135. path="https://www.google.com/recaptcha/api.js"
  136. external="1"
  137. standalone="{force_standalone}"
  138. dependencies="jquery"/>
  139. <v:asset.script name="jquery-tools"
  140. path="{assets_dir}/script/revolution/jquery.themepunch.tools.min.js"
  141. standalone="{force_standalone}"/>
  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. <v:asset.script name="revolution-actions"
  147. path="{assets_dir}/script/revolution/extensions/revolution.extension.actions.min.js"
  148. standalone="{force_standalone}"
  149. dependencies="jquery"/>
  150. <v:asset.script name="revolution-carousel"
  151. path="{assets_dir}/script/revolution/extensions/revolution.extension.carousel.min.js"
  152. standalone="{force_standalone}"
  153. dependencies="jquery"/>
  154. <v:asset.script name="revolution-kenburn"
  155. path="{assets_dir}/script/revolution/extensions/revolution.extension.kenburn.min.js"
  156. standalone="{force_standalone}"
  157. dependencies="jquery"/>
  158. <v:asset.script name="revolution-layeranimation"
  159. path="{assets_dir}/script/revolution/extensions/revolution.extension.layeranimation.min.js"
  160. standalone="{force_standalone}"
  161. dependencies="jquery"/>
  162. <v:asset.script name="revolution-migration"
  163. path="{assets_dir}/script/revolution/extensions/revolution.extension.migration.min.js"
  164. standalone="{force_standalone}"
  165. dependencies="jquery"/>
  166. <v:asset.script name="revolution-parallax"
  167. path="{assets_dir}/script/revolution/extensions/revolution.extension.parallax.min.js"
  168. standalone="{force_standalone}"
  169. dependencies="jquery"/>
  170. <v:asset.script name="revolution-navigation"
  171. path="{assets_dir}/script/revolution/extensions/revolution.extension.navigation.min.js"
  172. standalone="{force_standalone}"/>
  173. <v:asset.script name="revolution-slideanims"
  174. path="{assets_dir}/script/revolution/extensions/revolution.extension.slideanims.min.js"
  175. standalone="{force_standalone}"
  176. dependencies="jquery"/>
  177. <v:asset.script name="revolution-navigation"
  178. path="{assets_dir}/script/revolution/extensions/revolution.extension.navigation.min.js"
  179. standalone="{force_standalone}"
  180. dependencies="jquery"/>
  181. <v:asset.script name="revolution-video"
  182. path="{assets_dir}/script/revolution/extensions/revolution.extension.video.min.js"
  183. standalone="{force_standalone}"
  184. dependencies="jquery"/>
  185. <v:asset.script name="revolution-custom"
  186. path="{assets_dir}/script/revolution/revolution-custom.js"
  187. standalone="{force_standalone}"
  188. dependencies="jquery"/>
  189. <v:asset.script name="moment-js"
  190. path="{assets_dir}/script/bootstrap-datetimepicker/moment-datepicker.js"
  191. standalone="{force_standalone}"
  192. dependencies="jquery"/>
  193. <v:asset.script name="datetimepicker-js"
  194. path="{assets_dir}/script/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"
  195. standalone="{force_standalone}"
  196. dependencies="jquery,moment-js"/>
  197. <v:asset.script name="slick-js"
  198. path="{assets_dir}/script/slick/slick.js"
  199. standalone="{force_standalone}"
  200. dependencies="jquery"/>
  201. <v:asset.script name="leaflet-js"
  202. path="{assets_dir}/script/leaflet/leaflet.js"
  203. standalone="{force_standalone}"
  204. dependencies="jquery"/>
  205. <v:asset.script name="magnific-popup"
  206. path="{assets_dir}/script/magnific-popup/jquery.magnific-popup.min.js"
  207. standalone="{force_standalone}"
  208. dependencies="jquery"/>
  209. <v:asset.script name="custom-js"
  210. path="{assets_dir}/script/custom.js"
  211. standalone="{force_standalone}"
  212. dependencies="jquery"/>
  213. <v:asset.script name="custom-ot-js"
  214. path="{assets_dir}/script/custom-ot.js"
  215. standalone="{force_standalone}"
  216. dependencies="jquery"/>