Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,20 @@ public function get_global_header_data() {
return $context;
}

public function get_footer_data(): \stdClass {
$context = new \stdClass();

$dotnet_base_url = get_config('theme_nhse', 'dotnet_base_url');
if (!empty($dotnet_base_url) && substr($dotnet_base_url, -1) !== '/') {
$dotnet_base_url .= '/';
}

$context->dotnet_base_url = $dotnet_base_url;

return $context;

}

public function standard_head_html() {
$output = parent::standard_head_html();

Expand Down
4 changes: 3 additions & 1 deletion templates/columns1.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
</div>
</div>
{{{ output.standard_after_main_region_html }}}
{{> theme_nhse/footer }}
{{# output.get_footer_data }}
{{> theme_nhse/footer }}
{{/ output.get_footer_data }}

</div>
{{{ output.standard_end_of_body_html }}}
Expand Down
4 changes: 3 additions & 1 deletion templates/columns2.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
</div>
</div>
{{{ output.standard_after_main_region_html }}}
{{> theme_nhse/footer }}
{{# output.get_footer_data }}
{{> theme_nhse/footer }}
{{/ output.get_footer_data }}
</div>

</body>
Expand Down
4 changes: 3 additions & 1 deletion templates/drawers.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@
</div>
<!-- end of div id="page"-->

{{> theme_nhse/footer }}
{{# output.get_footer_data }}
{{> theme_nhse/footer }}
{{/ output.get_footer_data }}
{{{ output.standard_after_main_region_html }}}

</div>
Expand Down
4 changes: 3 additions & 1 deletion templates/login.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
</div>
<!-- end of div id="page"-->

{{> theme_nhse/footer }}
{{# output.get_footer_data }}
{{> theme_nhse/footer }}
{{/ output.get_footer_data }}
{{{ output.standard_after_main_region_html }}}
</div>

Expand Down
4 changes: 3 additions & 1 deletion templates/secure.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
</div>
</footer>
</div>
{{> theme_nhse/footer }}
{{# output.get_footer_data }}
{{> theme_nhse/footer }}
{{/ output.get_footer_data }}
</body>
</html>
{{#js}}
Expand Down