Add intro footer.

This commit is contained in:
Viktor Kovacs 2024-06-17 20:39:37 +02:00
parent e73167ef5e
commit aedefaafa7
2 changed files with 6 additions and 0 deletions

View File

@ -64,9 +64,13 @@ def CreateWebsite (rootDir, websiteDir, version, testBuild):
replacer.ReplaceTokenContent ('<!-- website init start -->', '<!-- website init end -->', initScriptContent) replacer.ReplaceTokenContent ('<!-- website init start -->', '<!-- website init end -->', initScriptContent)
replacer.ReplaceTokenContent ('<!-- embed init start -->', '<!-- embed init end -->', embedInitScriptContent) replacer.ReplaceTokenContent ('<!-- embed init start -->', '<!-- embed init end -->', embedInitScriptContent)
metaFile = os.path.join (rootDir, 'plugins', 'website_meta_data.txt') metaFile = os.path.join (rootDir, 'plugins', 'website_meta_data.txt')
introFooterFile = os.path.join (rootDir, 'plugins', 'website_intro_footer_data.txt')
if os.path.exists (metaFile): if os.path.exists (metaFile):
metaContent = Utils.GetFileContent (metaFile) metaContent = Utils.GetFileContent (metaFile)
replacer.ReplaceTokenContent ('<!-- meta start -->', '<!-- meta end -->', metaContent) replacer.ReplaceTokenContent ('<!-- meta start -->', '<!-- meta end -->', metaContent)
if os.path.exists (introFooterFile):
introFooterContent = Utils.GetFileContent (introFooterFile)
replacer.ReplaceTokenContent ('<!-- intro footer start -->', '<!-- intro footer end -->', introFooterContent)
websiteAnalyticsFile = os.path.join (rootDir, 'plugins', 'website_analytics_data.txt') websiteAnalyticsFile = os.path.join (rootDir, 'plugins', 'website_analytics_data.txt')
if os.path.exists (websiteAnalyticsFile) and not testBuild: if os.path.exists (websiteAnalyticsFile) and not testBuild:
websiteAnalyticsContent = Utils.GetFileContent (websiteAnalyticsFile) websiteAnalyticsContent = Utils.GetFileContent (websiteAnalyticsFile)

View File

@ -93,6 +93,8 @@
<a href="#model=assets/models/extrusion3.wrl">wrl</a> <a href="#model=assets/models/extrusion3.wrl">wrl</a>
</div> </div>
</div> </div>
<!-- intro footer start -->
<!-- intro footer end -->
</div> </div>
</div> </div>
</body> </body>