Skip to content

Commit

Permalink
update footer statement to be bilingual
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-c committed Jan 16, 2024
1 parent c009b7b commit f05d13d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,17 @@ public function logo_src() {
return $OUTPUT->image_url('University-of-Regina-Hill-Levene-Schools-of-Business-Logo', 'theme');
}

public function funding_statement() {
$lang = \current_language();
if ($lang == 'en') {
$statement = 'Funded by the Government of Canada’s Skills for Success Program';
} else {
$statement = 'Financé par le programme Compétences pour réussir du gouvernement du Canada';
}

return $statement;
}

public function login_status() {
global $CFG;
//$lang = \current_language();
Expand Down
2 changes: 1 addition & 1 deletion templates/footer.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>
<div class="footer-section px-0 py-3 d-flex flex-row flex-wrap">
<div class="footer-logo col-sm-1 col-md-5 px-0"><img src="{{{output.logo_src}}}" width="310" height="44"></div>
<div class="footer-funding col-sm-1 col-md-7 px-0"><p class="small">Funded by the Government of Canada’s Skills for Success Program</p></div>
<div class="footer-funding col-sm-1 col-md-7 px-0"><p class="small">{{{ output.funding_statement }}}</p></div>
</div>
</div>

Expand Down

0 comments on commit f05d13d

Please sign in to comment.