_includes/script.html in appscms-tools-theme-3.5.8 vs _includes/script.html in appscms-tools-theme-3.5.9

- old
+ new

@@ -441,23 +441,24 @@ -%} ></script> {%- endif -%} <script defer src="/assets/js/theme.js" crossorigin="anonymous"></script> -{%- if site.removeBootstrapJs != true -%} +{%- if site.userTrackingCount -%} +<script defer src="/assets/js/usageTracking.js"></script> +<script defer src="/assets/js/sharePage.js"></script> +{%- endif -%} {%- if site.removeBootstrapJs != true -%} <script defer="defer" src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous" ></script> {%- endif -%} {{site.data.customcdns.customcdns.jsfiles}} {%- if -scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%} - -{%- assign asset_dir = path -%} -{%- if site.versioning and asset_dir != "" -%} -{%- if asset_dir contains "https" and asset_dir contains "https://" -%} +scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%} {%- assign +asset_dir = path -%} {%- if site.versioning and asset_dir != "" -%} {%- if +asset_dir contains "https" and asset_dir contains "https://" -%} <script defer src="{{path}}" data-folderName="{{page.folderName}}" data-lang="{{page.lang}}" @@ -493,12 +494,11 @@ crossorigin {%- endif -%} ></script> -{%- endif -%} -{%- else -%} +{%- endif -%} {%- else -%} <script defer src="{{path}}" data-folderName="{{page.folderName}}" data-lang="{{page.lang}}" @@ -514,18 +514,14 @@ crossorigin {%- endif -%} ></script> -{%- endif -%} - - - -{%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for item in -scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName | replace: -"$fileName", page.fileName | replace: "$lang", page.lang | replace: "$tool", -page.tool }} {%- endfor -%} {%- endif -%} {%- if page.layout == "frame" -%} {%- -assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout == +{%- endif -%} {%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for +item in scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName | +replace: "$fileName", page.fileName | replace: "$lang", page.lang | replace: +"$tool", page.tool }} {%- endfor -%} {%- endif -%} {%- if page.layout == "frame" +-%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout == "photo-effects-home" -%} {%- assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout == "calculator" -%} <script defer src="/assets/js/calculator-tooltip.js"></script> {%- endif -%} {%- if page.layout == 'home-1' or page.layout == "feature-1" -%} {%- assign font = "Inter" -%} {%- endif -%} {%- if site.removeFontAwesome !=