Skip to content

Commit

Permalink
WOMACT-38 Dynamic copyright year + footer adjustments + misc
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Feb 6, 2024
1 parent d2b7f41 commit e0f32fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ class WomactFooter extends BlockBase {
* {@inheritdoc}
*/
public function build() {
$text = '<p id="womact-footer">© 2018<br>This work is licensed under a Creative Commons
$year = date('Y');
$text = "<p id='womact-footer'>© $year<br>This work is licensed under a Creative Commons
Attribution-NonCommercial 2.5 Canada License.<br>Maintained by
<a href="https://lib.unb.ca">UNB Libraries</a>, <a href="https://unb.ca">University
<a href='https://lib.unb.ca'>UNB Libraries</a>, <a href='https://unb.ca'>University
of New Brunswick</a>.<br>For inquiries about licensing rights please contact
us.</p>';
us.</p>";

return [
'#markup' => $this->t($text),
Expand Down
7 changes: 7 additions & 0 deletions custom/themes/womenactivists_lib_unb_ca/src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ html {
.container {
padding: 0;
background-color: $primary !important;
#block-womenactivists-lib-unb-ca-womactfooter {
margin: 1rem;
#womact-footer {
margin-top: 1rem;
text-align: center;
}
}
}
}
}

0 comments on commit e0f32fb

Please sign in to comment.